Sha256: 9a61e2b82d969b0dd23dee862d7e405d8b4fc1f41a42924d546db6b86931c671

Contents?: true

Size: 600 Bytes

Versions: 9

Compression:

Stored size: 600 Bytes

Contents

Feature: Nested example groups

  As an RSpec user
  I want to use alternate names for describe
  So that I can better organize my examples

  Scenario: Using context
    Given a file named "context_instead_of_describe_spec.rb" with:
    """
    require "rspec/expectations"

    describe "Using context" do
      context "with nested context" do
        it "should do this" do
          true.should be_true
        end
      end
    end
    """
    When I run "rspec context_instead_of_describe_spec.rb -fn"
    Then I should see:
      """
      Using context
        with nested context
      """

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rspec-core-2.0.0.beta.8 features/example_groups/describe_aliases.feature
rspec-core-2.0.0.beta.7 features/example_groups/describe_aliases.feature
rspec-core-2.0.0.beta.6 features/example_groups/describe_aliases.feature
rspec-core-2.0.0.beta.5 features/example_groups/describe_aliases.feature
rspec-core-2.0.0.beta.4 features/example_groups/describe_aliases.feature
rspec-core-2.0.0.beta.3 features/example_groups/describe_aliases.feature
rspec-core-2.0.0.beta.2 features/example_groups/describe_aliases.feature
rspec-core-2.0.0.beta.1 features/example_groups/describe_aliases.feature
rspec-core-2.0.0.a10 features/example_groups/describe_aliases.feature