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
classiccms-0.7.5 vendor/bundle/gems/rspec-core-2.9.0/features/metadata/current_example.feature
classiccms-0.7.5 vendor/bundle/gems/rspec-core-2.10.0/features/metadata/current_example.feature
classiccms-0.7.4 vendor/bundle/gems/rspec-core-2.10.0/features/metadata/current_example.feature
classiccms-0.7.4 vendor/bundle/gems/rspec-core-2.9.0/features/metadata/current_example.feature
classiccms-0.7.3 vendor/bundle/gems/rspec-core-2.10.0/features/metadata/current_example.feature
classiccms-0.7.3 vendor/bundle/gems/rspec-core-2.9.0/features/metadata/current_example.feature
tnargav-1.3.3 vendor/bundle/ruby/1.9.1/gems/rspec-core-2.11.1/features/metadata/current_example.feature
tnargav-1.2.3 vendor/bundle/ruby/1.9.1/gems/rspec-core-2.11.1/features/metadata/current_example.feature
classiccms-0.7.2 vendor/bundle/gems/rspec-core-2.9.0/features/metadata/current_example.feature
classiccms-0.7.2 vendor/bundle/gems/rspec-core-2.10.0/features/metadata/current_example.feature
classiccms-0.7.1 vendor/bundle/gems/rspec-core-2.10.0/features/metadata/current_example.feature
classiccms-0.7.1 vendor/bundle/gems/rspec-core-2.9.0/features/metadata/current_example.feature
classiccms-0.7.0 vendor/bundle/gems/rspec-core-2.10.0/features/metadata/current_example.feature
classiccms-0.7.0 vendor/bundle/gems/rspec-core-2.9.0/features/metadata/current_example.feature
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/rspec-core-2.10.1/features/metadata/current_example.feature
classiccms-0.6.9 vendor/bundle/gems/rspec-core-2.10.0/features/metadata/current_example.feature
classiccms-0.6.9 vendor/bundle/gems/rspec-core-2.9.0/features/metadata/current_example.feature
classiccms-0.6.8 vendor/bundle/gems/rspec-core-2.10.0/features/metadata/current_example.feature
classiccms-0.6.8 vendor/bundle/gems/rspec-core-2.9.0/features/metadata/current_example.feature
classiccms-0.6.7 vendor/bundle/gems/rspec-core-2.10.0/features/metadata/current_example.feature