Skip to content
This repository has been archived by the owner on Jan 3, 2018. It is now read-only.

Commit

Permalink
Added spec helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Boerger committed Jun 30, 2015
1 parent 521647f commit 9c6891f
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#
# Copyright 2011-2013, Dell
# Copyright 2013-2014, SUSE LINUX Products GmbH
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

require "simplecov"

if ENV["CODECLIMATE_REPO_TOKEN"]
require "coveralls"
require "codeclimate-test-reporter"

Coveralls.wear!
CodeClimate::TestReporter.start

SimpleCov.start do
add_filter "/spec"

formatter SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
CodeClimate::TestReporter::Formatter
]
end
else
SimpleCov.start do
add_filter "/spec"
end
end

require "rspec"

RSpec.configure do |config|
config.mock_with :rspec
end

0 comments on commit 9c6891f

Please sign in to comment.