diff options
Diffstat (limited to 'spec/ruby/optional/capi/globals_spec.rb')
-rw-r--r-- | spec/ruby/optional/capi/globals_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/optional/capi/globals_spec.rb b/spec/ruby/optional/capi/globals_spec.rb index 84694b1375..ffc579023d 100644 --- a/spec/ruby/optional/capi/globals_spec.rb +++ b/spec/ruby/optional/capi/globals_spec.rb @@ -140,7 +140,7 @@ describe "CApiGlobalSpecs" do end after :each do - $\ = @dollar_backslash + suppress_warning {$\ = @dollar_backslash} end it "returns nil by default" do @@ -148,7 +148,7 @@ describe "CApiGlobalSpecs" do end it "returns the value of $\\" do - $\ = "foo" + suppress_warning {$\ = "foo"} @f.rb_output_rs.should == "foo" end end |