ref: master
test/unit/google_maps_test.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
require_relative "../test_helper" class GoogleMapsTest < ActiveSupport::TestCase should 'provide initial_zoom setting' do NOOSFERO_CONF.stubs(:[]).with('googlemaps_initial_zoom').returns(2) assert_equal 2, GoogleMaps.initial_zoom end should 'use 4 as default initial_zoom' do NOOSFERO_CONF.stubs(:[]).with('googlemaps_initial_zoom').returns(nil) assert_equal 4, GoogleMaps.initial_zoom end end |