Created
April 15, 2020 21:11
-
-
Save RickArora/fafbf517e4f809c862e8da453f2e0fd7 to your computer and use it in GitHub Desktop.
This file contains 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
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