Skip to content

Commit

Permalink
Guard a spec as not compliant on Rubinius.
Browse files Browse the repository at this point in the history
  • Loading branch information
ileitch committed May 8, 2012
1 parent 802c7d6 commit 6dfb9b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 8 additions & 6 deletions spec/ruby/language/predefined_spec.rb
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion spec/tags/19/ruby/language/predefined_tags.txt
@@ -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.