Sha256: e62e3acb3f0b89d21d5315330097e89675ef6db50c84f26b0cf719d171e571fe

Contents?: true

Size: 793 Bytes

Versions: 2

Compression:

Stored size: 793 Bytes

Contents

require "spec_helper"

describe CitiesController do
  describe "routing" do

    it "routes to #index" do
      get("/cities").should route_to("cities#index")
    end

    it "routes to #new" do
      get("/cities/new").should route_to("cities#new")
    end

    it "routes to #show" do
      get("/cities/1").should route_to("cities#show", :id => "1")
    end

    it "routes to #edit" do
      get("/cities/1/edit").should route_to("cities#edit", :id => "1")
    end

    it "routes to #create" do
      post("/cities").should route_to("cities#create")
    end

    it "routes to #update" do
      put("/cities/1").should route_to("cities#update", :id => "1")
    end

    it "routes to #destroy" do
      delete("/cities/1").should route_to("cities#destroy", :id => "1")
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_suppliers-0.0.1 spec/routing/cities_routing_spec.rb
spree_suppliers-0.60.3 spec/routing/cities_routing_spec.rb