[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 committed by Takashi Kokubun
parent 80f2329f76
commit 24f48c83e7
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