Sha256: 3a329d0b2717b70cf121f99546fef7a8adbf6ed4162fb7fb4fca9b8cfef74d88
Contents?: true
Size: 875 Bytes
Versions: 2
Compression:
Stored size: 875 Bytes
Contents
Feature: explicit subject You can override the implicit subject using the subject() method. Scenario: subject in top level group Given the following spec: """ describe Array, "with some elements" do subject { [1,2,3] } it "should have the prescribed elements" do subject.should == [1,2,3] 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 subject { [1,2,3] } describe "with some elements" do it "should have the prescribed elements" do subject.should == [1,2,3] 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/explicit_subject.feature |
rspec-1.2.2 | features/subject/explicit_subject.feature |