Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
Install SimpleCov if on 1.9.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Oct 15, 2011
1 parent 0e4cdc3 commit e260283
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ tmp/
.rake_tasks
*.sw[op]
.rvmrc
coverage/
5 changes: 5 additions & 0 deletions .simplecov
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# vim: syntax=ruby ft=ruby
SimpleCov.start do
add_filter "/spec/"
add_filter "/features/"
end
5 changes: 5 additions & 0 deletions features/support/env.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
begin
require 'simplecov'
rescue LoadError
# Probably on 1.8.7, ignore.
end
require 'aruba/cucumber'
require 'kumade'

Expand Down
3 changes: 3 additions & 0 deletions kumade.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ Gem::Specification.new do |s|
s.add_development_dependency('jammit', '~> 0.6.3')
s.add_development_dependency('less', '~> 2.0')
s.add_development_dependency('bourne')
if RUBY_VERSION >= '1.9.0'
s.add_development_dependency('simplecov')
end
end
6 changes: 6 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
begin
require 'simplecov'
rescue LoadError
# Probably on 1.8.7, ignore.
end

require 'rspec'
require 'aruba/api'
require 'bourne'
Expand Down

0 comments on commit e260283

Please sign in to comment.