spec/store_spec.rb in ramdo-0.1.2 vs spec/store_spec.rb in ramdo-0.1.3

- old
+ new

@@ -1,9 +1,9 @@ require 'spec_helper' include Ramdo -describe Store do +describe Store, focus: true do after(:all) do wrapper = Ramdisk::Factory.get wrapper.list.each do |disk| disk.destroy! end @@ -15,9 +15,16 @@ store = Store.new store.data = test_data expect(IO.read(store.file)).to eq(test_data) expect(store.data).to eq(test_data) + end + + it 'should create a new store with a specific file extension' do + extension = '.bin' + + store = Store.new(extension: extension) + expect(File.extname(store.file)).to eq(extension) end it 'should create a new store and write data to it' do test_data = 'make me sexy'