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