Sha256: 8dc77b6998ce7c8c6e9a0322873c9430bc522c23b3f6920d9b83f4388340d6b5

Contents?: true

Size: 741 Bytes

Versions: 3

Compression:

Stored size: 741 Bytes

Contents

require 'spec_helper'

describe "manifestations/show" do
  fixtures :all

  before(:each) do
    assign(:manifestation, FactoryGirl.create(:manifestation))
  end

  it "renders attributes in <p>" do
    allow(view).to receive(:policy).and_return double(create?: true)
    render
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    rendered.should match(/1/)
  end

  describe "identifier_link" do
    it "renders a link to CiNii Books" do
      allow(view).to receive(:policy).and_return double(create?: true)
      assign(:manifestation, manifestations(:manifestation_00217))
      render
      rendered.should include '<a href="http://ci.nii.ac.jp/ncid/BN15603730">BN15603730</a>'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enju_biblio-0.2.0.beta.3 spec/views/manifestations/show.html.erb_spec.rb
enju_biblio-0.2.0.beta.2 spec/views/manifestations/show.html.erb_spec.rb
enju_biblio-0.2.0.beta.1 spec/views/manifestations/show.html.erb_spec.rb