spec/dossier/responder_spec.rb in dossier-2.13.1 vs spec/dossier/responder_spec.rb in dossier-3.0.0.pre
- old
+ new
@@ -10,11 +10,14 @@
end
let(:results) { double(arrays: [%w[hi], %w[there]], hashes: [{hi: 'there'}]) }
let(:report) { EmployeeReport.new }
let(:reports) { [mock_out_report_results(report)] }
+
let(:controller) {
- ActionController::Base.new.tap { |controller| allow(controller).to receive(:headers).and_return({}) }
+ ActionController::Base.new.tap { |controller|
+ controller.response = ActionDispatch::TestResponse.new(200, {}, [''])
+ }
}
let(:responder) { described_class.new(controller, reports, {}) }
describe "to_html" do
it "calls render on the report" do