12 lines
288 B
Ruby
12 lines
288 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
|