Stop adding actual dummy tests (they clutter up the real ones in a new app), just show how its done

This commit is contained in:
David Heinemeier Hansson 2011-04-23 13:22:15 +02:00
parent af1b48926f
commit 8d7efe6a4e
7 changed files with 21 additions and 28 deletions

View File

@ -5,9 +5,8 @@ class NavigationTest < ActionDispatch::IntegrationTest
fixtures :all
<% end -%>
# Replace this with your real tests.
test "the truth" do
assert true
end
# test "the truth" do
# assert true
# end
end

View File

@ -3,10 +3,9 @@ require 'test_helper'
<% module_namespacing do -%>
class <%= class_name %>ControllerTest < ActionController::TestCase
<% if actions.empty? -%>
# Replace this with your real tests.
test "the truth" do
assert true
end
# test "the truth" do
# assert true
# end
<% else -%>
<% for action in actions -%>
test "should get <%= action %>" do

View File

@ -3,8 +3,7 @@ require 'test_helper'
class <%= class_name %>Test < ActionDispatch::IntegrationTest
fixtures :all
# Replace this with your real tests.
test "the truth" do
assert true
end
# test "the truth" do
# assert true
# end
end

View File

@ -13,10 +13,9 @@ class <%= class_name %>Test < ActionMailer::TestCase
<% end -%>
<% if actions.blank? -%>
# replace this with your real tests
test "the truth" do
assert true
end
# test "the truth" do
# assert true
# end
<% end -%>
end
<% end -%>

View File

@ -2,9 +2,8 @@ require 'test_helper'
<% module_namespacing do -%>
class <%= class_name %>Test < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
# test "the truth" do
# assert true
# end
end
<% end -%>

View File

@ -2,9 +2,8 @@ require 'test_helper'
<% module_namespacing do -%>
class <%= class_name %>ObserverTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
# test "the truth" do
# assert true
# end
end
<% end -%>

View File

@ -1,8 +1,7 @@
require 'test_helper'
class <%= class_name %>Test < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
# test "the truth" do
# assert true
# end
end