scube-server/spec/routing/options_requests_spec.rb
2013-06-30 21:37:30 +00:00

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