features/subject/implicit_subject.feature in rspec-1.2.8 vs features/subject/implicit_subject.feature in rspec-1.2.9
- old
+ new
@@ -12,11 +12,11 @@
subject.should == []
end
end
"""
When I run "spec top_level_subject_spec.rb"
- Then the stdout should match "1 example, 0 failures"
+ Then the stdout should include "1 example, 0 failures"
Scenario: subject in a nested group
Given a file named "nested_subject_spec.rb" with:
"""
describe Array do
@@ -26,6 +26,18 @@
end
end
end
"""
When I run "spec nested_subject_spec.rb"
- Then the stdout should match "1 example, 0 failures"
+ Then the stdout should include "1 example, 0 failures"
+
+ Scenario: subject with getters
+ Given a file named "subject_with_getter_spec.rb" with:
+ """
+ describe Array do
+ describe "when first created" do
+ its(:length) { should == 0 }
+ end
+ end
+ """
+ When I run "spec subject_with_getter_spec.rb"
+ Then the stdout should include "1 example, 0 failures"