test/test_helper.rb in ruby-tmdb-0.1.0 vs test/test_helper.rb in ruby-tmdb-0.1.1
- old
+ new
@@ -1,9 +1,11 @@
TEST_LIVE_API = false
require 'rubygems'
require 'test/unit'
+require 'yaml'
+require 'net/http'
unless(TEST_LIVE_API)
require 'webmock/test_unit'
include WebMock
end
@@ -14,7 +16,8 @@
require_files.each do |file|
require File.expand_path(file)
end
-#load(File.join('unit', 'test_direct_require.rb'), true)
-system('ruby ' + File.expand_path(File.join(File.dirname(__FILE__), 'unit', 'test_direct_require.rb')))
+File.open(File.join(File.dirname(__FILE__), 'setup', 'tmdb_api_key.txt')) do |file|
+ Tmdb.api_key = file.read
+end
\ No newline at end of file