You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
483 B
Ruby
23 lines
483 B
Ruby
require 'rails_helper'
|
|
|
|
describe "asciicasts routing" do
|
|
|
|
it 'routes /a/1 to asciicasts#show' do
|
|
expect(get: '/a/1').to route_to(
|
|
controller: 'asciicasts',
|
|
action: 'show',
|
|
id: '1',
|
|
)
|
|
end
|
|
|
|
# legacy route, kept for backwards compatibility with old embeds
|
|
it 'routes /a/1/raw to asciicasts#embed' do
|
|
expect(get: '/a/1/raw').to route_to(
|
|
controller: 'asciicasts',
|
|
action: 'embed',
|
|
id: '1',
|
|
)
|
|
end
|
|
|
|
end
|