Sha256: de60f50174d1675c5d93dc9aa428418429d38700d96edfc745cfcd978cde626a

Contents?: true

Size: 355 Bytes

Versions: 12

Compression:

Stored size: 355 Bytes

Contents

require "test_helper"

<% module_namespacing do -%>
describe <%= class_name %>Controller do
<% if actions.empty? -%>
  it "must be a real test" do
    flunk "Need real tests"
  end
<% else -%>
<% actions.each do |action| -%>
  it "should get <%= action %>" do
    get :<%= action %>
    assert_response :success
  end

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
minitest-rails-2.1.1 lib/generators/minitest/controller/templates/controller_spec.rb
minitest-rails-2.1.0 lib/generators/minitest/controller/templates/controller_spec.rb
minitest-rails-2.0.3 lib/generators/minitest/controller/templates/controller_spec.rb
minitest-rails-2.0.2 lib/generators/minitest/controller/templates/controller_spec.rb
minitest-rails-2.0.1 lib/generators/minitest/controller/templates/controller_spec.rb
minitest-rails-2.0.0 lib/generators/minitest/controller/templates/controller_spec.rb
minitest-rails-1.0.1 lib/generators/mini_test/controller/templates/controller_spec.rb
minitest-rails-2.0.0.beta1 lib/generators/minitest/controller/templates/controller_spec.rb
minitest-rails-1.0.0 lib/generators/mini_test/controller/templates/controller_spec.rb
minitest-rails-1.0.0.beta3 lib/generators/mini_test/controller/templates/controller_spec.rb
minitest-rails-1.0.0.beta2 lib/generators/mini_test/controller/templates/controller_spec.rb
minitest-rails-1.0.0.beta1 lib/generators/mini_test/controller/templates/controller_spec.rb