Sha256: 469e093b88dcd867f7547d17a29107b41b658e132b4750570e70c66e14f76fad

Contents?: true

Size: 418 Bytes

Versions: 2

Compression:

Stored size: 418 Bytes

Contents

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

describe "manifestations/list_identifiers.oai.builder" do
  fixtures :all
  before(:each) do 
    view.stub(:current_user_role_name).and_return('Guest')
    assign(:oai, { :errors => [] })
    assign(:manifestations, [ FactoryGirl.create(:manifestation) ])
  end
  it "renders the XML template" do
    render
    expect(rendered).to match /<ListIdentifiers>/
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
enju_oai-0.1.0.pre19 spec/views/manifestations/list_identifiers.oai.builder_spec.rb
enju_oai-0.1.0.pre18 spec/views/manifestations/list_identifiers.oai.builder_spec.rb