Sha256: f4b533d1f13639590c688ddcc4967cc86183bbf2b82d647aa656e604bb18010c

Contents?: true

Size: 426 Bytes

Versions: 2

Compression:

Stored size: 426 Bytes

Contents

require 'rails_helper'

module Popolo
  RSpec.describe OrganizationsController, type: :routing do
    describe 'routing' do
      routes { Engine.routes }

      it 'routes to #index' do
        expect(get: '/organizations').to route_to('popolo/organizations#index')
      end

      it 'routes to #show' do
        expect(get: '/organizations/1').to route_to('popolo/organizations#show', id: '1')
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
popolo-0.1.1 spec/routing/popolo/organizations_routing_spec.rb
popolo-0.1.0 spec/routing/popolo/organizations_routing_spec.rb