Sha256: 1f6de4894326cf889157600b0c74f48f23a171d4500cfb098c6da10f7f373abd

Contents?: true

Size: 364 Bytes

Versions: 2

Compression:

Stored size: 364 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 %>
    value(response).must_be :success?
  end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
minitest-rails-2.2.1 lib/generators/minitest/controller/templates/controller_spec.rb
minitest-rails-2.2.0 lib/generators/minitest/controller/templates/controller_spec.rb