Closed nicholasf closed 12 years ago
spec_helper.rb config:
equire 'rubygems'
require 'bundler'
require 'bundler/setup'
Bundler.require(:default)
Combustion.initialize!
This was an error coming from inherited_resources. Closing this.
Hi Nick
Are you able to share your spec_helper? Or shoot it to me in an email if you'd rather it not be public.
Pat
On 19/10/2011, at 4:16 PM, Nicholas Faiz reply@reply.github.com wrote:
I'm running into this error after setting up spec_helper with the Combustion config.
It also happens when I downgrade to 3.1.0.
/Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.0/lib/action_controller/base.rb:171:in `<module:ActionController>': uninitialized constant ActionController::Metal (NameError) from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.0/lib/action_controller/base.rb:3:in `<top (required)>' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/responders-0.6.4/lib/responders.rb:1:in `require' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/responders-0.6.4/lib/responders.rb:1:in `<top (required)>' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/inherited_resources-1.3.0/lib/inherited_resources.rb:2:in `require' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/inherited_resources-1.3.0/lib/inherited_resources.rb:2:in `<top (required)>' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `block (2 levels) in require' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `each' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `block in require' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `each' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `require' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler.rb:120:in `require' from /Users/nicholas/code/src/tfw/inkling/spec/spec_helper.rb:4:in `<top (required)>' from /Users/nicholas/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' from /Users/nicholas/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' from /Users/nicholas/code/src/tfw/inkling/spec/models/theme_spec.rb:1:in `<top (required)>' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.7.0/lib/rspec/core/configuration.rb:459:in `load' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.7.0/lib/rspec/core/configuration.rb:459:in `block in load_spec_files' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.7.0/lib/rspec/core/configuration.rb:459:in `map' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.7.0/lib/rspec/core/configuration.rb:459:in `load_spec_files' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.7.0/lib/rspec/core/command_line.rb:18:in `run' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.7.0/lib/rspec/core/runner.rb:80:in `run_in_process' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.7.0/lib/rspec/core/runner.rb:69:in `run' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.7.0/lib/rspec/core/runner.rb:10:in `block in autorun' mercury:inkling nicholas$
Reply to this email directly or view it on GitHub: https://github.com/freelancing-god/combustion/issues/10
Hey - see the rest of the ticket. Was an inherited_resources issue. I've closed the ticket. Thanks for the fast response though.
On 19/10/2011, at 5:32 PM, Pat Allan wrote:
Hi Nick
Are you able to share your spec_helper? Or shoot it to me in an email if you'd rather it not be public.
Pat
On 19/10/2011, at 4:16 PM, Nicholas Faiz reply@reply.github.com wrote:
I'm running into this error after setting up spec_helper with the Combustion config.
It also happens when I downgrade to 3.1.0.
/Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.0/lib/action_controller/base.rb:171:in `<module:ActionController>': uninitialized constant ActionController::Metal (NameError) from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.0/lib/action_controller/base.rb:3:in `<top (required)>' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/responders-0.6.4/lib/responders.rb:1:in `require' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/responders-0.6.4/lib/responders.rb:1:in `<top (required)>' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/inherited_resources-1.3.0/lib/inherited_resources.rb:2:in `require' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/inherited_resources-1.3.0/lib/inherited_resources.rb:2:in `<top (required)>' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `block (2 levels) in require' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `each' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `block in require' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `each' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `require' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler.rb:120:in `require' from /Users/nicholas/code/src/tfw/inkling/spec/spec_helper.rb:4:in `<top (required)>' from /Users/nicholas/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' from /Users/nicholas/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' from /Users/nicholas/code/src/tfw/inkling/spec/models/theme_spec.rb:1:in `<top (required)>' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.7.0/lib/rspec/core/configuration.rb:459:in `load' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.7.0/lib/rspec/core/configuration.rb:459:in `block in load_spec_files' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.7.0/lib/rspec/core/configuration.rb:459:in `map' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.7.0/lib/rspec/core/configuration.rb:459:in `load_spec_files' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.7.0/lib/rspec/core/command_line.rb:18:in `run' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.7.0/lib/rspec/core/runner.rb:80:in `run_in_process' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.7.0/lib/rspec/core/runner.rb:69:in `run' from /Users/nicholas/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.7.0/lib/rspec/core/runner.rb:10:in `block in autorun' mercury:inkling nicholas$
Reply to this email directly or view it on GitHub: https://github.com/freelancing-god/combustion/issues/10
Reply to this email directly or view it on GitHub: https://github.com/freelancing-god/combustion/issues/10#issuecomment-2452512
Ah, I really wish Github would email further comments to the repo owner. Still, good to know you've got it sorted :)
@nicholasf How did you solved you error. I have the same issue.
I removed inherited resources: https://github.com/tfw/inkling/blob/master/Gemfile
@nicholasf lol
It was a while ago, but the problem was coming from Inherited Resources not Combustion. I remember googling it, locating it in IR, and then deciding that I wasn't using IR that much anyhow.
If you're dependent on IR you'd better clarify the problem. Sorry, I dont remember much else about it.
I'm running into this error after setting up spec_helper with the Combustion config.
It also happens when I downgrade to 3.1.0.