Skip to content

Conversation

benzimmer
Copy link

This adds ActiveRecord support for specs.

It uses 'db/stringer_test.sqlite' as test-DB and runs migrations prior to test runs only if necessary. Only small annoyance is that migration output is shown (if migrations are run) before rspec output but I found no way to suppress it.

The PR also adds some specs for Story to show that it actually works (hopefully also on travis) :)

Ben Zimmer added 4 commits May 12, 2013 13:57
It's not very nice at the moment, because it spits
out the migration output on every run, but it
works.
@swanson
Copy link
Collaborator

swanson commented May 12, 2013

Thanks - this looks good.

swanson pushed a commit that referenced this pull request May 12, 2013
@swanson swanson merged commit 63f999f into stringer-rss:master May 12, 2013
@benzimmer benzimmer deleted the spec_support_activerecord branch May 14, 2013 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants