Skip to content

Instantly share code, notes, and snippets.

@RickArora
Created April 15, 2020 01:19
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/6a2ed4ff746e8059bccb298b0528b741 to your computer and use it in GitHub Desktop.
Save RickArora/6a2ed4ff746e8059bccb298b0528b741 to your computer and use it in GitHub Desktop.
https://github.com/RickArora/Postgres/tree/master/Plays-Playwrights%20ORM
GitHub
RickArora/Postgres
going through misc sources and learning postgres. Contribute to RickArora/Postgres development by creating an account on GitHub.
Rickys-MacBook-Pro:Plays-Playwrights ORM Rtyer$ bundle exec rspec
An error occurred while loading ./spec/plays_spec.rb.
Failure/Error: require 'sqlite3'
LoadError:
cannot load such file -- sqlite3
# ./lib/plays.rb:1:in `require'
# ./lib/plays.rb:1:in `<top (required)>'
# ./spec/plays_spec.rb:1:in `require'
# ./spec/plays_spec.rb:1:in `<top (required)>'
No examples found.
Finished in 0.00005 seconds (files took 0.12724 seconds to load)
0 examples, 0 failures, 1 error occurred outside of examples
# I can't figure out why sqlite3 is causing an error, any ideas? failing spec below:
require 'plays'
describe Play do
describe 'find by titile' do
subject (:list_of_plays) {Play.new}
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