test/acceptance/acceptance_test.rb in xeroizer-0.4.1 vs test/acceptance/acceptance_test.rb in xeroizer-0.4.2

- old
+ new

@@ -12,11 +12,11 @@ def self.let(symbol, &block) return unless block_given? unless respond_to? symbol - define_method symbol, do + define_method symbol do cached_method_result = instance_variable_get ivar_name = "@#{symbol}" instance_variable_set(ivar_name, instance_eval(&block)) if cached_method_result.nil? instance_variable_get ivar_name end end @@ -34,10 +34,10 @@ end private def load_config_from_file - the_file_name = ".oauth" + the_file_name = File.join(File.dirname(__FILE__), '..', '..', '.oauth') return nil unless File.exists? the_file_name Xeroizer::OAuthConfig.load IO.read the_file_name end