Sha256: 4b81a6705f6c5787667bfb79aa052266bc2aae2a2c2384e744d0e7c2916f9593

Contents?: true

Size: 797 Bytes

Versions: 6

Compression:

Stored size: 797 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 mongo database connection
  
Scenario: The folder is now just "fixtures"
  Given a collection users
  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

6 entries across 6 versions & 1 rubygems

Version Path
mongo-fixture-0.1.0 features/configurable_fixtures_folder.feature
mongo-fixture-0.0.5 features/configurable_fixtures_folder.feature
mongo-fixture-0.0.4 features/configurable_fixtures_folder.feature
mongo-fixture-0.0.3 features/configurable_fixtures_folder.feature
mongo-fixture-0.0.2 features/configurable_fixtures_folder.feature
mongo-fixture-0.0.1 features/configurable_fixtures_folder.feature