Sha256: ad430b12a1c6971ab6fce3bbc99d387201e3ed2007b2f7cf76301ee6aede48b2
Contents?: true
Size: 353 Bytes
Versions: 27
Compression:
Stored size: 353 Bytes
Contents
require 'spec_helper' describe Volt::ReactiveHash do it 'should clear' do a = Volt::ReactiveHash.new a[:name] = 'Bob' 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
Version data entries
27 entries across 27 versions & 1 rubygems