Skip to content
Browse files

Require spec_helper before the spec files so we don't get an RSpec co…

…nfig warning.
  • Loading branch information...
1 parent 16b50f9 commit 7f92317afa3ac12f6472ae76fd083d6ce0969152 @myronmarston committed Sep 22, 2011
Showing with 8 additions and 2 deletions.
  1. +8 −2 Rakefile
View
10 Rakefile
@@ -11,7 +11,10 @@ require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec) do |t|
t.verbose = false
- t.ruby_opts = "-w -r./spec/capture_warnings"
+
+ # we require spec_helper so we don't get an RSpec warning about
+ # examples being defined before configuration.
+ t.ruby_opts = "-w -r./spec/capture_warnings -r./spec/spec_helper"
# I'm not sure why, but bundler seems to silence warnings...
t.skip_bundler = true
@@ -44,7 +47,10 @@ namespace :ci do
RSpec::Core::RakeTask.new(:spec) do |t|
t.verbose = true
- t.ruby_opts = "-w -r./spec/capture_warnings"
+
+ # we require spec_helper so we don't get an RSpec warning about
+ # examples being defined before configuration.
+ t.ruby_opts = "-w -r./spec/capture_warnings -r./spec/spec_helper"
# I'm not sure why, but bundler seems to silence warnings...
t.skip_bundler = true
t.rspec_opts = %w[--format progress --backtrace]

0 comments on commit 7f92317

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