Sha256: 9fc4cdf8f40b555b07646e8c9e67919c31dd90706c853db0b7f61604cfa13e4a
Contents?: true
Size: 902 Bytes
Versions: 2
Compression:
Stored size: 902 Bytes
Contents
require 'spec_helper' require 'cartographie' require 'cartographie/config' describe Cartographie::Config do subject { Cartographie::Config } describe "default configs" do its(:api_endpoint) { should eq('http://maps.googleapis.com/maps/api/staticmap') } its(:width) { should eq(300) } its(:height) { should eq(300) } its(:zoom) { should eq(15) } its(:file_format) { should eq('png') } its(:sensor) { should be_false } end describe "setting new defaults" do before do Cartographie.configure do |config| config.width = 100 config.height = 100 config.zoom = 10 config.file_format = 'jpg' config.sensor = true end end its(:width) { should eq(100) } its(:height) { should eq(100) } its(:zoom) { should eq(10) } its(:file_format) { should eq('jpg') } its(:sensor) { should be_true } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cartographie-0.0.3 | spec/cartographie/config_spec.rb |
cartographie-0.0.2 | spec/cartographie/config_spec.rb |