Sha256: d8921cdadb06d978c161c7b6f7d8a4bdda1c9b27ebcc984f88582b3dbf07cd28

Contents?: true

Size: 382 Bytes

Versions: 4

Compression:

Stored size: 382 Bytes

Contents

require 'spec_helper'

include Ramdo
describe Cleaner do
  it 'should clean up all stores' do
    stores = []
    10.times { stores << Store.new }

    Timecop.freeze(Time.local(2100)) do
      stores.each { |store| expect(Dir.exist?(store.dir)).to be_truthy }

      new_store = Store.new
      stores.each { |store| expect(Dir.exist?(store.dir)).to be_falsey }
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ramdo-0.3.2 spec/cleaner_spec.rb
ramdo-0.3.1 spec/cleaner_spec.rb
ramdo-0.3.0 spec/cleaner_spec.rb
ramdo-0.2.1 spec/cleaner_spec.rb