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

Version Path
krikri-0.13.2 spec/views/krikri/qa_reports/show.html.erb_spec.rb~
krikri-0.13.1 spec/views/krikri/qa_reports/show.html.erb_spec.rb~
krikri-0.13.0 spec/views/krikri/qa_reports/show.html.erb_spec.rb~
krikri-0.12.4 spec/views/krikri/qa_reports/show.html.erb_spec.rb~
krikri-0.11.2 spec/views/krikri/qa_reports/show.html.erb_spec.rb~
krikri-0.11.1 spec/views/krikri/qa_reports/show.html.erb_spec.rb~
krikri-0.11.0 spec/views/krikri/qa_reports/show.html.erb_spec.rb~
krikri-0.10.1 spec/views/krikri/qa_reports/show.html.erb_spec.rb~
krikri-0.8.9 spec/views/krikri/qa_reports/show.html.erb_spec.rb~
krikri-0.8.8 spec/views/krikri/qa_reports/show.html.erb_spec.rb~
krikri-0.8.7 spec/views/krikri/qa_reports/show.html.erb_spec.rb~
krikri-0.8.6 spec/views/krikri/qa_reports/show.html.erb_spec.rb~
krikri-0.8.5 spec/views/krikri/qa_reports/show.html.erb_spec.rb~
krikri-0.8.4 spec/views/krikri/qa_reports/show.html.erb_spec.rb~
krikri-0.8.2 spec/views/krikri/qa_reports/show.html.erb_spec.rb~
krikri-0.8.0 spec/views/krikri/qa_reports/show.html.erb_spec.rb~
krikri-0.7.3 spec/views/krikri/qa_reports/show.html.erb_spec.rb~
krikri-0.7.2 spec/views/krikri/qa_reports/show.html.erb_spec.rb~
krikri-0.7.1 spec/views/krikri/qa_reports/show.html.erb_spec.rb~
krikri-0.6.0 spec/views/krikri/qa_reports/show.html.erb_spec.rb~