Sha256: 57e3834a4fdfdf3612c1d424646a1f07076a43611819ad2fc912fa98e4ee1f9d
Contents?: true
Size: 952 Bytes
Versions: 2
Compression:
Stored size: 952 Bytes
Contents
require 'helper' class TestRails2Integration < Test::Unit::TestCase def setup ENV['BUNDLE_GEMFILE'] = nil # Bundler confuses the rake test task... @original_wd = Dir.getwd Dir.chdir(File.join(File.dirname(__FILE__), 'rails2')) end def teardown Dir.chdir @original_wd end def test_passing_rails3_test_suite test_suite_output = `rake test` exit_status = $? assert exit_status.success?, "Rails 2 app's test suite should pass! Output was: #{test_suite_output}" assert_equal 1, test_suite_output.scan(/Loading test data in PostTest/).length assert_equal 1, test_suite_output.scan(/Loading test data in PostsControllerTest/).length assert_equal 1, test_suite_output.scan(/Loading test data in UserTest/).length assert_equal 1, test_suite_output.scan(/Loading test data in UsersControllerTest/).length assert_equal 1, test_suite_output.scan(/Loading test data in UiTest/).length end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
transactionata-0.2.0 | test/test_rails2_integration.rb |
transactionata-0.1.0 | test/test_rails2_integration.rb |