Sha256: c41ccb99ca7fcc58a1439094db8f03f4cdb58b2b851adb66b12ac2c24f0bc0ef

Contents?: true

Size: 521 Bytes

Versions: 2

Compression:

Stored size: 521 Bytes

Contents

require "test_helper"

<% module_namespacing do -%>
describe <%= class_name %>Controller do
<% if mountable_engine? -%>
  include Engine.routes.url_helpers

<% end -%>
<% if actions.empty? -%>
  # it "does a thing" do
  #   <%= spec_expectation_monad %>(1+1).must_equal 2
  # end
<% else -%>
<% actions.each do |action| -%>
  it "gets <%= action %>" do
    get <%= url_helper_prefix %>_<%= action %>_url
    must_respond_with :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_spec.rb.tt
minitest-rails-7.1.0 lib/generators/minitest/controller/templates/functional_spec.rb.tt