mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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:
parent
af1b48926f
commit
8d7efe6a4e
7 changed files with 21 additions and 28 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 -%>
|
||||
|
|
|
@ -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 -%>
|
||||
|
|
|
@ -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 -%>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue