Sha256: 43fe7ec81d76bff7b9861d16b70267843aaf028b962dd7f1fe62058f61dffc72

Contents?: true

Size: 845 Bytes

Versions: 6

Compression:

Stored size: 845 Bytes

Contents

Feature: Nested example groups

  As an RSpec user
  I want to nest examples groups
  So that I can better organize my examples

  Scenario Outline: Nested example groups
    Given a file named "nested_example_groups.rb" with:
    """
    require 'spec/autorun'

    describe "Some Object" do
      describe "with some more context" do
        it "should do this" do
          true.should be_true
        end
      end
      describe "with some other context" do
        it "should do that" do
          false.should be_false
        end
      end
    end
    """
    When I run "<Command> nested_example_groups.rb -fs"
    Then the stdout should match /Some Object with some more context/
    And the stdout should match /Some Object with some other context/

  Scenarios: Run with ruby and spec
    | Command |
    | ruby    |
    | spec    |

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rspec-1.2.7 features/example_groups/nested_groups.feature
rspec-1.2.8 features/example_groups/nested_groups.feature
rspec-1.2.3 features/example_groups/nested_groups.feature
rspec-1.2.4 features/example_groups/nested_groups.feature
rspec-1.2.5 features/example_groups/nested_groups.feature
rspec-1.2.6 features/example_groups/nested_groups.feature