Sha256: bdf823aa75b7556bc44872fd77e1e986b2befbc40ff64fa821119c92641998e7

Contents?: true

Size: 538 Bytes

Versions: 3

Compression:

Stored size: 538 Bytes

Contents

require "spec_helper"

#
# routes
<% @routes.each do |route| %> 
#  <%= route.raw %>
<% end %>
#
describe "<%= @name %> response status codes" do
<% @routes.each do |route| %> 
  describe "<%= route.http_verb %> <%= route.path %>" do
    it "should have a response", :vcr do 
      <% if route.vars %>
      <% route.vars.each do |var| %>
      <%= var %>
      <% end %>
      <% end %>
      <%= route.http_verb.downcase %> <%= route.helper_path %>
      response.status.should be(<%= route.status_code %>)
    end
  end

<% end %>
end

Version data entries

3 entries across 1 versions & 1 rubygems

Version Path
routespec-0.0.1 lib/routespec/routespec/templates/default_spec.erb
routespec-0.0.1 test/rails311/spec/routespec/templates/default_spec.erb
routespec-0.0.1 test/sandbox/rails_root/routespec/templates/default_spec.erb