Sha256: 79bba4a27237aa4c2ac804d46f7ca1d7c97c083c95f6168cd42c172207681da8
Contents?: true
Size: 485 Bytes
Versions: 7
Compression:
Stored size: 485 Bytes
Contents
require 'spec_helper' require 'opal/jquery/local_storage' RSpec.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
7 entries across 7 versions & 1 rubygems