Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Newbie Problem : Including gems in Rake::TestTask
Michael Barton
2/14/2008 5:37:00 PM
I'd like to include spec behaviour testing behaviour in the
Rake::TestTask, however I am unable to do this. At the moment, my code
looks like this.
require 'rake'
require 'rake/testtask'
require '3rd_party/bacon/lib/bacon.rb'
desc('Runs all tests in the subdirectories of lib')
task :test do
Rake::TestTask.new do |t|
t.pattern = 'lib/**/test/test_*.rb'
end
end
However the line " require '3rd_party/bacon/lib/bacon.rb' " has no
effect and instead I have to include it in all my testing files - which
is not very DRY. I'm not using ruby_gems because I'd like to distribute
my code, and I don't want other people to have to install dependencies
to run it. I've tried different variations of using t.libs TestTask
block however this hasn't solved the problem either.
Any help would be appreciated.
Mike
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Newbie Problem : Including gems in Rake::TestTask
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password