spec/lib/bidu/house/status_spec.rb in bidu-house-0.1.2 vs spec/lib/bidu/house/status_spec.rb in bidu-house-0.2.0
- old
+ new
@@ -18,13 +18,13 @@
id: :success
)
end
let(:errors) { 0 }
let(:successes) { 1 }
- let(:error_report) { Bidu::House::ErrorReport.new(report_options) }
+ let(:error_report) { Bidu::House::Report::Error.new(report_options) }
let(:success_report) do
- Bidu::House::ErrorReport.new(success_options)
+ Bidu::House::Report::Error.new(success_options)
end
let(:reports) { [ error_report ] }
let(:subject) { described_class.new(reports) }
before do
Document.all.each(&:destroy)
@@ -54,10 +54,10 @@
end
end
context 'when there are both success and error reports' do
let(:success_report) do
- Bidu::House::ErrorReport.new(report_options.merge(scope: :with_success))
+ Bidu::House::Report::Error.new(report_options.merge(scope: :with_success))
end
let(:reports) { [ success_report, error_report ] }
it 'returns a json with error' do
expect(status).to eq(:error)