Prune wiki examples in legacy routing spec

Destroy routes should only need to support the DELETE verb.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/3112/head
Alex Coles 10 years ago
parent 0c56b72d2a
commit a2b0365a6f
  1. 11
      spec/legacy/integration/routing_spec.rb

@ -843,22 +843,11 @@ describe 'routing', type: :routing do
end
context 'wikis (plural, admin setup)' do
it {
is_expected.to route(:get, '/projects/ladida/wiki/destroy').to(controller: 'wikis',
action: 'destroy',
id: 'ladida')
}
it {
is_expected.to route(:post, '/projects/ladida/wiki').to(controller: 'wikis',
action: 'edit',
id: 'ladida')
}
it {
is_expected.to route(:post, '/projects/ladida/wiki/destroy').to(controller: 'wikis',
action: 'destroy',
id: 'ladida')
}
end
context 'administration panel' do

Loading…
Cancel
Save