spec/features/invoice_items_spec.rb in espago-0.1.8 vs spec/features/invoice_items_spec.rb in espago-0.1.9

- old
+ new

@@ -3,13 +3,13 @@ describe 'Espago.invoice_items' do it "should get info abount invoice_items" do VCR.use_cassette('invoice_items get ii_5LS-YR7S1QaJBl3') do response = Espago.invoice_items :get,{invoice_item_id:'ii_5LS-YR7S1QaJBl3'} - response.client.should eq('cli_90Pi6Jf0ndl_PP') - response.amount.should eq('123.45') - response.created_at.should eq Time.at(1417030496) + expect(response.client).to eq('cli_90Pi6Jf0ndl_PP') + expect(response.amount).to eq('123.45') + expect(response.created_at).to eq Time.at(1417030496) end end it "should get info abount invoice_items" do VCR.use_cassette('invoice_items post ii_5LS-YR7S1QaJBl3') do @@ -17,21 +17,21 @@ currency:'pln', date:'1417126942', description: 'Test invoice items', client: 'cli_90Pi6Jf0ndl_PP' } - response.status.should eq(201) - response.client.should eq('cli_90Pi6Jf0ndl_PP') - response.amount.should eq('49.99') - response.currency.should eq('pln') - response.created_at.should eq Time.at(1417102491) + expect(response.status).to eq(201) + expect(response.client).to eq('cli_90Pi6Jf0ndl_PP') + expect(response.amount).to eq('49.99') + expect(response.currency).to eq('pln') + expect(response.created_at).to eq Time.at(1417102491) end end it "should get info abount deleted invoice_items" do VCR.use_cassette('invoice_items delete ii_WDzszvhTshe78Xd') do response = Espago.invoice_items :delete,{invoice_item_id:'ii_WDzszvhTshe78Xd'} - response.status.should eq(204) + expect(response.status).to eq(204) end end end