Sha256: 051a9240c4ee6c05747564f7b6c8a42bf72ca6f4258f180cd84dab396b034347

Contents?: true

Size: 1.18 KB

Versions: 5

Compression:

Stored size: 1.18 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 write to "features/step_definitions/web_steps.rb" with:
      """
      When /^I go to the home page$/ do
        visit '/'
      end
      """
    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

5 entries across 5 versions & 1 rubygems

Version Path
cucumber-rails-1.3.0 features/mongoid.feature
cucumber-rails-1.2.1 features/mongoid.feature
cucumber-rails-1.2.0 features/mongoid.feature
cucumber-rails-1.1.1 features/mongoid.feature
cucumber-rails-1.1.0 features/mongoid.feature