Sha256: a533cc939e1d2c4fbf52c7414bc1a851ebdbe861877fefef0194256d6b72c44e

Contents?: true

Size: 824 Bytes

Versions: 3

Compression:

Stored size: 824 Bytes

Contents

Feature: Configurable fixtures folder
  In order to load fixtures from arbitrary folders
  I want to be able to configure the source of the fixtures

Background: We have a database connection working
  Given a sqlite database connection
  
Scenario: The folder is now just "fixtures"
  Given a table users with String:name, String:email
  And a file "fixtures/configurable/users.yaml" with:
    """
    xavi:
      name: Xavier
      email: xavier@via.com
    john:
      name: Johnny
      email: john@doe.com
    """
  When I set the fixtures path as "fixtures"
  And I load the configurable fixture
  Then I should see 1 record in users with name "Xavier" and email "xavier@via.com"
  And I should see 1 record in users with name "Johnny" and email "john@doe.com"
  When I rollback
  Then I should see 0 records in users

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sequel-fixture-0.0.3 features/configurable_fixtures_folder.feature
sequel-fixture-0.0.2 features/configurable_fixtures_folder.feature
sequel-fixture-0.0.1 features/configurable_fixtures_folder.feature