Skip to content

Commit

Permalink
+ coverage enabling
Browse files Browse the repository at this point in the history
  • Loading branch information
floere committed Oct 27, 2010
1 parent 9489d55 commit ac4d46e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
7 changes: 1 addition & 6 deletions server/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ Spec::Rake::SpecTask.new(:spec) do |t|
end

task :simplecov do
require 'simplecov'
SimpleCov.adapters.define 'picky' do
add_filter '/spec/'
add_group 'Libraries', 'lib'
end
SimpleCov.start 'picky'
ENV['COV'] = 'yes'
end

task :cov do
Expand Down
8 changes: 8 additions & 0 deletions server/spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
if ENV['COV']
require 'simplecov'
SimpleCov.adapters.define 'picky' do
add_filter '/spec/'
add_group 'Libraries', 'lib'
end
SimpleCov.start 'picky'
end
# This file is copied to ~/spec when you run 'ruby script/generate rspec'
# from the project root directory.
#
Expand Down

0 comments on commit ac4d46e

Please sign in to comment.