aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-04-05 17:12:23 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-04-05 17:12:23 -0700
commitcc0c392c77548236207f5973269409d676ae7008 (patch)
treef9a6332a96caba54ac58af0245dc670db9bac956 /railties
parent2e0e5bb1e4ee5836572fffe6e3f16eefd56b4a25 (diff)
downloadrails-cc0c392c77548236207f5973269409d676ae7008.tar.gz
rails-cc0c392c77548236207f5973269409d676ae7008.tar.bz2
rails-cc0c392c77548236207f5973269409d676ae7008.zip
add integration test for shorthand rake tests
Diffstat (limited to 'railties')
-rw-r--r--railties/test/application/test_runner_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/test/application/test_runner_test.rb b/railties/test/application/test_runner_test.rb
index c82ac8b5d3..1cf53aa4fb 100644
--- a/railties/test/application/test_runner_test.rb
+++ b/railties/test/application/test_runner_test.rb
@@ -195,6 +195,13 @@ module ApplicationTests
end
end
+ def test_run_with_model
+ create_model_with_fixture
+ create_fixture_test 'models', 'user'
+ assert_match "3 users", run_task(["test models/user"])
+ assert_match "3 users", run_task(["test app/models/user.rb"])
+ end
+
def test_run_different_environment_using_env_var
app_file 'test/unit/env_test.rb', <<-RUBY
require 'test_helper'