Sha256: 38a91f7e71fb38e829d782be3658de5e7bcf9889623b2f935d06bc74530f6d85
Contents?: true
Size: 898 Bytes
Versions: 15
Compression:
Stored size: 898 Bytes
Contents
require "rails_helper" RSpec.describe ProductsController, :type => :routing do describe "routing" do it "routes to #index" do expect(:get => "/products").to route_to("products#index") end it "routes to #new" do expect(:get => "/products/new").to route_to("products#new") end it "routes to #show" do expect(:get => "/products/1").to route_to("products#show", :id => "1") end it "routes to #edit" do expect(:get => "/products/1/edit").to route_to("products#edit", :id => "1") end it "routes to #create" do expect(:post => "/products").to route_to("products#create") end it "routes to #update" do expect(:put => "/products/1").to route_to("products#update", :id => "1") end it "routes to #destroy" do expect(:delete => "/products/1").to route_to("products#destroy", :id => "1") end end end
Version data entries
15 entries across 15 versions & 1 rubygems