Sha256: ea8c8a85b97f3f7f592fe7c7ae8ae045af41ab24bcbcb7cdd36f0e6c1b152f84
Contents?: true
Size: 1.15 KB
Versions: 4
Compression:
Stored size: 1.15 KB
Contents
require "rails_helper" module CustomerVault RSpec.describe CorporationsController, :type => :routing do routes { CustomerVault::Engine.routes } describe "routing" do it "routes to #index" do expect(:get => "/corporations").to route_to("customer_vault/corporations#index") end it "routes to #new" do expect(:get => "/corporations/new").to route_to("customer_vault/corporations#new") end it "routes to #show" do expect(:get => "/corporations/1").to route_to("customer_vault/corporations#show", :id => "1") end it "routes to #edit" do expect(:get => "/corporations/1/edit").to route_to("customer_vault/corporations#edit", :id => "1") end it "routes to #create" do expect(:post => "/corporations").to route_to("customer_vault/corporations#create") end it "routes to #update" do expect(:put => "/corporations/1").to route_to("customer_vault/corporations#update", :id => "1") end it "routes to #destroy" do expect(:delete => "/corporations/1").to route_to("customer_vault/corporations#destroy", :id => "1") end end end end
Version data entries
4 entries across 4 versions & 1 rubygems