Skip to content

Instantly share code, notes, and snippets.

@amiel
Created March 11, 2014 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amiel/9476993 to your computer and use it in GitHub Desktop.
Save amiel/9476993 to your computer and use it in GitHub Desktop.
custom predicate in rspec
class MyFoo
def awesome?
true
end
end
describe MyFoo do
let(:my_foo) { MyFoo.new }
it 'is awesome' do
expect(my_foo).to be_awesome
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment