Sha256: e5cedcb5889fff92ad90d7515293020134fbac97989514f21d27530aeb48a69d

Contents?: true

Size: 1002 Bytes

Versions: 2

Compression:

Stored size: 1002 Bytes

Contents

require "spec_helper"

describe BusinessDepartmentsController do
  describe "routing" do

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

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

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

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

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

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

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

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
guara-0.0.3 spec/routing/business_departments_routing_spec.rb
guara-0.0.1.rc spec/routing/business_departments_routing_spec.rb