Skip to content
This repository
Browse code

Stop adding actual dummy tests (they clutter up the real ones in a ne…

…w app), just show how its done
  • Loading branch information...
commit 8d7efe6a4e25b8707d46006cf20f6ce499e83780 1 parent af1b489
David Heinemeier Hansson dhh authored
7 railties/lib/rails/generators/rails/plugin_new/templates/test/integration/navigation_test.rb
@@ -5,9 +5,8 @@ class NavigationTest < ActionDispatch::IntegrationTest
5 5 fixtures :all
6 6 <% end -%>
7 7
8   - # Replace this with your real tests.
9   - test "the truth" do
10   - assert true
11   - end
  8 + # test "the truth" do
  9 + # assert true
  10 + # end
12 11 end
13 12
7 railties/lib/rails/generators/test_unit/controller/templates/functional_test.rb
@@ -3,10 +3,9 @@
3 3 <% module_namespacing do -%>
4 4 class <%= class_name %>ControllerTest < ActionController::TestCase
5 5 <% if actions.empty? -%>
6   - # Replace this with your real tests.
7   - test "the truth" do
8   - assert true
9   - end
  6 + # test "the truth" do
  7 + # assert true
  8 + # end
10 9 <% else -%>
11 10 <% for action in actions -%>
12 11 test "should get <%= action %>" do
7 railties/lib/rails/generators/test_unit/integration/templates/integration_test.rb
@@ -3,8 +3,7 @@
3 3 class <%= class_name %>Test < ActionDispatch::IntegrationTest
4 4 fixtures :all
5 5
6   - # Replace this with your real tests.
7   - test "the truth" do
8   - assert true
9   - end
  6 + # test "the truth" do
  7 + # assert true
  8 + # end
10 9 end
7 railties/lib/rails/generators/test_unit/mailer/templates/functional_test.rb
@@ -13,10 +13,9 @@ class <%= class_name %>Test < ActionMailer::TestCase
13 13
14 14 <% end -%>
15 15 <% if actions.blank? -%>
16   - # replace this with your real tests
17   - test "the truth" do
18   - assert true
19   - end
  16 + # test "the truth" do
  17 + # assert true
  18 + # end
20 19 <% end -%>
21 20 end
22 21 <% end -%>
7 railties/lib/rails/generators/test_unit/model/templates/unit_test.rb
@@ -2,9 +2,8 @@
2 2
3 3 <% module_namespacing do -%>
4 4 class <%= class_name %>Test < ActiveSupport::TestCase
5   - # Replace this with your real tests.
6   - test "the truth" do
7   - assert true
8   - end
  5 + # test "the truth" do
  6 + # assert true
  7 + # end
9 8 end
10 9 <% end -%>
7 railties/lib/rails/generators/test_unit/observer/templates/unit_test.rb
@@ -2,9 +2,8 @@
2 2
3 3 <% module_namespacing do -%>
4 4 class <%= class_name %>ObserverTest < ActiveSupport::TestCase
5   - # Replace this with your real tests.
6   - test "the truth" do
7   - assert true
8   - end
  5 + # test "the truth" do
  6 + # assert true
  7 + # end
9 8 end
10 9 <% end -%>
7 railties/lib/rails/generators/test_unit/plugin/templates/%file_name%_test.rb.tt
... ... @@ -1,8 +1,7 @@
1 1 require 'test_helper'
2 2
3 3 class <%= class_name %>Test < ActiveSupport::TestCase
4   - # Replace this with your real tests.
5   - test "the truth" do
6   - assert true
7   - end
  4 + # test "the truth" do
  5 + # assert true
  6 + # end
8 7 end

1 comment on commit 8d7efe6

Ary Borenszweig

Thank you!! :-)

Please sign in to comment.
Something went wrong with that request. Please try again.