Sha256: ed39ba9f2dcf0dd08c74530e74e9420b0ff0d3c3c33118a9442f0c1ba4e13c1d
Contents?: true
Size: 516 Bytes
Versions: 51
Compression:
Stored size: 516 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 described_class.should eq(Fixnum) end end """ When I run `rspec spec/example_spec.rb` Then the example should pass
Version data entries
51 entries across 51 versions & 13 rubygems