aboutsummaryrefslogtreecommitdiffstats
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorRobert2017-05-02 18:17:04 +0200
committerRobert2017-05-02 18:17:04 +0200
commit7ce3dfa2770b2022f909164a0f24f8f38d8d8fb2 (patch)
tree93e383c98aba285eed180bb2c3cd9c0893f6ec95 /spec/spec_helper.rb
parenta305b724d52320adb304209b52924a29cfb81ab2 (diff)
downloadchouette-core-7ce3dfa2770b2022f909164a0f24f8f38d8d8fb2.tar.bz2
Refs #3178; Simplecov bogus config (almost) fixed
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb19
1 files changed, 10 insertions, 9 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index cda753efe..891235b81 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,4 +1,14 @@
# This file is copied to spec/ when you run 'rails generate rspec:install'
+require 'simplecov'
+# if ENV['JOB_NAME']
+# require 'simplecov-rcov'
+# SimpleCov.formatters = [
+# SimpleCov::Formatter::HTMLFormatter,
+# SimpleCov::Formatter::RcovFormatter
+# ]
+# end
+SimpleCov.start 'rails'
+
ENV["RAILS_ENV"] = 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
@@ -16,15 +26,6 @@ require 'simplecov'
require 'sidekiq/testing'
Sidekiq::Testing.fake!
-if ENV['JOB_NAME']
- require 'simplecov-rcov'
- SimpleCov.formatters = [
- SimpleCov::Formatter::HTMLFormatter,
- SimpleCov::Formatter::RcovFormatter
- ]
-end
-SimpleCov.start 'rails'
-
# Requires supporting ruby files with custom matchers and macros, etc, in
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
# run as spec files by default. This means that files in spec/support that end