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 ffc579023d..1e8ab0938f 100644 --- a/spec/ruby/optional/capi/globals_spec.rb +++ b/spec/ruby/optional/capi/globals_spec.rb @@ -59,7 +59,7 @@ describe "CApiGlobalSpecs" do end after :each do - $/ = @dollar_slash + suppress_warning {$/ = @dollar_slash} end it "returns \\n by default" do @@ -67,7 +67,7 @@ describe "CApiGlobalSpecs" do end it "returns the value of $/" do - $/ = "foo" + suppress_warning {$/ = "foo"} @f.rb_rs.should == "foo" end end |