mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[Bug #20982] Put spaces in ENV.inspect
results as well as Hash
This commit is contained in:
parent
80f2329f76
commit
24f48c83e7
3 changed files with 5 additions and 5 deletions
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
|
||||
ENV["foo"] = "bar"
|
||||
ENV.inspect.should =~ /\{.*"foo"=>"bar".*\}/
|
||||
ENV.inspect.should =~ /\{.*"foo" *=> *"bar".*\}/
|
||||
ENV.delete "foo"
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue