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

Version Path
krikri-0.7.2 spec/views/krikri/providers/show.html.erb_spec.rb
krikri-0.7.1 spec/views/krikri/providers/show.html.erb_spec.rb
krikri-0.7.0 spec/views/krikri/providers/show.html.erb_spec.rb
krikri-0.6.0 spec/views/krikri/providers/show.html.erb_spec.rb
krikri-0.5.7 spec/views/krikri/providers/show.html.erb_spec.rb
krikri-0.5.6 spec/views/krikri/providers/show.html.erb_spec.rb
krikri-0.5.5 spec/views/krikri/providers/show.html.erb_spec.rb
krikri-0.5.4 spec/views/krikri/providers/show.html.erb_spec.rb
krikri-0.5.3 spec/views/krikri/providers/show.html.erb_spec.rb
krikri-0.5.2 spec/views/krikri/providers/show.html.erb_spec.rb
krikri-0.5.1 spec/views/krikri/providers/show.html.erb_spec.rb
krikri-0.5.0 spec/views/krikri/providers/show.html.erb_spec.rb