Sha256: c3e8e25bb6b36448e3d0ca1b0696d13811e2b6a1adb2dbd96f2100d4cc74e18d

Contents?: true

Size: 570 Bytes

Versions: 5

Compression:

Stored size: 570 Bytes

Contents

require 'test/unit'
require File.dirname(__FILE__) + '/../lib/goaloc'
require 'rubygems'
require "shoulda"
require 'mocha'

def self.should_create_directory(directory)
  should "create #{directory} directory" do
    assert File.exists?(File.join(@tmp_dir, directory))
    assert File.directory?(File.join(@tmp_dir, directory))
  end
end

def self.should_create_files(*files)
  should "create #{files.join ', '}" do
    files.each do |file|
      assert File.exists?(File.join(@tmp_dir, file))
      assert File.file?(File.join(@tmp_dir, file))        
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mattknox-goaloc-0.4.1 test/test_helper.rb
mattknox-goaloc-0.4.2 test/test_helper.rb
mattknox-goaloc-0.4.4 test/test_helper.rb
mattknox-goaloc-0.4.5 test/test_helper.rb
mattknox-goaloc-0.4.7 test/test_helper.rb