Sha256: df8d71b9aee910269fcce26ec6cd0f741f1c6cd645bc87d6f2c6b5c4d3a19510
Contents?: true
Size: 765 Bytes
Versions: 8
Compression:
Stored size: 765 Bytes
Contents
require 'spec_helper' require 'browser/storage' describe Browser::Window do describe '#storage' do it 'creates a new storage' do expect($window.storage).to be_a(Browser::Storage) end it 'creates a storage with the proper name' do expect($window.storage.name).to eq(:default) expect($window.storage(:spec).name).to eq(:spec) end end describe '#session_storage' do it 'creates a new session storage' do expect($window.session_storage).to be_a(Browser::SessionStorage) end it 'creates a session storage with the proper name' do expect($window.session_storage.name).to eq(:default) expect($window.session_storage(:spec).name).to eq(:spec) end end if Browser::SessionStorage.supported? end
Version data entries
8 entries across 8 versions & 2 rubygems