Sha256: 70ba96dcac62c72792956177813f158d4a5250640c74afb8c7cef51123d25933

Contents?: true

Size: 715 Bytes

Versions: 12

Compression:

Stored size: 715 Bytes

Contents

require 'spec_helper'

describe "manifestations/show" do
  fixtures :all

  before(:each) do
    assign(:manifestation, FactoryGirl.create(:manifestation))
    @ability = Object.new
    @ability.extend(CanCan::Ability)
    controller.stub(:current_ability) { @ability }
  end

  it "renders attributes in <p>" do
    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
      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

12 entries across 12 versions & 1 rubygems

Version Path
enju_biblio-0.1.3 spec/views/manifestations/show.html.erb_spec.rb
enju_biblio-0.1.2 spec/views/manifestations/show.html.erb_spec.rb
enju_biblio-0.1.1 spec/views/manifestations/show.html.erb_spec.rb
enju_biblio-0.1.0 spec/views/manifestations/show.html.erb_spec.rb
enju_biblio-0.1.0.pre71 spec/views/manifestations/show.html.erb_spec.rb
enju_biblio-0.1.0.pre70 spec/views/manifestations/show.html.erb_spec.rb
enju_biblio-0.1.0.pre69 spec/views/manifestations/show.html.erb_spec.rb
enju_biblio-0.1.0.pre68 spec/views/manifestations/show.html.erb_spec.rb
enju_biblio-0.1.0.pre67 spec/views/manifestations/show.html.erb_spec.rb
enju_biblio-0.1.0.pre66 spec/views/manifestations/show.html.erb_spec.rb
enju_biblio-0.1.0.pre65 spec/views/manifestations/show.html.erb_spec.rb
enju_biblio-0.1.0.pre64 spec/views/manifestations/show.html.erb_spec.rb