Sha256: 958b96f3b53221b2b558e9f1b3f6e236254fa0bf9e81ebdceb9e1470ec20e3bb
Contents?: true
Size: 541 Bytes
Versions: 12
Compression:
Stored size: 541 Bytes
Contents
require 'spec_helper' describe 'krikri/providers/show.html.erb', type: :view do before { assign(:current_provider, provider) } let(:provider) { build(:krikri_provider) } it 'displays provider name' do render expect(rendered).to include provider.label.first.to_s end it 'links to records' do render expect(rendered).to include "#{krikri.records_path}?provider=#{provider.id}" end it 'links to reports' do render expect(rendered).to include "#{krikri.reports_path}?provider=#{provider.id}" end end
Version data entries
12 entries across 12 versions & 1 rubygems