Does anybody have any idea why ActiveSupport:: dependencies would be loading my spec file when I upgraded from RSpec 2.99 to 3.0.beta? Here’s the stack trace of where it does this and down below is the stack trace from when I tried to recreate the problem with a brand new project. Since I was not able to reproduce the problem in a brand new project, I’m a bit stuck. Any advice on how to debug this is greatly appreciated. The only clue I have is that Dependencies is loading the spec file before the rspec file, per the stack traces.
Am I right to suspect that there’s something odd with Dependencies loading the spec file?
BROKEN with production project
/Users/justin/j/blink/bpos/spec/controllers/images_controller_spec.rb:12:in `block in <top (required)>': undefined local variable or method `render_views' for RSpec::ExampleGroups::ImagesController_2:Class (NameError)
from /Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/example_group.rb:323:in `module_eval'
from /Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/example_group.rb:323:in `subclass'
from /Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/example_group.rb:287:in `example_group'
from /Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/example_group.rb:169:in `block in alias_example_group_to'
from /Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/dsl.rb:40:in `block in expose_example_group_alias'
from /Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/dsl.rb:74:in `block (2 levels) in expose_example_group_alias_globally'
from /Users/justin/j/blink/bpos/spec/controllers/images_controller_spec.rb:6:in `<top (required)>'
from /Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:223:in `load'
from /Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:223:in `block in load'
from /Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency'
from /Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:223:in `load'
from /Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/configuration.rb:932:in `block in load_spec_files'
from /Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/configuration.rb:932:in `each'
from /Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/configuration.rb:932:in `load_spec_files'
from /Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/command_line.rb:21:in `run'
from /Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/runner.rb:100:in `run'
from /Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/runner.rb:31:in `invoke'
from /Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/exe/rspec:4:in `<top (required)>'
from /Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/bin/rspec:23:in `load'
from /Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/bin/rspec:23:in `<main>'
from /Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/bin/ruby_executable_hooks:15:in `eval'
from /Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/bin/ruby_executable_hooks:15:in `<main>'
Stack trace from where render_views is called on a the brand new project
/Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/example_group.rb:323:in `module_eval'
/Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/example_group.rb:323:in `subclass'
/Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/example_group.rb:287:in `example_group'
/Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/example_group.rb:169:in `block in alias_example_group_to'
/Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/dsl.rb:40:in `block in expose_example_group_alias'
/Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/dsl.rb:74:in `block (2 levels) in expose_example_group_alias_globally'
/Users/justin/j/blink/rspec_test/spec/controllers/users_controller_spec.rb:21:in `<top (required)>'
/Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/configuration.rb:934:in `load'
/Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/configuration.rb:934:in `block in load_spec_files'
/Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/configuration.rb:932:in `each'
/Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/configuration.rb:932:in `load_spec_files'
/Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/command_line.rb:21:in `run'
/Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/runner.rb:100:in `run'
/Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/lib/rspec/core/runner.rb:31:in `invoke'
/Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/gems/rspec-core-3.0.0.beta2/exe/rspec:4:in `<top (required)>'
/Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/bin/rspec:23:in `load'
/Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/bin/rspec:23:in `<main>'
/Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/bin/ruby_executable_hooks:15:in `eval'
/Users/justin/.rvm/gems/ruby-2.0.0-p353@rails4/bin/ruby_executable_hooks:15:in `<main>'