spec/reactive/reactive_hash_spec.rb in volt-0.9.3 vs spec/reactive/reactive_hash_spec.rb in volt-0.9.4.pre1
- old
+ new
@@ -7,6 +7,11 @@
expect(a[:name]).to eq('Bob')
a.clear
expect(a[:name]).to eq(nil)
end
+
+ it 'should return to_json' do
+ a = Volt::ReactiveHash.new({name: 'bob'})
+ expect(a.to_json).to eq("{\"name\":\"bob\"}")
+ end
end