Sha256: 950c3b52e0ea21dce9ffa03d3283d19fdb38782c495a77bcbbe99a674ea1e9a2

Contents?: true

Size: 870 Bytes

Versions: 21

Compression:

Stored size: 870 Bytes

Contents

require "spec_helper"

describe BudgetTypesController do
  describe "routing" do

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

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

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

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

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

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

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

  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
enju_library-0.3.11 spec/routing/budget_types_routing_spec.rb
enju_library-0.3.10 spec/routing/budget_types_routing_spec.rb
enju_library-0.3.9 spec/routing/budget_types_routing_spec.rb
enju_library-0.3.8 spec/routing/budget_types_routing_spec.rb
enju_library-0.3.8.rc.2 spec/routing/budget_types_routing_spec.rb
enju_library-0.3.8.rc.1 spec/routing/budget_types_routing_spec.rb
enju_library-0.4.0.rc.1 spec/routing/budget_types_routing_spec.rb
enju_library-0.3.7 spec/routing/budget_types_routing_spec.rb
enju_library-0.3.6 spec/routing/budget_types_routing_spec.rb
enju_library-0.4.0.beta.4 spec/routing/budget_types_routing_spec.rb
enju_library-0.4.0.beta.3 spec/routing/budget_types_routing_spec.rb
enju_library-0.4.0.beta.2 spec/routing/budget_types_routing_spec.rb
enju_library-0.4.0.beta.1 spec/routing/budget_types_routing_spec.rb
enju_library-0.3.5 spec/routing/budget_types_routing_spec.rb
enju_library-0.3.4 spec/routing/budget_types_routing_spec.rb
enju_library-0.3.3 spec/routing/budget_types_routing_spec.rb
enju_library-0.3.2 spec/routing/budget_types_routing_spec.rb
enju_library-0.3.1 spec/routing/budget_types_routing_spec.rb
enju_library-0.3.0 spec/routing/budget_types_routing_spec.rb
enju_library-0.3.0.rc.1 spec/routing/budget_types_routing_spec.rb