mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
18 lines
573 B
Ruby
18 lines
573 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe 'boards routing', :aggregate_failures, type: :routing do
|
|
it 'routes boards' do
|
|
expect(get: '/boards/1').to route_to(
|
|
controller: 'boards', action: 'show', id: '1'
|
|
)
|
|
|
|
expect(get: '/boards').not_to be_routable
|
|
expect(get: '/boards/new').not_to route_to(
|
|
controller: 'boards', action: 'new'
|
|
)
|
|
expect(get: '/boards/1/edit').not_to be_routable
|
|
expect(post: '/boards').not_to be_routable
|
|
expect(patch: '/boards/1').not_to be_routable
|
|
expect(delete: '/boards/1').not_to be_routable
|
|
end
|
|
end |