spec/spec_helper.rb in git-trend-1.1.8 vs spec/spec_helper.rb in git-trend-1.1.9
- old
+ new
@@ -12,23 +12,23 @@
#
# The `.rspec` file also contains a few flags that are not defaults but that
# users commonly want.
#
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
-require "coveralls"
-Coveralls.wear!
+# require "coveralls"
+# Coveralls.wear!
require "simplecov"
# require "codeclimate-test-reporter"
dir = File.join(ENV["CIRCLE_ARTIFACTS"] || "coverage")
SimpleCov.coverage_dir(dir)
SimpleCov.start do
add_filter "/spec/"
formatter SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
- Coveralls::SimpleCov::Formatter
+ # Coveralls::SimpleCov::Formatter
])
end
require "webmock/rspec"
@@ -113,10 +113,10 @@
end
=end
end
def load_http_stub(file_name)
- file_path = File.join(File.dirname(__FILE__), "fixtures", file_name)
+ file_path = File.join(__dir__, "fixtures", file_name)
file_path = File.join(file_path, "index") if File.directory? file_path
File.read(file_path)
end
class String