Sha256: 2afa2892d0917ba67a2318269ded7e3d61d5ff8e209131e8f6d94f259f94bc49

Contents?: true

Size: 478 Bytes

Versions: 10

Compression:

Stored size: 478 Bytes

Contents

require 'spec_helper'
require 'gemirro/mirror_file'

# Mirror file tests
module Gemirro
  describe 'MirrorFile' do
    include FakeFS::SpecHelpers

    before(:each) do
      @mirror_file = MirrorFile.new('./test')
    end

    it 'should be initialized' do
      expect(@mirror_file.path).to eq('./test')
    end

    it 'should write and read content' do
      expect(@mirror_file.write('content')).to be_nil
      expect(@mirror_file.read).to eq('content')
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
gemirro-1.5.0 spec/gemirro/mirror_file_spec.rb
gemirro-1.4.0 spec/gemirro/mirror_file_spec.rb
gemirro-1.3.0 spec/gemirro/mirror_file_spec.rb
gemirro-1.2.0 spec/gemirro/mirror_file_spec.rb
gemirro-1.1.1 spec/gemirro/mirror_file_spec.rb
gemirro-1.1.0 spec/gemirro/mirror_file_spec.rb
gemirro-1.0.0 spec/gemirro/mirror_file_spec.rb
gemirro-0.16.0 spec/gemirro/mirror_file_spec.rb
gemirro-0.15.0 spec/gemirro/mirror_file_spec.rb
gemirro-0.14.0 spec/gemirro/mirror_file_spec.rb