Add database cleaner support file #129

Merged
merged 3 commits into from Jan 4, 2013

Conversation

Projects
None yet
2 participants
@gylaz
Contributor

gylaz commented Dec 28, 2012

This adds a database_cleaner.rb file to spec/support to setup database_cleaner for rspec. See @jferris's comment here.

Also, the rake_clean.feature was having false positives. The rake tasks were ran in the wrong directory, and we didn't check rake task's exit status. This PR fixes them.

Details:

  • Add database_cleaner spec/support file to setup db cleaning for tests
  • Drop databases prior to suspending an app (clearance acts different
  • based on whether users table exists or not)
  • Verify that each rake tast succeeds
  • Use clear rake run step

@ghost ghost assigned croaky Dec 28, 2012

gylaz added some commits Dec 28, 2012

Fix cucumber tests
* Drop databases prior to suspending an app (clearance acts different
*   based on whether users table exists or not)
* Verify that each rake tast succeeds
* Use clear rake run step
Use run_simple vs run to execute commands
* run_simple tests that the command was successful
@croaky

This comment has been minimized.

Show comment Hide comment
@croaky

croaky Jan 3, 2013

Contributor

👍

Contributor

croaky commented Jan 3, 2013

👍

@gylaz gylaz merged commit 72b557a into master Jan 4, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment