/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
- Feature: described class
- If the first argument to the outermost example group is a class, the class is
- exposed to each example via the described_class() method.
- Scenario: access the described class from the example
- Given a file named "spec/example_spec.rb" with:
- """ruby
- describe Fixnum do
- it "is available as described_class" do
- described_class.should eq(Fixnum)
- end
- end
- """
- When I run `rspec spec/example_spec.rb`
- Then the example should pass