Sha256: eafcf7780a84c728c14116215202cbabcd4ab7fcce99374a031ae3b88debc2ba

Contents?: true

Size: 1.27 KB

Versions: 10

Compression:

Stored size: 1.27 KB

Contents

require "rails_helper"

RSpec.describe OrgDepartmentPositionsController, type: :routing do
  describe "routing" do

    it "routes to #index" do
      expect(:get => "/org_department_positions").to route_to("org_department_positions#index")
    end

    it "routes to #new" do
      expect(:get => "/org_department_positions/new").to route_to("org_department_positions#new")
    end

    it "routes to #show" do
      expect(:get => "/org_department_positions/1").to route_to("org_department_positions#show", :id => "1")
    end

    it "routes to #edit" do
      expect(:get => "/org_department_positions/1/edit").to route_to("org_department_positions#edit", :id => "1")
    end

    it "routes to #create" do
      expect(:post => "/org_department_positions").to route_to("org_department_positions#create")
    end

    it "routes to #update via PUT" do
      expect(:put => "/org_department_positions/1").to route_to("org_department_positions#update", :id => "1")
    end

    it "routes to #update via PATCH" do
      expect(:patch => "/org_department_positions/1").to route_to("org_department_positions#update", :id => "1")
    end

    it "routes to #destroy" do
      expect(:delete => "/org_department_positions/1").to route_to("org_department_positions#destroy", :id => "1")
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
we_bridge_rails_engine_orgs-0.1.16 spec/routing/org_department_positions_routing_spec.rb
we_bridge_rails_engine_orgs-0.1.15 spec/routing/org_department_positions_routing_spec.rb
we_bridge_rails_engine_orgs-0.1.14 spec/routing/org_department_positions_routing_spec.rb
we_bridge_rails_engine_orgs-0.1.13 spec/routing/org_department_positions_routing_spec.rb
we_bridge_rails_engine_orgs-0.1.12 spec/routing/org_department_positions_routing_spec.rb
we_bridge_rails_engine_orgs-0.1.11 spec/routing/org_department_positions_routing_spec.rb
we_bridge_rails_engine_orgs-0.1.10 spec/routing/org_department_positions_routing_spec.rb
we_bridge_rails_engine_orgs-0.1.9 spec/routing/org_department_positions_routing_spec.rb
we_bridge_rails_engine_orgs-0.1.8 spec/routing/org_department_positions_routing_spec.rb
we_bridge_rails_engine_orgs-0.1.7 spec/routing/org_department_positions_routing_spec.rb