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
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/metadata/current_example.feature
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/metadata/current_example.feature
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/features/metadata/current_example.feature
vagrant-unbundled-1.8.5.2 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/features/metadata/current_example.feature
vagrant-unbundled-1.8.5.1 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/features/metadata/current_example.feature
vagrant-unbundled-1.8.4.2 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/features/metadata/current_example.feature
vagrant-unbundled-1.8.4.1 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/features/metadata/current_example.feature
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/features/metadata/current_example.feature
vagrant-cloudstack-1.1.0 vendor/bundle/gems/rspec-core-2.14.8/features/metadata/current_example.feature
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/rspec-core-2.13.0/features/metadata/current_example.feature
dxruby_rp5-0.0.4 spec/vendor/rspec-core-2.14.7/features/metadata/current_example.feature
rspec-core-2.14.8 features/metadata/current_example.feature
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/rspec-core-2.14.7/features/metadata/current_example.feature
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/rspec-core-2.14.7/features/metadata/current_example.feature
dxruby_rp5-0.0.3 spec/vendor/rspec-core-2.14.7/features/metadata/current_example.feature
tuktuk-rails-0.0.10 vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/metadata/current_example.feature
tuktuk-rails-0.0.9 vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/metadata/current_example.feature
tuktuk-rails-0.0.8 vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/metadata/current_example.feature
tuktuk-rails-0.0.7 vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/metadata/current_example.feature
dxruby_rp5-0.0.2 spec/vendor/rspec-core-2.14.7/features/metadata/current_example.feature