Sha256: b5315118ff228097bcb745d6145e3a727ff039a9eee4a9f2c58ea29231f0c38a
Contents?: true
Size: 961 Bytes
Versions: 2
Compression:
Stored size: 961 Bytes
Contents
require File.join(File.dirname(__FILE__), *%w[.. lib poolparty]) %w(test/spec).each do |library| begin require library rescue STDERR.puts "== Cannot run test without #{library}" end end Dir["#{File.dirname(__FILE__)}/helpers/**"].each {|a| require a} include PoolParty extend PoolParty Application.environment = "test" Application.verbose = false def wait_launch(time=5) pid = fork {yield} wait time Process.kill("INT", pid) Process.wait(pid, 0) end module Test::Unit::AssertDifference def assert_difference(object, method = nil, difference = 1) initial_value = object.send(method) yield assert_equal initial_value + difference, object.send(method), "#{object}##{method}" end def assert_no_difference(object, method, &block) assert_difference object, method, 0, &block end end Test::Spec::Should.send(:include, Test::Unit::AssertDifference) Test::Spec::ShouldNot.send(:include, Test::Unit::AssertDifference)
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
auser-poolparty-0.0.8 | spec/spec_helper.rb |
dreadpiratepj-poolparty-0.0.8 | spec/spec_helper.rb |