PageRenderTime 30ms CodeModel.GetById 19ms app.highlight 6ms RepoModel.GetById 2ms app.codeStats 0ms

/vendor/bundle/jruby/2.1/gems/rspec-core-2.14.8/features/metadata/described_class.feature

https://github.com/delowong/logstash
Gherkin Specification | 17 lines | 14 code | 3 blank | 0 comment | 0 complexity | 7c27dc0d28a1f2bad0c6d4485c3a19d4 MD5 | raw file
 1Feature: described class
 2
 3  If the first argument to the outermost example group is a class, the class is
 4  exposed to each example via the described_class() method.
 5
 6  Scenario: access the described class from the example
 7    Given a file named "spec/example_spec.rb" with:
 8      """ruby
 9      describe Fixnum do
10        it "is available as described_class" do
11          described_class.should eq(Fixnum)
12        end
13      end
14      """
15    When I run `rspec spec/example_spec.rb`
16    Then the example should pass
17