Sha256: b58baa5fba931fb4f2405977a9ed7200bab4f97cf1c2f017054263935d5b7758

Contents?: true

Size: 699 Bytes

Versions: 5

Compression:

Stored size: 699 Bytes

Contents

require 'spec_helper'

describe BlacklightMarcHelper do
  let(:one) { SolrDocument.new }
  let(:two) { SolrDocument.new }
  describe "render_refworks_texts" do
    before do
      one.stub(:export_as_refworks_marc_txt => 'one')
      two.stub(:export_as_refworks_marc_txt => 'two')
    end
    it "should render_refworks_texts" do
      expect(helper.render_refworks_texts([one, two])).to eq "one\ntwo\n"

    end
  end

  describe "render_endnote_texts" do
    before do
      one.stub(:export_as_endnote => 'one')
      two.stub(:export_as_endnote => 'two')
    end
    it "should render_endnote_texts" do
      expect(helper.render_endnote_texts([one, two])).to eq "one\ntwo\n"
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
blacklight-marc-5.4.0 spec/helpers/blacklight_marc_helper_spec.rb
blacklight-marc-5.0.0 spec/helpers/blacklight_marc_helper_spec.rb
blacklight_marc-0.0.9 spec/helpers/blacklight_marc_helper_spec.rb
blacklight_marc-0.0.8 spec/helpers/blacklight_marc_helper_spec.rb
blacklight_marc-0.0.7 spec/helpers/blacklight_marc_helper_spec.rb