Sha256: 359704d6f0670e92198b1ac073a82d09d14ef1188f8971014bf582fbde95aed8
Contents?: true
Size: 479 Bytes
Versions: 5
Compression:
Stored size: 479 Bytes
Contents
require 'spec_helper' require 'opal/jquery/local_storage' describe LocalStorage do before { subject.clear } it "returns nil for undefined values" do expect(subject['foo']).to be_nil end it "should be able to create items" do subject['foo'] = 'Ford Prefect' expect(subject['foo']).to eq('Ford Prefect') end it "should be able to delete items" do subject['name'] = 'Arthur' subject.delete 'name' expect(subject['name']).to be_nil end end
Version data entries
5 entries across 5 versions & 1 rubygems