[Bug #20982] Put spaces in ENV.inspect results as well as Hash

This commit is contained in:
Nobuyoshi Nakada 2024-12-26 15:01:48 +09:00
parent 19c39e4cfa
commit c6dbb10b74
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2024-12-26 07:29:59 +00:00
3 changed files with 5 additions and 5 deletions

View File

@ -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