Sha256: 2a6d4a54a7346b40e9c3c4615decc29603e1d0a8d152e2facba244a08c6d9334

Contents?: true

Size: 576 Bytes

Versions: 4

Compression:

Stored size: 576 Bytes

Contents

# -*- encoding: utf-8 -*-
require 'spec_helper'

describe "manifestations/identify.oai.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

4 entries across 4 versions & 1 rubygems

Version Path
enju_oai-0.1.0.pre19 spec/views/manifestations/identify.oai.builder_spec.rb
enju_oai-0.1.0.pre18 spec/views/manifestations/identify.oai.builder_spec.rb
enju_oai-0.1.0.pre17 spec/views/manifestations/identify.oai.builder_spec.rb
enju_oai-0.1.0.pre16 spec/views/manifestations/identify.oai.builder_spec.rb