spec/mashed/stringy_hash_spec.rb in mashed-0.5.0 vs spec/mashed/stringy_hash_spec.rb in mashed-0.5.1
- old
+ new
@@ -4,6 +4,13 @@
let(:hash) {{ a: 1, b: 2, c: { three: 3 }}}
describe "#stringify" do
it { expect(hash.stringify).to eq("a" => 1, "b" => 2, "c" => { "three" => 3 }) }
end
+
+ describe "get and set" do
+ let(:s) { hash.stringify }
+ before { s[:a] = "A" }
+ it { expect(s[:a]).to eq("A") }
+ it { expect(s["a"]).to eq("A") }
+ end
end