cartodb-4.42/spec/lib/carto/styles/geometry_spec.rb
2024-04-06 05:25:13 +00:00

44 lines
1.3 KiB
Ruby

require 'spec_helper_min'
module Carto
module Styles
describe Geometry do
describe '#default' do
let(:prod_default_geometry_cartocss) do
"#layer['mapnik::geometry_type'=1] {\n"\
" marker-width: 7;\n"\
" marker-fill: #EE4D5A;\n"\
" marker-fill-opacity: 0.9;\n"\
" marker-line-color: #FFFFFF;\n"\
" marker-line-width: 1;\n"\
" marker-line-opacity: 1;\n"\
" marker-placement: point;\n"\
" marker-type: ellipse;\n"\
" marker-allow-overlap: true;\n"\
"}\n"\
"#layer['mapnik::geometry_type'=2] {\n"\
" line-color: #4CC8A3;\n"\
" line-width: 1.5;\n"\
" line-opacity: 1;\n"\
"}\n"\
"#layer['mapnik::geometry_type'=3] {\n"\
" polygon-fill: #826DBA;\n"\
" polygon-opacity: 0.9;\n"\
" ::outline {\n"\
" line-color: #FFFFFF;\n"\
" line-width: 1;\n"\
" line-opacity: 0.5;\n"\
" }\n"\
"}"
end
it 'has stayed the same' do
default_point_cartocss = Carto::Styles::Geometry.new.to_cartocss
default_point_cartocss.should eq prod_default_geometry_cartocss
end
end
end
end
end