Sha256: 8d3ef16dc9c874f79d7eb03f0393dc0783bb2586eb2e47353c3f6b3bf4e8205c

Contents?: true

Size: 542 Bytes

Versions: 2

Compression:

Stored size: 542 Bytes

Contents

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

describe "oai/list_identifiers.xml.builder" do
  fixtures :all
  before(:each) do 
    view.stub(:current_user_role_name).and_return('Guest')
    assign(:oai, { errors: [] })
    manifestations = [ FactoryBot.create(:manifestation) ]
    manifestations.stub(:last_page?){true}
    manifestations.stub(:total_count){manifestations.size}
    assign(:manifestations, manifestations)
  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.3.0 spec/views/oai/list_identifiers.xml.builder_spec.rb
enju_oai-0.3.0.beta.1 spec/views/oai/list_identifiers.xml.builder_spec.rb