spec/keyword_spec.rb in govdelivery-tms-0.10.1 vs spec/keyword_spec.rb in govdelivery-tms-2.8.3

- old
+ new

@@ -37,10 +37,10 @@ # blank hash prevents the client from doing a GET in the initialize method @keyword = GovDelivery::TMS::Keyword.new(client, '/keywords/99', {}) end it 'should GET cleanly' do response = { name: 'FOO', response_text: 'hello' } - expect(@keyword.client).to receive('get').with(@keyword.href).and_return(double('response', status: 200, body: response)) + expect(@keyword.client).to receive('get').with(@keyword.href, {}).and_return(double('response', status: 200, body: response)) @keyword.get expect(@keyword.name).to eq('FOO') expect(@keyword.response_text).to eq('hello') end it 'should PUT cleanly' do