DatabaseCleaner/database_cleaner

View on GitHub
examples/features/example.feature

Summary

Maintainability
Test Coverage
Feature: example
 In order to test DatabaseCleaner
 Here are some scenarios that rely on the DB being clean!

  Scenario: dirty the db
    When I create a widget
    Then I should see 1 widget

  Scenario: assume a clean db
    When I create a widget
    Then I should see 1 widget