Sha256: a8541c1b361a682055c2d009d5b4685a7cbe2a2d711265e809e2782587dd6cf3

Contents?: true

Size: 481 Bytes

Versions: 16

Compression:

Stored size: 481 Bytes

Contents

require "spec_helper"

module MechanizeStore
  describe ProductsController do
    describe "routing" do

      routes { MechanizeStore::Engine.routes }

      it "routes to #create" do
        post("/products/1/product_photos").should route_to("mechanize_store/product_photos#create", product_id: "1")
      end

      it "routes to #destroy" do
        delete("/product_photos/1").should route_to("mechanize_store/product_photos#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/products_photos_routing_spec.rb
mechanize_store-0.0.18 spec/routing/mechanize_store/products_photos_routing_spec.rb
mechanize_store-0.0.17 spec/routing/mechanize_store/products_photos_routing_spec.rb
mechanize_store-0.0.16 spec/routing/mechanize_store/products_photos_routing_spec.rb
mechanize_store-0.0.15 spec/routing/mechanize_store/products_photos_routing_spec.rb
mechanize_store-0.0.14 spec/routing/mechanize_store/products_photos_routing_spec.rb
mechanize_store-0.0.13 spec/routing/store/products_photos_routing_spec.rb
mechanize_store-0.0.12 spec/routing/store/products_photos_routing_spec.rb
mechanize_store-0.0.11 spec/routing/store/products_photos_routing_spec.rb
mechanize_store-0.0.10 spec/routing/store/products_photos_routing_spec.rb
mechanize_store-0.0.8 spec/routing/store/products_photos_routing_spec.rb
mechanize_store-0.0.7 spec/routing/store/products_photos_routing_spec.rb
mechanize_store-0.0.6 spec/routing/store/products_photos_routing_spec.rb
mechanize_store-0.0.5 spec/routing/store/products_photos_routing_spec.rb
mechanize_store-0.0.4 spec/routing/store/products_photos_routing_spec.rb
mechanize_store-0.0.3 spec/routing/store/products_photos_routing_spec.rb