Sha256: 734ca0dee49afc21325066ba1266944eba3d1bad3590724ef68c5355d2ccfb8e
Contents?: true
Size: 960 Bytes
Versions: 1
Compression:
Stored size: 960 Bytes
Contents
require 'spec_helper' require 'easy_map_tiles' describe EasyMapTiles do it 'has a version' do expect(EasyMapTiles::VERSION).to match(/\d+\.\d+\.\d+/) end it 'generates google map tiles' do zoom_levels = [5,6,7,8,9,10] divs = [ [39.915036, 116.404996, zoom_levels], [21.029346, 105.838938, zoom_levels], [52.516318, 13.402477, zoom_levels], [13.741276, 100.533547, zoom_levels], [-34.914309, -56.161885, zoom_levels], [54.548059, 36.287218, zoom_levels] ].map do |e| EasyMapTiles.tile_div(*e, satellite: false, marker: true) end File.write('test.html', divs.join('<br><br>')) puts "Check resulting easy_map_tiles in test.html" end it 'tile_div accepts a block' do zoom_levels = [5,6,7,8,9,10] div = EasyMapTiles.tile_div(39.915036, 116.404996, zoom_levels, satellite: false, marker: true) do 'Block Test' end expect(div).to match('Block Test') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
easy_map_tiles-0.0.2 | spec/lib/easy_map_tiles_spec.rb |