зеркало из https://github.com/github/octofacts.git
Define hash keys consistently
This commit is contained in:
Родитель
6162cc97a0
Коммит
af77aec6ff
|
@ -8,7 +8,7 @@ describe Octofacts::Util::Keys do
|
|||
it "should work" do
|
||||
f = facts
|
||||
result = described_class.downcase_keys!(f)
|
||||
expect(f).to eq({"foo": "foo-value", baz: "baz-value", "bar": "bar-value", buzz: "buzz-value"})
|
||||
expect(f).to eq({foo: "foo-value", baz: "baz-value", bar: "bar-value", buzz: "buzz-value"})
|
||||
expect(result).to eq({"foo": "foo-value", baz: "baz-value", "bar": "bar-value", buzz: "buzz-value"})
|
||||
end
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче