Skip to content

Instantly share code, notes, and snippets.

@RickArora
Created April 15, 2020 21:11
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 RickArora/fafbf517e4f809c862e8da453f2e0fd7 to your computer and use it in GitHub Desktop.
Save RickArora/fafbf517e4f809c862e8da453f2e0fd7 to your computer and use it in GitHub Desktop.
Rickys-MacBook-Pro:Plays-Playwrights ORM Rtyer$ bundle exec rspec
F
Failures:
1) Play find by titile returns the Play matching the given title
Failure/Error: expect(Play.find_by_title('All My Sons').year).to eq(1947)
NoMethodError:
undefined method `find_by_title' for Play:Class
# ./spec/plays_spec.rb:6:in `block (3 levels) in <top (required)>'
Finished in 0.00562 seconds (files took 0.18073 seconds to load)
1 example, 1 failure
Failed examples:
rspec ./spec/plays_spec.rb:5 # Play find by titile returns the Play matching the given title
# failing test below:
require 'plays'
describe Play do
describe 'find by titile' do
it 'returns the Play matching the given title' do
expect(Play.find_by_title('All My Sons').year).to eq(1947)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment