Sha256: 450861f8c6b91656a99329706cb7d24fa5e6adfc7236de2fd1c93aba45b70951
Contents?: true
Size: 520 Bytes
Versions: 2
Compression:
Stored size: 520 Bytes
Contents
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 expect(described_class).to eq(Fixnum) end end """ When I run `rspec spec/example_spec.rb` Then the example should pass
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspec-core-3.0.0.beta2 | features/metadata/described_class.feature |
rspec-core-3.0.0.beta1 | features/metadata/described_class.feature |