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