Sha256: ed2b8462280ff596bfa2c30ffe521feec6205e17127bbcf6fcd569adce873383

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

Feature: Mongoid

  Scenario: Keep Mongoid happy
    Given I successfully run `rails new cuke-app -O`
    And I cd to "cuke-app"
    And I append to "Gemfile" with:
      """
      gem "cucumber-rails", :group => :test, :path => '../../..'
      gem "capybara", :group => :test
      gem "database_cleaner", :group => :test
      gem "mongoid", :group => :test
      gem "bson_ext", :group => :test

      """
    And I successfully run `bundle exec rails generate cucumber:install --skip-database`
    And I successfully run `bundle exec rails generate mongoid:config`
    And I write to "features/tests.feature" with:
      """
      Feature: Tests
        Scenario: Tests
          When I go to the home page
      """
    And I overwrite "features/support/env.rb" with:
      """
      require 'cucumber/rails'
      DatabaseCleaner.orm = 'mongoid'
      DatabaseCleaner.strategy = :truncation
      """
    And I run `bundle exec rake cucumber`
    Then it should pass with:
      """
      1 scenario (1 passed)
      1 step (1 passed)
      """

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cucumber-rails-1.0.6 features/mongoid.feature