aboutsummaryrefslogtreecommitdiffstats
path: root/spec/rubyspec/language/while_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/language/while_spec.rb')
-rw-r--r--spec/rubyspec/language/while_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/rubyspec/language/while_spec.rb b/spec/rubyspec/language/while_spec.rb
index a498112919..00e948e41f 100644
--- a/spec/rubyspec/language/while_spec.rb
+++ b/spec/rubyspec/language/while_spec.rb
@@ -127,7 +127,7 @@ describe "The while expression" do
a.should == [1, 2]
end
- it "stops running body if interrupted by break in a parenthesized attribute op-assign-or value" do
+ it "stops running body if interrupted by break with unless in a parenthesized attribute op-assign-or value" do
a = mock("attribute assignment break")
a.should_receive(:m).twice.and_return(nil)
a.should_receive(:m=)
@@ -142,7 +142,7 @@ describe "The while expression" do
end.should be_nil
end
- it "stops running body if interrupted by break in a begin ... end attribute op-assign-or value" do
+ it "stops running body if interrupted by break with unless in a begin ... end attribute op-assign-or value" do
a = mock("attribute assignment break")
a.should_receive(:m).twice.and_return(nil)
a.should_receive(:m=)