Skip to content

uninitialized constant RSpec::Rails::ControllerExampleGroup #1

Closed
@kueda

Description

@kueda

Just gave this a try but hit this error message (just the top of the trace):

/Users/kueda/.rvm/gems/ruby-1.9.3-p286/gems/rspec-rails-caching-0.2.1/lib/rspec-rails-caching.rb:18:in `block in <module:RSpecRailsCaching>': uninitialized constant RSpec::Rails::ControllerExampleGroup (NameError)
    from /Users/kueda/.rvm/gems/ruby-1.9.3-p286/gems/rspec-core-2.12.2/lib/rspec/core.rb:108:in `configure'
    from /Users/kueda/.rvm/gems/ruby-1.9.3-p286/gems/rspec-rails-caching-0.2.1/lib/rspec-rails-caching.rb:8:in `<module:RSpecRailsCaching>'
    from /Users/kueda/.rvm/gems/ruby-1.9.3-p286/gems/rspec-rails-caching-0.2.1/lib/rspec-rails-caching.rb:6:in `<top (required)>'
    from /Users/kueda/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:68:in `require'

This happens when my spec_helper.rb gets loaded, before any of my tests actually get run. Any way to ensure RSpec::Rails::ControllerExampleGroup is loaded before this line gets run?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions