test/setup/setup_api_key.rb in ruby-tmdb3-0.3.2 vs test/setup/setup_api_key.rb in ruby-tmdb3-0.3.3
- old
+ new
@@ -1,6 +1,6 @@
begin
- file_path = File.absolute_path('tmdb_api_key.txt', File.dirname(__FILE__))
+ file_path = File.expand_path('tmdb_api_key.txt', File.dirname(__FILE__))
File.open(file_path) do |file|
Tmdb.api_key = file.read.chomp
end
rescue Errno::ENOENT => e