[macruby-changes] [4442] MacRuby/trunk/spec/frozen
source_changes at macosforge.org
source_changes at macosforge.org
Sun Aug 22 06:17:46 PDT 2010
Revision: 4442
http://trac.macosforge.org/projects/ruby/changeset/4442
Author: eloy.de.enige at gmail.com
Date: 2010-08-22 06:17:46 -0700 (Sun, 22 Aug 2010)
Log Message:
-----------
Tag and disable critical specs
Modified Paths:
--------------
MacRuby/trunk/spec/frozen/tags/macruby/language/predefined_tags.txt
Added Paths:
-----------
MacRuby/trunk/spec/frozen/library/delegate/delegator/trust_spec_disabled.rb
MacRuby/trunk/spec/frozen/library/delegate/delegator/untaint_spec_disabled.rb
MacRuby/trunk/spec/frozen/library/delegate/delegator/untrust_spec_disabled.rb
Removed Paths:
-------------
MacRuby/trunk/spec/frozen/core/struct/shared/.equal_value.rb.rej.swp
MacRuby/trunk/spec/frozen/core/struct/shared/.equal_value.rb.swp
MacRuby/trunk/spec/frozen/library/delegate/delegator/trust_spec.rb
MacRuby/trunk/spec/frozen/library/delegate/delegator/untaint_spec.rb
MacRuby/trunk/spec/frozen/library/delegate/delegator/untrust_spec.rb
Deleted: MacRuby/trunk/spec/frozen/core/struct/shared/.equal_value.rb.rej.swp
===================================================================
--- MacRuby/trunk/spec/frozen/core/struct/shared/.equal_value.rb.rej.swp 2010-08-22 13:17:27 UTC (rev 4441)
+++ MacRuby/trunk/spec/frozen/core/struct/shared/.equal_value.rb.rej.swp 2010-08-22 13:17:46 UTC (rev 4442)
@@ -1,13 +0,0 @@
-b0VIM 7.2
-\xF8pL\xD2S o eloy monkey-patch-HQ.local /Volumes/eloy/code/MacRuby/complete/spec/frozen/core/struct/shared/equal_value.rb.rej
- 3210 #"! U tp ; ad < D ; \xF0 \xE2 \xAF v 4 \xFB \xF8 \xBA \x83 D \xB0
- y
- 8
-
- \xF9 \xF6 \xCF s P \xC6 \x8A j 9 6 ( \xF5
- \xBC
- s
- B
- :
- 7
- \xF9 \xBB u A 9 6 \xE1 \xA3 [ $
\xF2 \x96 s 5 \xDB \x98 x G D C x.send(@method, stepping).should == true stepping[:make] = stone + stone = StructClasses::Car.new(stepping, "Accord", "1998") + stepping = StructClasses::Car.new("Honda", "Accord", "1998") x[:make] = x + x = StructClasses::Car.new("Honda", "Accord", "1998") MyClass = Struct.new(:foo) it "handles recursive structures by returning false if a difference can be found " do ruby_bug "redmine #1885", "1.8" do end car.send(@method, different_car).should == false + different_car = StructClasses::Car.new("Honda", "Accord", "1995") + car = StructClasses::Car.new("Honda", "Accord", "1998") it "returns false if the other is a different object or has different fields" do end car.send(@method, similar_car).should == true + similar_car = StructClasses::Car.new("Honda", "Accord", "1998") + car = StructClasses::Car.new("Honda", "Accord", "1998") it "returns true if the other has all the same fields" do end car.send(@method, same_car).should == true + car = same_car = StructClasses::Car.new("Honda", "Accord", "1998") it "returns true if the other is the same object" do describe :struct_equal_value, :shared => true do --- 1,28 ---- x.send(@method, stepping).should == true stepping[:make] = stone - stone = Struct::Car.new(stepping, "Accord", "1998") - stepping = Struct::Car.new("Honda", "Accord", "1998") x[:make] = x - x = Struct::Car.new("Honda", "Accord", "1998") MyClass = Struct.new(:foo) it "handles recursive structures by returning false if a difference can be found " do ruby_bug "redmine #1885", "1.8" do end car.send(@method, different_car).should == false - different_car = Struct::Car.new("Honda", "Accord", "1995") - car = Struct::Car.new("Honda", "Accord", "1998") it "returns false if the other is a different object or has different fields" do end car.send(@method, similar_car).should == true - similar_car = Struct::Car.new("Honda", "Accord", "1998") - car = Struct::Car.new("Honda", "Accord", "1998") it "returns true if the other has all the same fields" do end car.send(@method, same_car).should == true - car = same_car = Struct::Car.new("Honda", "Accord", "1998") it "returns true if the other is the same object" do describe :struct_equal_value, :shared => true do *** 1,28 **** ***************
\ No newline at end of file
Deleted: MacRuby/trunk/spec/frozen/core/struct/shared/.equal_value.rb.swp
===================================================================
--- MacRuby/trunk/spec/frozen/core/struct/shared/.equal_value.rb.swp 2010-08-22 13:17:27 UTC (rev 4441)
+++ MacRuby/trunk/spec/frozen/core/struct/shared/.equal_value.rb.swp 2010-08-22 13:17:46 UTC (rev 4442)
@@ -1,14 +0,0 @@
-b0VIM 7.2 \xD8\xFBpL*S o eloy monkey-patch-HQ.local /Volumes/eloy/code/MacRuby/complete/spec/frozen/core/struct/shared/equal_value.rb utf-8
- 3210 #"! U tp ! ad >
- \xDE
- ! \xCF \x98 Q "
\xDF \xA3 _ - ' & \xD3
- \x97
- Q
-
-
-
- \xF0 \x97 v : ' \xE4 \xA3 \x85 V U \xF0
- \xE8
- \xE2
- \xDE
- end end end x.send(@method, stepping).should == false stone[:year] = "1999" # introduce a difference x.send(@method, stepping).should == true stepping[:make] = stone stone = StructClasses::Car.new(stepping, "Accord", "1998") stepping = StructClasses::Car.new("Honda", "Accord", "1998") x[:make] = x x = StructClasses::Car.new("Honda", "Accord", "1998") MyClass = Struct.new(:foo) it "handles recursive structures by returning false if a difference can be found" do ruby_bug "redmine #1885", "1.8" do end car.send(@method, different_car).should == false different_car = StructClasses::Car.new("Honda", "Accord", "1995") car = StructClasses::Car.new("Honda", "Accord", "1998") it "returns false if the other is a different object or has different fields" do end car.send(@method, similar_car).should == true similar_car = StructClasses::Car.new("Honda", "Accord", "1998") car = StructClasses::Car.new("Honda", "Accord", "1998") it "returns true if the other has all the same fields" do end car.send(@method, same_car).should == true car = same_car = StructClasses::Car.new("Honda", "Accord", "1998") it "returns true if the other is the same object" do describe :struct_equal_value, :shared => true do
\ No newline at end of file
Deleted: MacRuby/trunk/spec/frozen/library/delegate/delegator/trust_spec.rb
===================================================================
--- MacRuby/trunk/spec/frozen/library/delegate/delegator/trust_spec.rb 2010-08-22 13:17:27 UTC (rev 4441)
+++ MacRuby/trunk/spec/frozen/library/delegate/delegator/trust_spec.rb 2010-08-22 13:17:46 UTC (rev 4442)
@@ -1,26 +0,0 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
-require File.expand_path('../../fixtures/classes', __FILE__)
-
-ruby_version_is "1.9" do
- describe "Delegator#trust" do
- before :each do
- @delegate = lambda{$SAFE=4; DelegateSpecs::Delegator.new([])}.call
- end
-
- it "returns self" do
- @delegate.trust.equal?(@delegate).should be_true
- end
-
- it "trusts the delegator" do
- @delegate.trust
- @delegate.untrusted?.should be_false
- lambda{$SAFE=4; @delegate.data = :foo }.should raise_error( SecurityError )
- end
-
- it "trusts the delegated object" do
- @delegate.trust
- @delegate.__getobj__.untrusted?.should be_false
- lambda{$SAFE=4; @delegate << 42}.should raise_error( SecurityError )
- end
- end
-end
\ No newline at end of file
Copied: MacRuby/trunk/spec/frozen/library/delegate/delegator/trust_spec_disabled.rb (from rev 4441, MacRuby/trunk/spec/frozen/library/delegate/delegator/trust_spec.rb)
===================================================================
--- MacRuby/trunk/spec/frozen/library/delegate/delegator/trust_spec_disabled.rb (rev 0)
+++ MacRuby/trunk/spec/frozen/library/delegate/delegator/trust_spec_disabled.rb 2010-08-22 13:17:46 UTC (rev 4442)
@@ -0,0 +1,26 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require File.expand_path('../../fixtures/classes', __FILE__)
+
+ruby_version_is "1.9" do
+ describe "Delegator#trust" do
+ before :each do
+ @delegate = lambda{$SAFE=4; DelegateSpecs::Delegator.new([])}.call
+ end
+
+ it "returns self" do
+ @delegate.trust.equal?(@delegate).should be_true
+ end
+
+ it "trusts the delegator" do
+ @delegate.trust
+ @delegate.untrusted?.should be_false
+ lambda{$SAFE=4; @delegate.data = :foo }.should raise_error( SecurityError )
+ end
+
+ it "trusts the delegated object" do
+ @delegate.trust
+ @delegate.__getobj__.untrusted?.should be_false
+ lambda{$SAFE=4; @delegate << 42}.should raise_error( SecurityError )
+ end
+ end
+end
Deleted: MacRuby/trunk/spec/frozen/library/delegate/delegator/untaint_spec.rb
===================================================================
--- MacRuby/trunk/spec/frozen/library/delegate/delegator/untaint_spec.rb 2010-08-22 13:17:27 UTC (rev 4441)
+++ MacRuby/trunk/spec/frozen/library/delegate/delegator/untaint_spec.rb 2010-08-22 13:17:46 UTC (rev 4442)
@@ -1,26 +0,0 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
-require File.expand_path('../../fixtures/classes', __FILE__)
-
-describe "Delegator#untaint" do
- before :each do
- @delegate = lambda{$SAFE=4; DelegateSpecs::Delegator.new("")}.call
- end
-
- it "returns self" do
- @delegate.untaint.equal?(@delegate).should be_true
- end
-
- it "untaints the delegator" do
- @delegate.untaint
- @delegate.tainted?.should be_false
- # No additional meaningful test; that it does or not taint
- # "for real" the delegator has no consequence
- end
-
- ruby_bug "redmine:2223", "1.8" do
- it "untaints the delegated object" do
- @delegate.untaint
- @delegate.__getobj__.tainted?.should be_false
- end
- end
-end
Copied: MacRuby/trunk/spec/frozen/library/delegate/delegator/untaint_spec_disabled.rb (from rev 4441, MacRuby/trunk/spec/frozen/library/delegate/delegator/untaint_spec.rb)
===================================================================
--- MacRuby/trunk/spec/frozen/library/delegate/delegator/untaint_spec_disabled.rb (rev 0)
+++ MacRuby/trunk/spec/frozen/library/delegate/delegator/untaint_spec_disabled.rb 2010-08-22 13:17:46 UTC (rev 4442)
@@ -0,0 +1,26 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require File.expand_path('../../fixtures/classes', __FILE__)
+
+describe "Delegator#untaint" do
+ before :each do
+ @delegate = lambda{$SAFE=4; DelegateSpecs::Delegator.new("")}.call
+ end
+
+ it "returns self" do
+ @delegate.untaint.equal?(@delegate).should be_true
+ end
+
+ it "untaints the delegator" do
+ @delegate.untaint
+ @delegate.tainted?.should be_false
+ # No additional meaningful test; that it does or not taint
+ # "for real" the delegator has no consequence
+ end
+
+ ruby_bug "redmine:2223", "1.8" do
+ it "untaints the delegated object" do
+ @delegate.untaint
+ @delegate.__getobj__.tainted?.should be_false
+ end
+ end
+end
Deleted: MacRuby/trunk/spec/frozen/library/delegate/delegator/untrust_spec.rb
===================================================================
--- MacRuby/trunk/spec/frozen/library/delegate/delegator/untrust_spec.rb 2010-08-22 13:17:27 UTC (rev 4441)
+++ MacRuby/trunk/spec/frozen/library/delegate/delegator/untrust_spec.rb 2010-08-22 13:17:46 UTC (rev 4442)
@@ -1,26 +0,0 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
-require File.expand_path('../../fixtures/classes', __FILE__)
-
-ruby_version_is "1.9" do
- describe "Delegator#untrust" do
- before :each do
- @delegate = DelegateSpecs::Delegator.new("")
- end
-
- it "returns self" do
- @delegate.untrust.equal?(@delegate).should be_true
- end
-
- it "untrusts the delegator" do
- @delegate.__setobj__(nil)
- @delegate.untrust
- @delegate.untrusted?.should be_true
- lambda{$SAFE=4; @delegate.data = :foo }.should_not raise_error
- end
-
- it "untrusts the delegated object" do
- @delegate.untrust
- @delegate.__getobj__.untrusted?.should be_true
- end
- end
-end
\ No newline at end of file
Copied: MacRuby/trunk/spec/frozen/library/delegate/delegator/untrust_spec_disabled.rb (from rev 4441, MacRuby/trunk/spec/frozen/library/delegate/delegator/untrust_spec.rb)
===================================================================
--- MacRuby/trunk/spec/frozen/library/delegate/delegator/untrust_spec_disabled.rb (rev 0)
+++ MacRuby/trunk/spec/frozen/library/delegate/delegator/untrust_spec_disabled.rb 2010-08-22 13:17:46 UTC (rev 4442)
@@ -0,0 +1,26 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require File.expand_path('../../fixtures/classes', __FILE__)
+
+ruby_version_is "1.9" do
+ describe "Delegator#untrust" do
+ before :each do
+ @delegate = DelegateSpecs::Delegator.new("")
+ end
+
+ it "returns self" do
+ @delegate.untrust.equal?(@delegate).should be_true
+ end
+
+ it "untrusts the delegator" do
+ @delegate.__setobj__(nil)
+ @delegate.untrust
+ @delegate.untrusted?.should be_true
+ lambda{$SAFE=4; @delegate.data = :foo }.should_not raise_error
+ end
+
+ it "untrusts the delegated object" do
+ @delegate.untrust
+ @delegate.__getobj__.untrusted?.should be_true
+ end
+ end
+end
\ No newline at end of file
Modified: MacRuby/trunk/spec/frozen/tags/macruby/language/predefined_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/language/predefined_tags.txt 2010-08-22 13:17:27 UTC (rev 4441)
+++ MacRuby/trunk/spec/frozen/tags/macruby/language/predefined_tags.txt 2010-08-22 13:17:46 UTC (rev 4442)
@@ -1,3 +1,4 @@
+critical:Global variable $FILENAME is read-only
fails:Predefined global $_ is set to the last line read by e.g. StringIO#gets
fails:Predefined global $_ is set at the method-scoped level rather than block-scoped
fails:Execution variable $: does not include the current directory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100822/a76a4449/attachment-0001.html>
More information about the macruby-changes
mailing list