Sha256: ff7eb398db954b77a13905e98bdbe4d63e363edc8e199979961ee9f0febbf23a

Contents?: true

Size: 657 Bytes

Versions: 2

Compression:

Stored size: 657 Bytes

Contents

require 'spec_helper'

describe Geoblacklight::GeoblacklightHelperBehavior do
  let(:dummy_class) do
    Class.new { include Geoblacklight::GeoblacklightHelperBehavior }.new
  end
  describe '#wxs_identifier' do
    it 'calls defined presenter class' do
      expect(dummy_class).to receive(:presenter)
        .and_return(double(wxs_identifier: 'druid:abc123'))
      expect(dummy_class.wxs_identifier).to eq 'druid:abc123'
    end
  end
  describe '#presenter_class' do
    it 'is defined as Geoblacklight::DocumentPresenter' do
      expect(dummy_class.presenter_class.new({}, {}, {}))
        .to be_a Geoblacklight::DocumentPresenter
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
geoblacklight-0.11.1 spec/lib/geoblacklight/geoblacklight_helper_behavior_spec.rb
geoblacklight-0.11.0 spec/lib/geoblacklight/geoblacklight_helper_behavior_spec.rb