Skip to content

Instantly share code, notes, and snippets.

@sunaot
Created November 13, 2013 11:24
Show Gist options
  • Save sunaot/7447522 to your computer and use it in GitHub Desktop.
Save sunaot/7447522 to your computer and use it in GitHub Desktop.
rspec で Ruby が segmentation fault 吐いた (Ruby: 2.0.0p195/2.0.0-p247, RSpec: 2.14.7)
require 'bundler/setup'
module ExtendModule
def foo
'foo'
end
def bar
'bar'
end
end
describe 'foo' do
extend ExtendModule
let(:foo) { foo }
let(:bar) { bar }
it { foo.should be 'foo' }
it { bar.should be 'bar' }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment