From 98ac072e04d3754afed8a7ef7bf39ed3d02444c3 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Sat, 7 Jun 2008 22:53:25 +0000 Subject: [PATCH] ActionItem265: fixing test --- test/unit/google_maps_test.rb | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/test/unit/google_maps_test.rb b/test/unit/google_maps_test.rb index f08424f..7324b5c 100644 --- a/test/unit/google_maps_test.rb +++ b/test/unit/google_maps_test.rb @@ -10,11 +10,13 @@ class GoogleMapsTest < Test::Unit::TestCase end should 'retrieve key from "web2.0" config file' do + File.expects(:exists?).with(CONFIG_FILE).returns(true) YAML.expects(:load_file).with(CONFIG_FILE).returns({'googlemaps' => { 'key' => 'MYKEY' }}) assert_equal 'MYKEY', GoogleMaps.key end should 'enable when key is defined' do + File.expects(:exists?).with(CONFIG_FILE).returns(true) YAML.expects(:load_file).with(CONFIG_FILE).returns({'googlemaps' => { 'key' => 'MYKEY' }}) assert GoogleMaps.enabled? end -- libgit2 0.21.2