Sha256: ae669fdd9329b8e16b4719b0ad638226a53e0c581b1819b121d2dbfcb413c516
Contents?: true
Size: 978 Bytes
Versions: 3
Compression:
Stored size: 978 Bytes
Contents
describe FlareUp::OptionStore do describe '.store_option' do it 'should store the specified option' do FlareUp::OptionStore.store_option('name', 'value') expect(FlareUp::OptionStore.get('name')).to eq('value') end end describe '.store_options' do it 'should store all the options' do FlareUp::OptionStore.store_options(:o1 => 'v1', :o2 => 'v2') expect(FlareUp::OptionStore.get(:o1)).to eq('v1') expect(FlareUp::OptionStore.get(:o2)).to eq('v2') end end describe '.get_options' do let(:options) {{:o1 => 'v1', :o2 => 'v2'}} it 'should return all options' do FlareUp::OptionStore.store_options(options) expect(FlareUp::OptionStore.get_options).to eq(options) end end describe '.clear' do it 'should remove all options' do FlareUp::OptionStore.store_option('name', 'value') FlareUp::OptionStore.clear expect(FlareUp::OptionStore.get('name')).to eq(nil) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
flare-up-0.10 | spec/lib/flare_up/option_store_spec.rb |
flare-up-0.9 | spec/lib/flare_up/option_store_spec.rb |
flare-up-0.8 | spec/lib/flare_up/option_store_spec.rb |