Sha256: 8fbf206fcbec44c5eeb3095f30aa1ba80f2a9e77d0b5ea0e48887754a51094a6
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 KB
Contents
require "rails_helper" module Tang RSpec.describe Admin::CouponsController, type: :routing do routes { Tang::Engine.routes } describe "routing" do it "routes to #index" do expect(:get => "/admin/coupons").to route_to("tang/admin/coupons#index") end it "routes to #new" do expect(:get => "/admin/coupons/new").to route_to("tang/admin/coupons#new") end it "routes to #show" do expect(:get => "/admin/coupons/1").to route_to("tang/admin/coupons#show", :id => "1") end it "routes to #edit" do expect(:get => "/admin/coupons/1/edit").to route_to("tang/admin/coupons#edit", :id => "1") end it "routes to #create" do expect(:post => "/admin/coupons").to route_to("tang/admin/coupons#create") end it "routes to #update via PUT" do expect(:put => "/admin/coupons/1").to route_to("tang/admin/coupons#update", :id => "1") end it "routes to #update via PATCH" do expect(:patch => "/admin/coupons/1").to route_to("tang/admin/coupons#update", :id => "1") end it "routes to #destroy" do expect(:delete => "/admin/coupons/1").to route_to("tang/admin/coupons#destroy", :id => "1") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tang-0.0.1 | spec/routing/tang/admin/coupons_routing_spec.rb |