diff options
author | Dalibor Nasevic <dalibor.nasevic@gmail.com> | 2013-02-08 00:53:11 +0100 |
---|---|---|
committer | Prem Sichanugrist <s@sikac.hu> | 2013-03-09 16:03:55 -0500 |
commit | df85dfa6fa6f7ae9a0b72eb9b9a254d2d5560f38 (patch) | |
tree | 6a0782530c35a6010c257394cb17e3bea1903707 /railties/test/application | |
parent | 1a0c58b2988a24a783b4f9a658ac629922125551 (diff) | |
download | rails-df85dfa6fa6f7ae9a0b72eb9b9a254d2d5560f38.tar.gz rails-df85dfa6fa6f7ae9a0b72eb9b9a254d2d5560f38.tar.bz2 rails-df85dfa6fa6f7ae9a0b72eb9b9a254d2d5560f38.zip |
Improve wording for rails test command
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/test_runner_test.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/railties/test/application/test_runner_test.rb b/railties/test/application/test_runner_test.rb index 71e2b403af..810748682a 100644 --- a/railties/test/application/test_runner_test.rb +++ b/railties/test/application/test_runner_test.rb @@ -141,11 +141,11 @@ module ApplicationTests end end - def test_run_whole_suite - types = [:models, :helpers, :unit, :controllers, :mailers, :functional, :integration] - types.each { |type| create_test_file type, "foo_#{type}" } + def test_run_all_suites + suites = [:models, :helpers, :unit, :controllers, :mailers, :functional, :integration] + suites.each { |suite| create_test_file suite, "foo_#{suite}" } run_test_command('') .tap do |output| - types.each { |type| assert_match /Foo#{type.to_s.camelize}Test/, output } + suites.each { |suite| assert_match /Foo#{suite.to_s.camelize}Test/, output } assert_match /7 tests, 7 assertions, 0 failures/, output end end @@ -180,13 +180,13 @@ module ApplicationTests def test_load_fixtures_when_running_test_suites create_model_with_fixture - types = [:models, :helpers, [:units, :unit], :controllers, :mailers, + suites = [:models, :helpers, [:units, :unit], :controllers, :mailers, [:functionals, :functional], :integration] - types.each do |type, directory| - directory ||= type + suites.each do |suite, directory| + directory ||= suite create_fixture_test directory - assert_match /3 users/, run_test_command(type) + assert_match /3 users/, run_test_command(suite) Dir.chdir(app_path) { FileUtils.rm_f "test/#{directory}" } end end |