Skip to content

Instantly share code, notes, and snippets.

@millisami
Forked from schlick/pickle_extra_steps.rb
Created November 4, 2009 15:01
Show Gist options
  • Save millisami/226108 to your computer and use it in GitHub Desktop.
Save millisami/226108 to your computer and use it in GitHub Desktop.
# destroy all objects
Given(/^no #{capture_plural_factory} exist$/) do |plural_factory|
plural_factory.classify.constantize.destroy_all
# you could add the following to verify that there are indeed no records
find_models(plural_factory.singularize).should be_nil
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment