Sha256: f540cd71c875b29985314c9e596fff0ba89a6e6013ea061656bbe83b11eaf850
Contents?: true
Size: 925 Bytes
Versions: 4
Compression:
Stored size: 925 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Geoblacklight::ViewHelperOverride do class GeoblacklightControllerTestClass include AbstractController::Translation attr_accessor :params end let(:fake_controller) do GeoblacklightControllerTestClass.new .extend(described_class) end describe 'render_search_to_s_bbox' do it 'returns an empty string for no bbox' do fake_controller.params = {} expect(fake_controller.render_search_to_s_bbox(fake_controller.params)).to eq '' end it 'returns render_search_to_s_element when bbox is present' do fake_controller.params = { bbox: '123' } params = { 'bbox' => '123' } expect(fake_controller).to receive(:render_search_to_s_element) expect(fake_controller).to receive(:render_filter_value) fake_controller.render_search_to_s_bbox(params) end end end
Version data entries
4 entries across 4 versions & 1 rubygems