Sha256: c003a03f3e0d97acd0160067c40395fe01846cb918b45c26d0e502dceda91eda

Contents?: true

Size: 371 Bytes

Versions: 3

Compression:

Stored size: 371 Bytes

Contents

require "test_helper"

<% module_namespacing do -%>
class <%= class_name %>ControllerTest < ActionController::TestCase
<% 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

3 entries across 3 versions & 1 rubygems

Version Path
minitest-rails-0.9.2 lib/generators/mini_test/controller/templates/controller_test.rb
minitest-rails-0.9.1 lib/generators/mini_test/controller/templates/controller_test.rb
minitest-rails-0.9.0 lib/generators/mini_test/controller/templates/controller_test.rb