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
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/railties-4.2.4/lib/rails/generators/test_unit/controller/templates/functional_test.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/railties-4.2.4/lib/rails/generators/test_unit/controller/templates/functional_test.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/railties-4.2.4/lib/rails/generators/test_unit/controller/templates/functional_test.rb
railties-4.2.5 lib/rails/generators/test_unit/controller/templates/functional_test.rb
railties-4.2.5.rc2 lib/rails/generators/test_unit/controller/templates/functional_test.rb
railties-4.2.5.rc1 lib/rails/generators/test_unit/controller/templates/functional_test.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/generators/test_unit/controller/templates/functional_test.rb
railties-4.2.4 lib/rails/generators/test_unit/controller/templates/functional_test.rb
railties-4.2.4.rc1 lib/rails/generators/test_unit/controller/templates/functional_test.rb