Sha256: 6c6a292c93107cc6d6a1409998b04999d20766335b4685bbc63d7a5723a9222c
Contents?: true
Size: 791 Bytes
Versions: 16
Compression:
Stored size: 791 Bytes
Contents
require 'rails_helper' describe "page/advanced_search" do fixtures :all context :login_with_admin do before(:each) do assign(:libraries, Library.all) view.stub(:current_user).and_return(User.friendly.find('enjuadmin')) 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(/Advanced search/) end end context :guest do before(:each) do assign(:libraries, Library.all) view.stub(:current_user).and_return(nil) 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(/Advanced search/) end end end
Version data entries
16 entries across 16 versions & 1 rubygems