Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
[all] Trying hard to please the CI gods
Browse files Browse the repository at this point in the history
Previously export RUBYOPT=-Ispec was masking the
fact that "lib" and "spec" dirs weren't added to
rspec's loadpath. This caused rake spec to fail
when RUBYOPT=-Ispec wasn't set
  • Loading branch information
snusnu committed Sep 9, 2009
1 parent e2641b6 commit 2cb2aab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Expand Up @@ -4,7 +4,7 @@
require 'dm-core'

# Support running specs with 'rake spec' and 'spec'
$LOAD_PATH.unshift(File.join('lib'))
$LOAD_PATH.unshift('lib') unless $LOAD_PATH.include?('lib')

require 'dm-migrations'
require 'dm-migrations/migration_runner'
Expand Down
1 change: 1 addition & 0 deletions tasks/spec.rb
Expand Up @@ -8,6 +8,7 @@
Spec::Rake::SpecTask.new(:spec) do |t|

t.spec_opts << '--options' << 'spec/spec.opts' if File.exists?('spec/spec.opts')
t.libs << 'lib' << 'spec' # needed for CI rake spec task, duplicated in spec_helper

begin
require 'rcov'
Expand Down

0 comments on commit 2cb2aab

Please sign in to comment.