mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user