Sha256: ba1f36bde39dbd98f0b272159a9c4b34eb232ea43f6a63097155823a79ba181c

Contents?: true

Size: 509 Bytes

Versions: 2

Compression:

Stored size: 509 Bytes

Contents

require "test_helper"

<% module_namespacing do -%>
class <%= class_name %>ControllerTest < ActionDispatch::IntegrationTest
<% if mountable_engine? -%>
  include Engine.routes.url_helpers

<% end -%>
<% if actions.empty? -%>
  # def test_truth
  #   assert true
  # end
<% else -%>
<% actions.each do |action| -%>
  def test_get_<%= action %>
    get <%= url_helper_prefix %>_<%= action %>_url
    assert_response :success
  end
<%= "\n" unless action == actions.last -%>
<% end -%>
<% end -%>
end
<% end -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
minitest-rails-7.1.1 lib/generators/minitest/controller/templates/functional_test.rb.tt
minitest-rails-7.1.0 lib/generators/minitest/controller/templates/functional_test.rb.tt