[Bug #20982] Put spaces in ENV.inspect
results as well as Hash
This commit is contained in:
parent
19c39e4cfa
commit
c6dbb10b74
Notes:
git
2024-12-26 07:29:59 +00:00
2
spec/ruby/core/env/inspect_spec.rb
vendored
2
spec/ruby/core/env/inspect_spec.rb
vendored
@ -4,7 +4,7 @@ describe "ENV.inspect" do
|
|||||||
|
|
||||||
it "returns a String that looks like a Hash with real data" do
|
it "returns a String that looks like a Hash with real data" do
|
||||||
ENV["foo"] = "bar"
|
ENV["foo"] = "bar"
|
||||||
ENV.inspect.should =~ /\{.*"foo"=>"bar".*\}/
|
ENV.inspect.should =~ /\{.*"foo" *=> *"bar".*\}/
|
||||||
ENV.delete "foo"
|
ENV.delete "foo"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user