Sha256: ce4485a327a281b4f94921729521dc7b63ac26c5a945cbf06b2dcc499e059079

Contents?: true

Size: 1.72 KB

Versions: 28

Compression:

Stored size: 1.72 KB

Contents

require "rails_helper"

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

  describe "routing" do
    it "#index" do
      expect(get('/expense_gun/expenses/1/expense_lines'))
      .to route_to(controller: 'dorsale/expense_gun/expense_lines', expense_id: '1', action: 'index')
    end

    it "#new" do
      expect(get('/expense_gun/expenses/1/expense_lines/new'))
      .to route_to(controller: 'dorsale/expense_gun/expense_lines', expense_id: '1',action: 'new')
    end

    it "#create" do
      expect(post('/expense_gun/expenses/1/expense_lines'))
      .to route_to(controller: 'dorsale/expense_gun/expense_lines', expense_id: '1',action: 'create')
    end

    it "#show" do
      expect(get('/expense_gun/expenses/1/expense_lines/1'))
      .to route_to(controller: 'dorsale/expense_gun/expense_lines', expense_id: '1', id: '1',action: 'show')
    end

    it "#edit" do
      expect(get('/expense_gun/expenses/1/expense_lines/1/edit'))
      .to route_to(controller: 'dorsale/expense_gun/expense_lines', expense_id: '1', id: '1',action: 'edit')
    end

    it "#update via patch" do
      expect(patch('/expense_gun/expenses/1/expense_lines/1'))
      .to route_to(controller: 'dorsale/expense_gun/expense_lines', expense_id: '1', id: '1',action: 'update')
    end

    it "#update via put" do
      expect(put('/expense_gun/expenses/1/expense_lines/1'))
      .to route_to(controller: 'dorsale/expense_gun/expense_lines', expense_id: '1', id: '1',action: 'update')
    end

    it "#destroy" do
      expect(delete('/expense_gun/expenses/1/expense_lines/1'))
      .to route_to(controller: 'dorsale/expense_gun/expense_lines', expense_id: '1', id: '1',action: 'destroy')
    end

  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
dorsale-3.0.3 spec/routing/dorsale/expense_gun/expense_lines_routing_spec.rb
dorsale-3.0.2 spec/routing/dorsale/expense_gun/expense_lines_routing_spec.rb
dorsale-3.0.1 spec/routing/dorsale/expense_gun/expense_lines_routing_spec.rb
dorsale-3.0.0 spec/routing/dorsale/expense_gun/expense_lines_routing_spec.rb
dorsale-2.7.3 spec/routing/dorsale/expense_gun/expense_lines_routing_spec.rb
dorsale-2.7.2 spec/routing/dorsale/expense_gun/expense_lines_routing_spec.rb
dorsale-2.7.1 spec/routing/dorsale/expense_gun/expense_lines_routing_spec.rb
dorsale-2.7.0 spec/routing/dorsale/expense_gun/expense_lines_routing_spec.rb
dorsale-2.6.8 spec/routing/dorsale/expense_gun/expense_lines_routing_spec.rb
dorsale-2.6.7 spec/routing/dorsale/expense_gun/expense_lines_routing_spec.rb
dorsale-2.6.6 spec/routing/dorsale/expense_gun/expense_lines_routing_spec.rb
dorsale-2.6.5 spec/routing/dorsale/expense_gun/expense_lines_routing_spec.rb
dorsale-2.6.4 spec/routing/dorsale/expense_gun/expense_lines_routing_spec.rb
dorsale-2.6.3 spec/routing/dorsale/expense_gun/expense_lines_routing_spec.rb
dorsale-2.6.2 spec/routing/dorsale/expense_gun/expense_lines_routing_spec.rb
dorsale-2.6.1 spec/routing/dorsale/expense_gun/expense_lines_routing_spec.rb
dorsale-2.6.0 spec/routing/dorsale/expense_gun/expense_lines_routing_spec.rb
dorsale-2.5.0 spec/routing/dorsale/expense_gun/expense_lines_routing_spec.rb
dorsale-2.4.3 spec/routing/dorsale/expense_gun/expense_lines_routing_spec.rb
dorsale-2.4.2 spec/routing/dorsale/expense_gun/expense_lines_routing_spec.rb