Sha256: 8fdb670494c6c6333b962021d87bf54759d8df914d515989302ae77cb6adf4bf

Contents?: true

Size: 511 Bytes

Versions: 158

Compression:

Stored size: 511 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:
      """
      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

158 entries across 103 versions & 14 rubygems

Version Path
rspec-core-2.8.0.rc2 features/metadata/current_example.feature
nutshell-crm-0.0.5 vendor/bundle/gems/rspec-core-2.7.1/features/metadata/current_example.feature
nutshell-crm-0.0.4 vendor/bundle/gems/rspec-core-2.7.1/features/metadata/current_example.feature
nutshell-crm-0.0.3 vendor/bundle/gems/rspec-core-2.7.1/features/metadata/current_example.feature
nutshell-crm-0.0.2 vendor/bundle/gems/rspec-core-2.7.1/features/metadata/current_example.feature
nutshell-crm-0.0.1 vendor/bundle/gems/rspec-core-2.7.1/features/metadata/current_example.feature
rspec-core-2.8.0.rc1 features/metadata/current_example.feature
rspec-core-2.7.1 features/metadata/current_example.feature
rspec-core-2.7.0 features/metadata/current_example.feature
rspec-core-2.7.0.rc1 features/metadata/current_example.feature
rspec-core-2.6.4 features/metadata/current_example.feature
rspec-core-2.6.3 features/metadata/current_example.feature
rspec-core-2.6.3.beta1 features/metadata/current_example.feature
rspec-core-2.6.2.rc features/metadata/current_example.feature
rspec-core-2.6.0 features/metadata/current_example.feature
rspec-core-2.6.0.rc6 features/metadata/current_example.feature
rspec-core-2.6.0.rc4 features/metadata/current_example.feature
rspec-core-2.6.0.rc2 features/metadata/current_example.feature