Forum: RSpec How to use config.gem for rspec and rspec-rails

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Yi W. (Guest)
on 2008-11-18 01:27
(Received via mailing list)
Hi,

Is there anyway I can specify
config.gem rspec :lib => "spec"
config.gem rspec-rails :lib => "spec/rails"

 in my test.rb?

Basically I got this after I specify rspec
rake gems:unpack RAILS_ENV=test
(in /home/ywen/projects/kod)
rake aborted!
uninitialized constant Spec::Rake
/home/ywen/projects/kod/Rakefile:10
(See full trace by running task with --trace)

Thanks

yi
This topic is locked and can not be replied to.