Sha256: 0fc8f311652868d370c5e79586704f63361ca9f891ef240b66b47d3b21933fb8

Contents?: true

Size: 617 Bytes

Versions: 3

Compression:

Stored size: 617 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 the stdout should match /^Using context/
    And the stdout should match /^\s+with nested context/

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rspec-core-2.0.0.a9 features/example_groups/describe_aliases.feature
rspec-core-2.0.0.a8 features/example_groups/describe_aliases.feature
rspec-core-2.0.0.a7 features/example_groups/describe_aliases.feature