Sha256: 2f8e2100ae709159c36aae37a1b2a71043667098c365d235966754eff7247f0b
Contents?: true
Size: 565 Bytes
Versions: 3
Compression:
Stored size: 565 Bytes
Contents
# -*- encoding: utf-8 -*- require 'spec_helper' describe "oai/identify.xml.builder" do fixtures :all before(:each) do 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(/enju_library/) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
enju_oai-0.1.1 | spec/views/oai/identify.xml.builder_spec.rb |
enju_oai-0.1.0 | spec/views/oai/identify.xml.builder_spec.rb |
enju_oai-0.1.0.pre20 | spec/views/oai/identify.xml.builder_spec.rb |