Sha256: 81aaf1dc2e40f04bc57a82316e79838e8080e699117063e633b027d95a74059e
Contents?: true
Size: 1.12 KB
Versions: 10
Compression:
Stored size: 1.12 KB
Contents
require "rails_helper" RSpec.describe OrgDepartmentsController, type: :routing do describe "routing" do it "routes to #index" do expect(:get => "/org_departments").to route_to("org_departments#index") end it "routes to #new" do expect(:get => "/org_departments/new").to route_to("org_departments#new") end it "routes to #show" do expect(:get => "/org_departments/1").to route_to("org_departments#show", :id => "1") end it "routes to #edit" do expect(:get => "/org_departments/1/edit").to route_to("org_departments#edit", :id => "1") end it "routes to #create" do expect(:post => "/org_departments").to route_to("org_departments#create") end it "routes to #update via PUT" do expect(:put => "/org_departments/1").to route_to("org_departments#update", :id => "1") end it "routes to #update via PATCH" do expect(:patch => "/org_departments/1").to route_to("org_departments#update", :id => "1") end it "routes to #destroy" do expect(:delete => "/org_departments/1").to route_to("org_departments#destroy", :id => "1") end end end
Version data entries
10 entries across 10 versions & 1 rubygems