cartodb-4.29/spec/lib/carto/styles/polygon_spec.rb
2020-06-15 10:58:47 +08:00

28 lines
702 B
Ruby

require 'spec_helper_min'
module Carto
module Styles
describe Polygon do
describe '#default' do
let(:production_default_polygon_cartocss) do
"#layer {\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
current_default_polygon_cartocss = Carto::Styles::Polygon.new.to_cartocss
current_default_polygon_cartocss.should eq production_default_polygon_cartocss
end
end
end
end
end