Use ruby 2.x hash syntax
This commit is contained in:
@@ -2,10 +2,10 @@ 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'
|
||||
{ options: '/api/some_route' }.should route_to(
|
||||
controller: 'api/application',
|
||||
action: 'cor_preflight',
|
||||
all: 'some_route'
|
||||
)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user