spec/concerns/import_leads_spec.rb in mrkt-0.4.0 vs spec/concerns/import_leads_spec.rb in mrkt-0.5.0
- old
+ new
@@ -33,11 +33,11 @@
after do
tempfile.unlink
end
- it { is_expected.to be_success }
+ it { is_expected.to eq(response_stub) }
end
describe '#import_lead_status' do
let(:id) { 1 }
let(:response_stub) do
@@ -61,38 +61,34 @@
before do
stub_request(:get, "https://#{host}/bulk/v1/leads/batch/#{id}.json")
.to_return(json_stub(response_stub))
end
- it { is_expected.to be_success }
+ it { is_expected.to eq(response_stub) }
end
describe '#import_lead_failures' do
let(:id) { 1 }
- let(:respose_stub) do
-
- end
+ let(:response_stub) { '' }
subject { client.import_lead_failures(1) }
before do
stub_request(:get, "https://#{host}/bulk/v1/leads/batch/#{id}/failures.json")
.to_return(headers: { content_length: 0 })
end
- it { is_expected.to be_success }
+ it { is_expected.to eq(response_stub) }
end
describe '#import_lead_warnings' do
let(:id) { 1 }
- let(:respose_stub) do
-
- end
+ let(:response_stub) { '' }
subject { client.import_lead_warnings(1) }
before do
stub_request(:get, "https://#{host}/bulk/v1/leads/batch/#{id}/warnings.json")
.to_return(headers: { content_length: 0 })
end
- it { is_expected.to be_success }
+ it { is_expected.to eq(response_stub) }
end
end