Sha256: f4a152ab05b5b534fb37e129a6b80a174d94e084f56ce9accc924c33b45dedb3

Contents?: true

Size: 420 Bytes

Versions: 2

Compression:

Stored size: 420 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', "test_helper.rb")

class <%= @name_plural_camel %>ControllerTest < Test::Unit::TestCase
  
  def test_truth
    assert true
  end
  <% @actions.each do |action| %>
  def test_<%= action %>
    get <%= @name_plural %>_<%= action %>_url
    assert response.successful?
    assert_match /<%= @name_plural_camel %>Controller#<%= action %>/, response.body
  end
  <% end %>
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mack-0.8.3 lib/mack/generators/controller_generator/templates/test/controllers/test_case.rb.template
mack-0.8.3.1 lib/mack/generators/controller_generator/templates/test/controllers/test_case.rb.template