diff options
author | rick <technoweenie@gmail.com> | 2008-06-28 00:55:02 -0700 |
---|---|---|
committer | rick <technoweenie@gmail.com> | 2008-06-28 00:55:02 -0700 |
commit | b9528ad3c5379896b00772cb44faf1db0fd882d7 (patch) | |
tree | 422ae423e519f744d51698d45a6fb931172b9cb2 /activemodel/test/test_helper.rb | |
parent | b7c6ceff9a31cc478c4bc89d57980900a775fbed (diff) | |
download | rails-b9528ad3c5379896b00772cb44faf1db0fd882d7.tar.gz rails-b9528ad3c5379896b00772cb44faf1db0fd882d7.tar.bz2 rails-b9528ad3c5379896b00772cb44faf1db0fd882d7.zip |
initial statemachine machine and state classes
Diffstat (limited to 'activemodel/test/test_helper.rb')
-rw-r--r-- | activemodel/test/test_helper.rb | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/activemodel/test/test_helper.rb b/activemodel/test/test_helper.rb index 8e608fa0bc..ccf93280ec 100644 --- a/activemodel/test/test_helper.rb +++ b/activemodel/test/test_helper.rb @@ -3,7 +3,8 @@ $:.unshift File.dirname(__FILE__) require 'test/unit' require 'active_model' -require 'active_support/callbacks' # needed by ActiveSupport::TestCase +require 'active_model/state_machine' +require 'active_support/callbacks' # needed by ActiveModel::TestCase require 'active_support/test_case' def uses_gem(gem_name, test_name, version = '> 0') @@ -21,3 +22,18 @@ unless defined? uses_mocha uses_gem('mocha', test_name, '>= 0.5.5', &block) end end + +begin + require 'rubygems' + require 'ruby-debug' + Debugger.start +rescue LoadError +end + +ActiveSupport::TestCase.send :include, ActiveSupport::Testing::Default + +module ActiveModel + class TestCase < ActiveSupport::TestCase + include ActiveSupport::Testing::Default + end +end
\ No newline at end of file |