Sha256: ebb5c7c724f6d0d41a24c208789cba76ee3c1a3ed9879e813bee78a82b628bf3

Contents?: true

Size: 436 Bytes

Versions: 2

Compression:

Stored size: 436 Bytes

Contents

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

describe <%= @name_plural_camel %>Controller do
  <% @actions.each do |action| %>
  describe "<%= action %>" do
    
    it "should get the <%= action %> action" do
      get <%= @name_plural %>_<%= action %>_url
      response.should be_successful
      response.body.should match(/<%= @name_plural_camel %>Controller#<%= action %>/)
    end
    
  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/rspec.rb.template
mack-0.8.3.1 lib/mack/generators/controller_generator/templates/test/controllers/rspec.rb.template