Sha256: 403e4651f746eb39621ad09ee3abf5103a1b1fb6daa54ce06dad053d868767bb

Contents?: true

Size: 452 Bytes

Versions: 5

Compression:

Stored size: 452 Bytes

Contents

# -*- encoding: utf-8 -*-
require 'rails_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)
  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

5 entries across 5 versions & 1 rubygems

Version Path
enju_oai-0.3.1 spec/views/oai/identify.xml.builder_spec.rb
enju_oai-0.3.0 spec/views/oai/identify.xml.builder_spec.rb
enju_oai-0.3.0.beta.1 spec/views/oai/identify.xml.builder_spec.rb
enju_oai-0.2.0 spec/views/oai/identify.xml.builder_spec.rb
enju_oai-0.2.0.beta.4 spec/views/oai/identify.xml.builder_spec.rb