asciinema.org/spec/routing/connect_spec.rb
2014-02-09 14:44:09 +01:00

12 lines
301 B
Ruby

require 'spec_helper'
describe 'connect routing' do
it 'routes /connect/:api_token to api_tokens#create for api_token' do
expect({ :get => '/connect/jolka-misio' }).to route_to(
:controller => 'api_tokens',
:action => 'create',
:api_token => 'jolka-misio'
)
end
end