spec/sucker/response_spec.rb in sucker-1.4.1 vs spec/sucker/response_spec.rb in sucker-1.5.0
- old
+ new
@@ -7,27 +7,27 @@
use_vcr_cassette 'spec/sucker/response', :record => :new_episodes
let(:asins) { ['0816614024', '0143105825'] }
let(:response) do
- worker = Sucker.new(
+ request = Sucker.new(
:locale => :us,
:key => amazon['key'],
:secret => amazon['secret'])
- worker << {
+ request << {
'Operation' => 'ItemLookup',
'IdType' => 'ASIN',
'ItemId' => asins }
- worker.get
+ request.get
end
describe '.new' do
it 'initializes the response body' do
response.body.should be_an_instance_of String
end
it 'initializes the response code' do
- response.code.should == '200'
+ response.code.should == 200
end
end
context 'when response contains errors' do
before do