Sha256: 0619fec9ab155d372001cdb44bf41b22f1380ec662a90501c0184ede3d42f3fe

Contents?: true

Size: 1012 Bytes

Versions: 16

Compression:

Stored size: 1012 Bytes

Contents

require "spec_helper"

module MechanizeStore
  describe FlagsController do
    routes { MechanizeStore::Engine.routes }

    describe "routing" do

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

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

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

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

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

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

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

    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mechanize_store-0.0.19 spec/routing/mechanize_store/flags_routing_spec.rb
mechanize_store-0.0.18 spec/routing/mechanize_store/flags_routing_spec.rb
mechanize_store-0.0.17 spec/routing/mechanize_store/flags_routing_spec.rb
mechanize_store-0.0.16 spec/routing/mechanize_store/flags_routing_spec.rb
mechanize_store-0.0.15 spec/routing/mechanize_store/flags_routing_spec.rb
mechanize_store-0.0.14 spec/routing/mechanize_store/flags_routing_spec.rb
mechanize_store-0.0.13 spec/routing/store/flags_routing_spec.rb
mechanize_store-0.0.12 spec/routing/store/flags_routing_spec.rb
mechanize_store-0.0.11 spec/routing/store/flags_routing_spec.rb
mechanize_store-0.0.10 spec/routing/store/flags_routing_spec.rb
mechanize_store-0.0.8 spec/routing/store/flags_routing_spec.rb
mechanize_store-0.0.7 spec/routing/store/flags_routing_spec.rb
mechanize_store-0.0.6 spec/routing/store/flags_routing_spec.rb
mechanize_store-0.0.5 spec/routing/store/flags_routing_spec.rb
mechanize_store-0.0.4 spec/routing/store/flags_routing_spec.rb
mechanize_store-0.0.3 spec/routing/store/flags_routing_spec.rb