Sha256: 4b5f0e266247343e93a499b9b2fc9e7cb45532535222c71ab6d05d0e8901a123

Contents?: true

Size: 770 Bytes

Versions: 3

Compression:

Stored size: 770 Bytes

Contents

require 'spec_helper'

describe RepoManager  do

  before(:each) do
    @filename = 'input.txt'
    write_file(@filename, "the quick brown fox")
  end

  describe 'Aruba::API.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

3 entries across 3 versions & 1 rubygems

Version Path
repo_manager-0.7.3 spec/basic_gem/aruba_helper_spec.rb
repo_manager-0.7.2 spec/basic_gem/aruba_helper_spec.rb
repo_manager-0.7.1 spec/basic_gem/aruba_helper_spec.rb