Sha256: f44cc7cd79648eca10c7adcb675f499702846fd6f0d1519fbf899a22ebf5b557
Contents?: true
Size: 673 Bytes
Versions: 5
Compression:
Stored size: 673 Bytes
Contents
# -*- encoding: utf-8 -*- require 'spec_helper' describe "questions/index.rss.builder" do fixtures :all before(:each) do assign(:questions, Question.page(1)) assign(:count, {query_result: Question.count}) assign(:library_group, LibraryGroup.site_config) view.stub(:current_user).and_return(User.where(username: 'enjuadmin').first) @ability = Object.new @ability.extend(CanCan::Ability) controller.stub(:current_ability) { @ability } end it "renders the XML template" do render # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/Questions in Enju Library/) end end
Version data entries
5 entries across 5 versions & 1 rubygems