Sha256: cdf99ee97289c7593ed1210894f6d2fcc7e3888cf8e6e98d309fcf6963a8185f

Contents?: true

Size: 456 Bytes

Versions: 29

Compression:

Stored size: 456 Bytes

Contents

require 'test_helper'

<% module_namespacing do -%>
class <%= class_name %>ControllerTest < ActionController::TestCase
<% if mountable_engine? -%>
  setup do
    @routes = Engine.routes
  end

<% end -%>
<% if actions.empty? -%>
  # test "the truth" do
  #   assert true
  # end
<% else -%>
<% actions.each do |action| -%>
  test "should get <%= action %>" do
    get :<%= action %>
    assert_response :success
  end

<% end -%>
<% end -%>
end
<% end -%>

Version data entries

29 entries across 29 versions & 5 rubygems

Version Path
railties-4.2.11.3 lib/rails/generators/test_unit/controller/templates/functional_test.rb
railties-4.2.11.2 lib/rails/generators/test_unit/controller/templates/functional_test.rb
railties-4.2.11.1 lib/rails/generators/test_unit/controller/templates/functional_test.rb
railties-4.2.11 lib/rails/generators/test_unit/controller/templates/functional_test.rb
railties-4.2.10 lib/rails/generators/test_unit/controller/templates/functional_test.rb
railties-4.2.10.rc1 lib/rails/generators/test_unit/controller/templates/functional_test.rb
railties-4.2.9 lib/rails/generators/test_unit/controller/templates/functional_test.rb
railties-4.2.9.rc2 lib/rails/generators/test_unit/controller/templates/functional_test.rb
railties-4.2.9.rc1 lib/rails/generators/test_unit/controller/templates/functional_test.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/railties-4.2.8/lib/rails/generators/test_unit/controller/templates/functional_test.rb
railties-4.2.8 lib/rails/generators/test_unit/controller/templates/functional_test.rb
railties-4.2.8.rc1 lib/rails/generators/test_unit/controller/templates/functional_test.rb
railties-4.2.7.1 lib/rails/generators/test_unit/controller/templates/functional_test.rb
railties-4.2.7 lib/rails/generators/test_unit/controller/templates/functional_test.rb
railties-4.2.7.rc1 lib/rails/generators/test_unit/controller/templates/functional_test.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/generators/test_unit/controller/templates/functional_test.rb
railties-4.2.6 lib/rails/generators/test_unit/controller/templates/functional_test.rb
railties-4.2.6.rc1 lib/rails/generators/test_unit/controller/templates/functional_test.rb
railties-4.2.5.2 lib/rails/generators/test_unit/controller/templates/functional_test.rb
railties-4.2.5.1 lib/rails/generators/test_unit/controller/templates/functional_test.rb