File: cleaning_multiple_dbs.feature

package info (click to toggle)
ruby-database-cleaner 1.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 768 kB
  • sloc: ruby: 4,854; makefile: 10; sh: 4
file content (22 lines) | stat: -rw-r--r-- 663 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Feature: multiple database cleaning
  In order to ease example and feature writing
  As a developer
  I want to have my databases in a clean state

  Scenario Outline: ruby app
    Given I am using <ORM>
    And the <Strategy> cleaning strategy

    When I run my scenarios that rely on clean databases
    Then I should see all green

  Examples:
  | ORM          | Strategy      |
  | ActiveRecord | truncation    |
  | ActiveRecord | deletion      |
  | DataMapper   | truncation    |
  | Sequel       | truncation    |
  | MongoMapper  | truncation    |
  | DataMapper   | transaction   |
  | ActiveRecord | transaction   |
  | Sequel       | transaction   |