12 lines
302 B
Ruby
12 lines
302 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'connect routing' do
|
|
it 'routes /connect/:user_token to user_tokens#create for user_token' do
|
|
{ :get => '/connect/jolka-misio' }.should route_to(
|
|
:controller => 'user_tokens',
|
|
:action => 'create',
|
|
:user_token => 'jolka-misio'
|
|
)
|
|
end
|
|
end
|