spec/spec_helper.rb in jekyll-feed-0.9.2 vs spec/spec_helper.rb in jekyll-feed-0.9.3
- old
+ new
@@ -1,19 +1,19 @@
require 'jekyll'
require 'typhoeus'
require 'nokogiri'
require 'rss'
-require File.expand_path('../lib/jekyll-feed', File.dirname(__FILE__))
+require File.expand_path('../lib/jekyll-feed', __dir__)
Jekyll.logger.log_level = :error
RSpec.configure do |config|
config.run_all_when_everything_filtered = true
config.filter_run :focus
config.order = 'random'
- SOURCE_DIR = File.expand_path("../fixtures", __FILE__)
- DEST_DIR = File.expand_path("../dest", __FILE__)
+ SOURCE_DIR = File.expand_path("fixtures", __dir__)
+ DEST_DIR = File.expand_path("dest", __dir__)
def source_dir(*files)
File.join(SOURCE_DIR, *files)
end