[rspec-users] Bundler and Setting up RSpec

Stuart Corbishley corbish at gmail.com
Mon Mar 28 10:59:05 EDT 2011


Hi there,

Does RSpec acknowledge bundler, and use the groups?

Also is there any good example of what is required for a function spec
rake task...

I've had issues trying to create my own.

require 'rubygems'
require 'bundler'
Bundler.setup(:default, :test)

begin
  require 'rspec/core/rake_task'
  desc "Run the specs under spec/"
  RSpec::Rake::SpecTask.new
rescue NameError, LoadError => e
  puts e
end

I get this back: no such file to load -- rake/tasklib

I had a similar issue with another project written by someone else. I
get the feeling I'm using the RSpec 1.x ways or something of the sort.
Any advice?


More information about the rspec-users mailing list