Sha256: 60efdd705c3d4ea6e27d05e7e1f8bc4b726a4343e5e96a90bbf2d3f92df4b8c9
Contents?: true
Size: 560 Bytes
Versions: 5
Compression:
Stored size: 560 Bytes
Contents
# -*- encoding: utf-8 -*- require 'rails_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) 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