Bug #11656
closed
ruby crashes when running rspec from top level context, but not from the individual spec that is causing ruby to crash
Added by dgreenbe77 (Daniel Greenberg) over 8 years ago.
Updated over 7 years ago.
Description
/Users/dgreenbe77/Development/frederick_gem/lib/frederick/models/model.rb
./spec/lib/frederick/models/model_spec.rb
Files
Attached file here because it is hard to read above.
Daniel Greenberg wrote:
Attached file here because it is hard to read above.
describe '#hash' do
let(:attr_vals) { subject.attr_values.to_s }
before { expect(Digest::MD5).to receive(:hexdigest).with(attr_vals).and_call_original }
it 'returns the stringified hash code of the instance values, code is the same over new instances of ruby' do
expect(subject.hash).to eq hash_code
end
end
found when i renamed attr_values let to not be existing method name that the interpreter stopped crashing
could you try latest ruby 2.3dev?
or could you tell me how to run it?
- Status changed from Open to Closed
No feedback. Please reopen this ticket if you have this trouble on recent versions.
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0Like0Like0