Sha256: 136158bf9f0f6a9df8a8d74a0d559538ffb2415a86ec8c33b5ed7a24f420f595
Contents?: true
Size: 837 Bytes
Versions: 2
Compression:
Stored size: 837 Bytes
Contents
Feature: implicit subject The first argument to the outermost example group block is made available to each example as an implicit subject of that example. Scenario: subject in top level group Given the following spec: """ describe Array, "when first created" do it "should be empty" do subject.should == [] end end """ When I run it with the spec command Then the stdout should match "1 example, 0 failures" Scenario: subject in a nested group Given the following spec: """ describe Array do describe "when first created" do it "should be empty" do subject.should == [] end end end """ When I run it with the spec command Then the stdout should match "1 example, 0 failures"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspec-1.2.1 | features/subject/implicit_subject.feature |
rspec-1.2.2 | features/subject/implicit_subject.feature |