asciinema.org/spec/routing/connect_spec.rb
2012-03-04 20:30:26 +01:00

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