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.
asciinema.org/spec/routing/connect_spec.rb

12 lines
302 B
Ruby

require 'rails_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