Skip to content

Commit

Permalink
taking out simplecov as dependency. Run it through rake task instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Bridges committed Aug 13, 2012
1 parent 96ab480 commit 3636633
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
5 changes: 5 additions & 0 deletions Rakefile
Expand Up @@ -7,3 +7,8 @@ RSpec::Core::RakeTask.new(:spec)

task :default => :spec
task :test => :spec

task :cover do
ENV["COVERAGE"] = 'true'
Rake::Task["spec"].execute
end
1 change: 0 additions & 1 deletion dotify.gemspec
Expand Up @@ -20,7 +20,6 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency "git", "~> 1.2.5"

gem.add_development_dependency 'rspec', '~> 2.11.0'
gem.add_development_dependency 'simplecov'
gem.add_development_dependency 'cucumber'
gem.add_development_dependency 'webmock'
gem.add_development_dependency 'vcr'
Expand Down
10 changes: 1 addition & 9 deletions spec/spec_helper.rb
Expand Up @@ -6,15 +6,7 @@
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
$:.unshift File.expand_path("../../lib", __FILE__)

def jruby?
defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
end

def macruby?
defined?(RUBY_ENGINE) && RUBY_ENGINE == 'macruby'
end

unless ENV["CI"] || macruby? || jruby?
if ENV["COVERAGE"] == 'true'
require 'simplecov'
SimpleCov.start 'test_frameworks'
end
Expand Down

0 comments on commit 3636633

Please sign in to comment.