From c0971d74b547ee87d4747b449cf7b57709de64e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98rjan=20Blom?= Date: Tue, 7 May 2013 20:32:01 +0200 Subject: [PATCH] Adjust the Coveralls configuration * Add the coverage directory to `.gitignore`. * Move setup to the top of the spec helper. * Filter out files with /spec/ in the path. --- .gitignore | 1 + spec/spec_helper.rb | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 9cef73a..d6231e5 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ .bundle .rvmrc Gemfile.lock +coverage doc/* log/* pkg/* diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 34982fb..4ea10e3 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,11 +1,11 @@ +require 'coveralls' +Coveralls.wear! { add_filter '/spec/' } + require 'tugboat' require 'webmock/rspec' require 'digital_ocean' require "shared/environment" -require 'coveralls' -Coveralls.wear! - RSpec.configure do |config| # Pretty tests config.color_enabled = true