Skip to content
Browse files

Inlining the before suite block, due to inconsistent coverage

recognition in rcov
  • Loading branch information...
1 parent bf8c567 commit 6b2edc197228fdafdcd73b5ba3098401e1a4912e @spicycode spicycode committed Sep 8, 2009
Showing with 2 additions and 4 deletions.
  1. +1 −1 Rakefile
  2. +1 −3 lib/spec/runner/options.rb
View
2 Rakefile
@@ -65,7 +65,7 @@ namespace :spec do
t.rcov = true
t.rcov_dir = 'coverage'
t.rcov_opts = ['--exclude', "features,kernel,load-diff-lcs\.rb,instance_exec\.rb,lib/spec.rb,lib/spec/runner.rb,^spec/*,bin/spec,examples,/gems,/Library/Ruby,\.autotest,#{ENV['GEM_HOME']}"]
- t.rcov_opts << '--sort coverage --only-uncovered --text-coverage --aggregate coverage.data'
+ t.rcov_opts << '--sort coverage --only-uncovered --text-summary --aggregate coverage.data'
end
end
View
4 lib/spec/runner/options.rb
@@ -117,9 +117,7 @@ def run_examples
# from the configuration. There is no spec for this
# directly, but features/before_and_after_blocks/before_and_after_blocks.story
# will fail if this happens before the files are loaded.
- before_suite_parts.each do |part|
- part.call
- end
+ before_suite_parts.each { |part| part.call }
if example_groups.empty?
true

0 comments on commit 6b2edc1

Please sign in to comment.
Something went wrong with that request. Please try again.