12 lines
300 B
Ruby
12 lines
300 B
Ruby
require 'spec_helper'
|
|
|
|
describe '/api OPTIONS requests routing' do
|
|
it 'routes to Api::ApplicationController#cor_preflight' do
|
|
{ :options => '/api/some_route' }.should route_to(
|
|
:controller => 'api/application',
|
|
:action => 'cor_preflight',
|
|
:all => 'some_route'
|
|
)
|
|
end
|
|
end
|