我在spec_helper.rb文件中添加了以下行
require 'clearance/testing'
require 'clearance/shoulda_macros'
config.include Clearance::Shoulda::Helpers
但我收到以下错误:
~/.rvm/gems/ruby-1.8.7-p357/gems/activesupport-3.0.10/lib/active_support/dependencies.rb
:239:in `require': no such file to load -- clearance/shoulda_macros (LoadError)
运行Ruby 1.8.7,Rails 3.0.9,安装了最新的Shoulda,Clearance和RSpec-rails gems。
有什么想法吗?