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