Skip to content

Commit

Permalink
Only require simplecov in development
Browse files Browse the repository at this point in the history
  • Loading branch information
calas committed Oct 23, 2013
1 parent 93eb76e commit 1343292
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Gemfile
Expand Up @@ -2,3 +2,7 @@ source 'https://rubygems.org'

# Specify your gem's dependencies in sr-jimson.gemspec
gemspec

group :development do
gem "simplecov"
end
7 changes: 5 additions & 2 deletions spec/spec_helper.rb
@@ -1,7 +1,10 @@
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'sr/jimson'
require 'simplecov'

SPEC_URL = 'http://localhost:8999'

SimpleCov.start 'rails' if ENV['COVERAGE']
begin
require 'simplecov'
SimpleCov.start 'rails' if ENV['COVERAGE']
rescue LoadError
end
1 change: 0 additions & 1 deletion sr-jimson.gemspec
Expand Up @@ -27,5 +27,4 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rspec"
spec.add_development_dependency 'rack-test'
spec.add_development_dependency "rdoc", ">= 2.4.2"
spec.add_development_dependency "simplecov"
end

0 comments on commit 1343292

Please sign in to comment.