Sha256: 024dc6b98fd569aebe8cda285131bc000dbcf583577300bf39cf0f523a15c186

Contents?: true

Size: 1.7 KB

Versions: 30

Compression:

Stored size: 1.7 KB

Contents

require "rails_helper"

describe ::Dorsale::ExpenseGun::ExpensesController, type: :routing do
  routes { ::Dorsale::Engine.routes }

  describe "routing" do
    it "#index" do
      expect(get "/expense_gun/expenses").to \
        route_to("dorsale/expense_gun/expenses#index")
    end

    it "#new" do
      expect(get "/expense_gun/expenses/new").to \
        route_to("dorsale/expense_gun/expenses#new")
    end

    it "#create" do
      expect(post "/expense_gun/expenses").to \
        route_to("dorsale/expense_gun/expenses#create")
    end

    it "#show" do
      expect(get "/expense_gun/expenses/1").to \
        route_to("dorsale/expense_gun/expenses#show", id: "1")
    end

    it "#edit" do
      expect(get "/expense_gun/expenses/1/edit").to \
        route_to("dorsale/expense_gun/expenses#edit", id: "1")
    end

    it "#update" do
      expect(patch "/expense_gun/expenses/1").to \
        route_to("dorsale/expense_gun/expenses#update", id: "1")
    end

    it "#submit" do
      expect(patch "/expense_gun/expenses/1/submit").to \
        route_to("dorsale/expense_gun/expenses#submit", id: "1")
    end

    it "#accept" do
      expect(patch "/expense_gun/expenses/1/accept").to \
        route_to("dorsale/expense_gun/expenses#accept", id: "1")
    end

    it "#refuse" do
      expect(patch "/expense_gun/expenses/1/refuse").to \
        route_to("dorsale/expense_gun/expenses#refuse", id: "1")
    end

    it "#cancel" do
      expect(patch "/expense_gun/expenses/1/cancel").to \
        route_to("dorsale/expense_gun/expenses#cancel", id: "1")
    end

    it "#copy" do
      expect(get "/expense_gun/expenses/1/copy").to \
        route_to("dorsale/expense_gun/expenses#copy", id: "1")
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
dorsale-3.18.0 spec/routing/dorsale/expense_gun/expenses_routing_spec.rb
dorsale-3.17.0 spec/routing/dorsale/expense_gun/expenses_routing_spec.rb
dorsale-3.16.0 spec/routing/dorsale/expense_gun/expenses_routing_spec.rb
dorsale-3.15.0 spec/routing/dorsale/expense_gun/expenses_routing_spec.rb
dorsale-3.14.11 spec/routing/dorsale/expense_gun/expenses_routing_spec.rb
dorsale-3.14.10 spec/routing/dorsale/expense_gun/expenses_routing_spec.rb
dorsale-3.14.9 spec/routing/dorsale/expense_gun/expenses_routing_spec.rb
dorsale-3.14.8 spec/routing/dorsale/expense_gun/expenses_routing_spec.rb
dorsale-3.14.7 spec/routing/dorsale/expense_gun/expenses_routing_spec.rb
dorsale-3.14.6 spec/routing/dorsale/expense_gun/expenses_routing_spec.rb
dorsale-3.14.5 spec/routing/dorsale/expense_gun/expenses_routing_spec.rb
dorsale-3.14.3 spec/routing/dorsale/expense_gun/expenses_routing_spec.rb
dorsale-3.14.2 spec/routing/dorsale/expense_gun/expenses_routing_spec.rb
dorsale-3.14.1 spec/routing/dorsale/expense_gun/expenses_routing_spec.rb
dorsale-3.14.0 spec/routing/dorsale/expense_gun/expenses_routing_spec.rb
dorsale-3.13.0 spec/routing/dorsale/expense_gun/expenses_routing_spec.rb
dorsale-3.12.0 spec/routing/dorsale/expense_gun/expenses_routing_spec.rb
dorsale-3.11.0 spec/routing/dorsale/expense_gun/expenses_routing_spec.rb
dorsale-3.10.3 spec/routing/dorsale/expense_gun/expenses_routing_spec.rb
dorsale-3.10.2 spec/routing/dorsale/expense_gun/expenses_routing_spec.rb