aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/generators/test_unit/scaffold/templates/functional_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/generators/test_unit/scaffold/templates/functional_test.rb')
-rw-r--r--railties/lib/generators/test_unit/scaffold/templates/functional_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/generators/test_unit/scaffold/templates/functional_test.rb b/railties/lib/generators/test_unit/scaffold/templates/functional_test.rb
index cd2fc578bf..e4bf4035da 100644
--- a/railties/lib/generators/test_unit/scaffold/templates/functional_test.rb
+++ b/railties/lib/generators/test_unit/scaffold/templates/functional_test.rb
@@ -1,11 +1,13 @@
require 'test_helper'
class <%= controller_class_name %>ControllerTest < ActionController::TestCase
+<% unless options[:singleton] -%>
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:<%= table_name %>)
end
+<% end -%>
test "should get new" do
get :new