Sha256: b362fd123508ebbd1dffa204e1f59aac9f88f4f92489a263ba55d644ccdf9af1

Contents?: true

Size: 515 Bytes

Versions: 45

Compression:

Stored size: 515 Bytes

Contents

Feature: current example

  You can reference the example object, and access its metadata, using
  the `example` method within an example.

  Scenario: access the example object from within an example
    Given a file named "spec/example_spec.rb" with:
      """ruby
      describe "an example" do
        it "knows itself as example" do
          example.description.should eq("knows itself as example")
        end
      end
      """
    When I run `rspec spec/example_spec.rb`
    Then the example should pass

Version data entries

45 entries across 45 versions & 13 rubygems

Version Path
remq-0.0.4 vendor/bundle/gems/rspec-core-2.12.2/features/metadata/current_example.feature
remq-0.0.3 vendor/bundle/gems/rspec-core-2.12.2/features/metadata/current_example.feature
rspec-core-2.12.2 features/metadata/current_example.feature
rspec-core-2.12.1 features/metadata/current_example.feature
rspec-core-2.12.0 features/metadata/current_example.feature