Sha256: be4a039851a7fd1de9fec7744fefd3f8a9b5205bf308e4fd6f9951c525248751
Contents?: true
Size: 685 Bytes
Versions: 12
Compression:
Stored size: 685 Bytes
Contents
require 'spec_helper' describe GeoConcerns::CoverageRenderer do let(:coverage) { 'northlimit=2.7; eastlimit=4.0; southlimit=1.3; westlimit=2.9; units=degrees; projection=EPSG:4326' } let(:renderer) { described_class.new(:coverage, [coverage]) } subject { renderer.render } it 'includes the coverage string' do expect(subject).to include coverage end it 'includes a map' do expect(subject).to include "<div id='bbox'" expect(subject).to include "boundingBoxSelector" end it 'includes a toggle button' do expect(subject).to include "<a data-toggle='collapse' data-parent='accordion' href='#bbox'" expect(subject).to include "Toggle Map" end end
Version data entries
12 entries across 12 versions & 1 rubygems