Sha256: 003745738b6465483209b9c459e45a6ce93b77166dbed02037ae16321ea26c6c

Contents?: true

Size: 561 Bytes

Versions: 5

Compression:

Stored size: 561 Bytes

Contents

require 'rubygems'
require 'stringio'
require 'test/unit'

require File.dirname(__FILE__) + '/../lib/staticmatic'

TEST_SITE_PATH = File.join(File.dirname(__FILE__), "sandbox", "test_site")

class Test::Unit::TestCase
  def self.should(description, &block)
    test_name = "test_should_#{description.gsub(/[\s]/,'_')}".to_sym
    raise "#{test_name} is already defined in #{self}" if self.instance_methods.include?(test_name.to_s)
    define_method(test_name, &block)
  end
end

def setup_staticmatic
  @staticmatic = StaticMatic::Base.new(TEST_SITE_PATH)
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
bdimcheff-staticmatic-0.10.1 test/test_helper.rb
mattt-staticmatic-0.10.1 test/test_helper.rb
staticmatic-0.10.2 test/test_helper.rb
staticmatic-0.10.1 test/test_helper.rb
staticmatic-0.10.0 test/test_helper.rb