Moved a 1.8 specific 'for' example into a language version specific file.
--- MacRuby/branches/experimental/spec/frozen/language/for_spec.rb 2009-03-23 14:19:56 UTC (rev 1106)
+++ MacRuby/branches/experimental/spec/frozen/language/for_spec.rb 2009-03-23 15:01:16 UTC (rev 1107)
@@ -151,15 +151,6 @@
j.should == 8
end
-
- it "repeats the loop from the beginning with 'retry'" do
- j = 0
- for i in 1..5
- j += i
-
- retry if i == 3 && j < 7
- end
-
- j.should == 21
- end
end
+
+language_version __FILE__, "for"
\ No newline at end of file
--- MacRuby/branches/experimental/spec/frozen/language/versions/for_1.8.rb (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/language/versions/for_1.8.rb 2009-03-23 15:01:16 UTC (rev 1107)
@@ -0,0 +1,12 @@
+describe "The for expression" do
+ it "repeats the loop from the beginning with 'retry'" do
+ j = 0
+ for i in 1..5
+ j += i
+
+ retry if i == 3 && j < 7
+ end
+
+ j.should == 21
+ end
+end
\ No newline at end of file