spec/celsius/hash_spec.rb in celsius-0.4.2 vs spec/celsius/hash_spec.rb in celsius-0.4.3

- old
+ new

@@ -60,16 +60,19 @@ describe ".smart_fetch" do let(:hash) do { foo: "bar", + "bar" => "foo", muff: false } end it "fetches a value by key indifferently from the given hash" do expect(described_class.smart_fetch(hash, :foo)).to eq(hash[:foo]) expect(described_class.smart_fetch(hash, "foo")).to eq(hash[:foo]) + expect(described_class.smart_fetch(hash, :bar)).to eq(hash["bar"]) + expect(described_class.smart_fetch(hash, "bar")).to eq(hash["bar"]) expect(described_class.smart_fetch(hash, "muff")).to eq(hash[:muff]) end end describe ".smart_store" do