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

Version Path
geo_concerns-0.3.4 spec/renderers/geo_concerns/coverage_renderer_spec.rb
geo_concerns-0.3.3 spec/renderers/geo_concerns/coverage_renderer_spec.rb
geo_concerns-0.3.2 spec/renderers/geo_concerns/coverage_renderer_spec.rb
geo_concerns-0.3.1 spec/renderers/geo_concerns/coverage_renderer_spec.rb
geo_concerns-0.3.0 spec/renderers/geo_concerns/coverage_renderer_spec.rb
geo_concerns-0.2.0 spec/renderers/geo_concerns/coverage_renderer_spec.rb
geo_concerns-0.1.1 spec/renderers/geo_concerns/coverage_renderer_spec.rb
geo_concerns-0.1.0 spec/renderers/geo_concerns/coverage_renderer_spec.rb
geo_concerns-0.0.10 spec/renderers/geo_concerns/coverage_renderer_spec.rb
geo_concerns-0.0.9 spec/renderers/geo_concerns/coverage_renderer_spec.rb
geo_concerns-0.0.8 spec/renderers/geo_concerns/coverage_renderer_spec.rb
geo_concerns-0.0.7 spec/renderers/geo_concerns/coverage_renderer_spec.rb