Sha256: 29d9c9c8e07962f6c4cf7be48f487e50f33f7d6961957d78b8152166665d4e6e
Contents?: true
Size: 1.14 KB
Versions: 3
Compression:
Stored size: 1.14 KB
Contents
require File.expand_path('../../spec_helper', __FILE__) require File.expand_path('../../../common/adapter_integration_tests', __FILE__) require File.expand_path('../../../common/rails_integration_test', __FILE__) describe 'Integration between TestUnit 1 and Rails' do include AdapterIntegrationTests include IntegrationWithRails def bootstrap <<-EOT RAILS_ROOT = File.expand_path(__FILE__) require 'test/unit' require 'rubygems' require 'rack' require 'active_support/all' require 'action_controller' require 'active_support/test_case' require 'rr' EOT end def error_test <<-EOT #{bootstrap} class FooTest < ActiveSupport::TestCase def test_foo object = Object.new mock(object).foo end end EOT end def include_adapter_test <<-EOT #{bootstrap} class ActiveSupport::TestCase include RR::Adapters::TestUnit end class FooTest < ActiveSupport::TestCase def test_foo object = Object.new mock(object).foo object.foo end end EOT end end
Version data entries
3 entries across 3 versions & 1 rubygems