Permalink
Browse files

Install SimpleCov if on 1.9.x

  • Loading branch information...
1 parent 0e4cdc3 commit e2602832e7a0d71d20c3362b8c2b63ca736001f7 @gabebw gabebw committed Oct 15, 2011
Showing with 20 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +5 −0 .simplecov
  3. +5 −0 features/support/env.rb
  4. +3 −0 kumade.gemspec
  5. +6 −0 spec/spec_helper.rb
View
@@ -6,3 +6,4 @@ tmp/
.rake_tasks
*.sw[op]
.rvmrc
+coverage/
View
@@ -0,0 +1,5 @@
+# vim: syntax=ruby ft=ruby
+SimpleCov.start do
+ add_filter "/spec/"
+ add_filter "/features/"
+end
View
@@ -1,3 +1,8 @@
+begin
+ require 'simplecov'
+rescue LoadError
+ # Probably on 1.8.7, ignore.
+end
require 'aruba/cucumber'
require 'kumade'
View
@@ -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
View
@@ -1,3 +1,9 @@
+begin
+ require 'simplecov'
+rescue LoadError
+ # Probably on 1.8.7, ignore.
+end
+
require 'rspec'
require 'aruba/api'
require 'bourne'

0 comments on commit e260283

Please sign in to comment.