mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
33 lines
538 B
Ruby
33 lines
538 B
Ruby
require 'ostruct'
|
|
require 'rubygems'
|
|
|
|
begin
|
|
gem 'minitest'
|
|
rescue Gem::LoadError
|
|
puts 'minitest gem not found'
|
|
end
|
|
|
|
begin
|
|
require 'minitest/autorun'
|
|
puts 'using minitest'
|
|
rescue LoadError
|
|
require 'test/unit'
|
|
puts 'using test/unit'
|
|
end
|
|
|
|
require 'rr'
|
|
require 'shoulda'
|
|
|
|
class Test::Unit::TestCase
|
|
include RR::Adapters::TestUnit
|
|
end
|
|
|
|
begin
|
|
require 'ruby-debug'
|
|
Debugger.start
|
|
rescue LoadError
|
|
end
|
|
|
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
|
require 'aasm'
|