Skip to content

Commit

Permalink
merge coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Jun 8, 2013
1 parent d36e526 commit c1de4a8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
10 changes: 7 additions & 3 deletions features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
end
end if RUBY_PLATFORM == 'java'

require 'coveralls'
Coveralls.wear! do
add_filter '/bundle/'
begin
require 'coveralls'
Coveralls.wear_merged! do
add_filter '/bundle/'
end
rescue Exception => e
warn "Coveralls disabled"
end
12 changes: 8 additions & 4 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
require 'simplecov' if RUBY_VERSION.to_f > 1.8
require 'coveralls'
Coveralls.wear! do
add_filter '/bundle/'
begin
require 'simplecov'
require 'coveralls'
Coveralls.wear_merged! do
add_filter '/bundle/'
end
rescue Exception => e
warn "Coveralls disabled"
end

Dir['./spec/support/**/*'].each {|f| require f}
Expand Down

0 comments on commit c1de4a8

Please sign in to comment.