mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 11:47:56 +01:00
Add Boards management to sitesettings (#107)
This commit is contained in:
committed by
GitHub
parent
7b8a4d6709
commit
6be2394dc5
@@ -6,13 +6,26 @@ RSpec.describe 'boards routing', :aggregate_failures, type: :routing do
|
||||
controller: 'boards', action: 'show', id: '1'
|
||||
)
|
||||
|
||||
expect(get: '/boards').not_to be_routable
|
||||
expect(get: '/boards').to route_to(
|
||||
controller: 'boards', action: 'index'
|
||||
)
|
||||
|
||||
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
|
||||
|
||||
expect(post: '/boards').to route_to(
|
||||
controller: 'boards', action: 'create'
|
||||
)
|
||||
|
||||
expect(patch: '/boards/1').to route_to(
|
||||
controller: 'boards', action: 'update', id: '1'
|
||||
)
|
||||
|
||||
expect(delete: '/boards/1').to route_to(
|
||||
controller: 'boards', action: 'destroy', id: '1'
|
||||
)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user