Created
May 15, 2017 14:08
-
-
Save AJFaraday/f69cc1a71ce86732f9867c578cb5c03b to your computer and use it in GitHub Desktop.
rspec gotcha
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rspec' | |
describe 'something' do | |
it 'should know what valid means' do | |
record = Object.new | |
record.should be_valid? | |
# undefined method 'valid??' for #<Object#0x0000000f453d063> | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment