Commit ec9af45f026321cf46d0c01c43c76af87b590370
1 parent
93e419f8
Exists in
master
and in
29 other branches
ActionItem860: fix error on unit test
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
test/unit/google_maps_test.rb
... | ... | @@ -36,12 +36,12 @@ class GoogleMapsTest < Test::Unit::TestCase |
36 | 36 | should 'not crash if config not informed' do |
37 | 37 | File.expects(:exists?).with(CONFIG_FILE).returns(true) |
38 | 38 | YAML.expects(:load_file).with(CONFIG_FILE).returns({}) |
39 | - assert_nil GoogleMaps.key | |
39 | + assert_equal '', GoogleMaps.key | |
40 | 40 | end |
41 | 41 | |
42 | 42 | should 'not crash if config file not found' do |
43 | 43 | GoogleMaps.expects(:config_file).returns('/not/present.yml') |
44 | - assert_nil GoogleMaps.key | |
44 | + assert_equal '', GoogleMaps.key | |
45 | 45 | end |
46 | 46 | |
47 | 47 | should 'point correctly to google maps' do | ... | ... |