Sha256: 33baff1b2c02d0ef852903f5c8863599ad374fa663dd500d083aa22f8757d71f
Contents?: true
Size: 612 Bytes
Versions: 23
Compression:
Stored size: 612 Bytes
Contents
require 'spec_helper' describe 'krikri/report/index.html.erb', type: :view do let(:reports) { [double, double] } before do reports.each_with_index do |report, i| allow(report).to receive(:id).and_return(i.to_s) allow(report).to receive(:provider).and_return("provider_#{i}") allow(view).to receive(:qa_report_path).with(report, format: 'csv') .and_return("report#{i}_csv_link") end end it 'links to csv' do assign(:reports, reports) render reports.each do |report| expect(rendered).to include "#{report.id}_csv_link" end end end
Version data entries
23 entries across 23 versions & 1 rubygems