Sha256: 63542f672a3fc785b728aa589465fb7ecceb72e877ca86f6e6119fc538e38fd4
Contents?: true
Size: 811 Bytes
Versions: 3
Compression:
Stored size: 811 Bytes
Contents
require 'spec_helper' describe BoundingBoxHelper do let(:property) { :coverage } let(:helper) { TestingHelper.new } before do class TestingHelper include BoundingBoxHelper def curation_concern end end end after do Object.send(:remove_const, :TestingHelper) end before do vector_work = instance_double('vector_work', class: VectorWork) allow(helper).to receive(:curation_concern).and_return(vector_work) end describe '#bbox' do it 'builds bounding box selector' do expect(helper.bbox(property)).to include("{inputId: vector_work_coverage})") end end describe '#base_input_id' do it 'returns the id of the bounding box input element' do expect(helper.bbox_input_id(property)).to eq('vector_work_coverage') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
geo_concerns-0.0.3 | spec/helpers/bounding_box_helper_spec.rb |
geo_concerns-0.0.2 | spec/helpers/bounding_box_helper_spec.rb |
geo_concerns-0.0.1 | spec/helpers/bounding_box_helper_spec.rb |