Sha256: 20ddd4d40b1764fafc241c8d217b9a3c23eb20f13854296c7791f78d8ec33172
Contents?: true
Size: 669 Bytes
Versions: 6
Compression:
Stored size: 669 Bytes
Contents
require 'spec_helper' describe Geoblacklight::ViewHelperOverride do class GeoblacklightControllerTestClass attr_accessor :params end before(:each) do @fake_controller = GeoblacklightControllerTestClass.new @fake_controller.extend(Geoblacklight::ViewHelperOverride) end describe 'has_spatial_parameters?' do it 'should not have spatial parameters' do @fake_controller.params = {} expect(@fake_controller.has_spatial_parameters?).to be_falsey end it 'should have spatial parameters' do @fake_controller.params = { bbox: '123'} expect(@fake_controller.has_spatial_parameters?).to be_truthy end end end
Version data entries
6 entries across 6 versions & 1 rubygems