Modify first argument for Grape::Endpoint.new to fix error caused by calling a method on nil.

This commit is contained in:
DanyHunter 2014-10-02 11:09:55 -05:00
parent 1625bd2603
commit 9e56991a50

View file

@ -2,7 +2,7 @@ require 'spec_helper'
describe 'Grape::EndpointExtension' do
subject { Grape::Endpoint.new(nil, {path: '/', method: 'foo'}) }
subject { Grape::Endpoint.new({}, {path: '/', method: 'foo'}) }
let(:serializer) { Grape::Formatter::ActiveModelSerializers }