Sha256: 33c0e25144b06608c04148730db3873acaddd984d634a5d956e51f3d53845308

Contents?: true

Size: 502 Bytes

Versions: 26

Compression:

Stored size: 502 Bytes

Contents

# -*- coding: utf-8 -*-
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

26 entries across 26 versions & 1 rubygems

Version Path
gemirro-0.13.5 spec/gemirro/mirror_file_spec.rb
gemirro-0.13.4 spec/gemirro/mirror_file_spec.rb
gemirro-0.13.3 spec/gemirro/mirror_file_spec.rb
gemirro-0.13.2 spec/gemirro/mirror_file_spec.rb
gemirro-0.13.1 spec/gemirro/mirror_file_spec.rb
gemirro-0.12.0 spec/gemirro/mirror_file_spec.rb
gemirro-0.11.0 spec/gemirro/mirror_file_spec.rb
gemirro-0.10.5 spec/gemirro/mirror_file_spec.rb
gemirro-0.10.4 spec/gemirro/mirror_file_spec.rb
gemirro-0.10.3 spec/gemirro/mirror_file_spec.rb
gemirro-0.10.2 spec/gemirro/mirror_file_spec.rb
gemirro-0.10.1 spec/gemirro/mirror_file_spec.rb
gemirro-0.10.0 spec/gemirro/mirror_file_spec.rb
gemirro-0.9.1 spec/gemirro/mirror_file_spec.rb
gemirro-0.9.0 spec/gemirro/mirror_file_spec.rb
gemirro-0.8.1 spec/gemirro/mirror_file_spec.rb
gemirro-0.8.0 spec/gemirro/mirror_file_spec.rb
gemirro-0.7.0 spec/gemirro/mirror_file_spec.rb
gemirro-0.6.0 spec/gemirro/mirror_file_spec.rb
gemirro-0.5.0 spec/gemirro/mirror_file_spec.rb