Permalink
Browse files

Guard a spec as not compliant on Rubinius.

  • Loading branch information...
1 parent 802c7d6 commit 6dfb9b03b95c9d3a51b1cf160ba454cde5693aa8 @ileitch ileitch committed May 8, 2012
Showing with 8 additions and 7 deletions.
  1. +8 −6 spec/ruby/language/predefined_spec.rb
  2. +0 −1 spec/tags/19/ruby/language/predefined_tags.txt
@@ -382,12 +382,14 @@ def obj.foo2; yield; end
end
end
- it "does not include '.' when the taint check level > 1" do
- begin
- orig_opts, ENV['RUBYOPT'] = ENV['RUBYOPT'], '-T'
- `#{RUBY_EXE} -e 'p $:.include?(".")'`.should == "false\n"
- ensure
- ENV['RUBYOPT'] = orig_opts
+ not_compliant_on :rubinius do
+ it "does not include '.' when the taint check level > 1" do
+ begin
+ orig_opts, ENV['RUBYOPT'] = ENV['RUBYOPT'], '-T'
+ `#{RUBY_EXE} -e 'p $:.include?(".")'`.should == "false\n"
+ ensure
+ ENV['RUBYOPT'] = orig_opts
+ end
end
end
@@ -1,3 +1,2 @@
fails:Predefined global $~ raises an error if assigned an object not nil or instanceof MatchData
fails:Execution variable $: does not include the current directory
-fails:Execution variable $: does not include '.' when the taint check level > 1

0 comments on commit 6dfb9b0

Please sign in to comment.