test/prefs_test.rb in cliutils-1.2.0 vs test/prefs_test.rb in cliutils-1.2.1
- old
+ new
@@ -1,9 +1,10 @@
-require 'cliutils/ext/hash+extensions'
-require 'cliutils/prefs'
-require 'cliutils/prefs/pref'
require 'test/unit'
require 'yaml'
+
+require File.join(File.dirname(__FILE__), '..', 'lib/cliutils/ext/Hash+Extensions')
+require File.join(File.dirname(__FILE__), '..', 'lib/cliutils/prefs')
+require File.join(File.dirname(__FILE__), '..', 'lib/cliutils/prefs/pref')
class TestPrefs < Test::Unit::TestCase
def setup
@prefs_arr = [{:prompt=>"Where is your SSH public key located?", :config_key=>"pub_key", :config_section=>"personal_info", :behaviors=>["local_filepath"]}]
@prefs_hash = {:prompts=>@prefs_arr}