Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a true ActiveRecord integration test. #1

Open
smudge opened this issue Oct 23, 2018 · 0 comments
Open

Add a true ActiveRecord integration test. #1

smudge opened this issue Oct 23, 2018 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@smudge
Copy link
Member

smudge commented Oct 23, 2018

Currently, none of the tests rely on an actual database model, using only ActiveModel::Model classes instead.

To test against an ActiveRecord model, we need to set up this development dependency and helper code to spin up a test database (sqlite is fine). Typically this is accomplished using a "dummy" rails app at spec/dummy, and a spec/rails_helper.rb setup file that can be required in Rails-specific tests.

@smudge smudge added the help wanted Extra attention is needed label Oct 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant