Sha256: 1e9f6a3faa16a47b18695ed1e6e3b3ae940df9657305d7d2d6f5b0081a42a070
Contents?: true
Size: 808 Bytes
Versions: 5
Compression:
Stored size: 808 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Mutagem do before(:each) do @filename = 'input.txt' create_file(@filename, "the quick brown fox") end describe 'aruba current_dir' do it "should return the current dir as 'tmp/aruba'" do current_dir.should match(/^tmp\/aruba$/) end end describe "aruba_helper fullpath('input.txt')" do it "should return a valid expanded path to 'input.txt'" do path = fullpath('input.txt') path.should match(/tmp..*aruba/) File.exists?(path).should == true end end describe "aruba_helper get_file_contents('input.txt')" do it "should return the contents of 'input.txt' as a String" do get_file_contents('input.txt').should == 'the quick brown fox' end end end
Version data entries
5 entries across 5 versions & 1 rubygems