On 10 Oct 2007, at 22:45, Chris Olsen wrote:

> I am getting the error when I run the command: rake spec
>
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ 
> active_support/dependencies.rb:266:in
> `load_missing_constant': uninitialized constant ProjectsHelper
> "spec/helpers/projects_helper_spec.rb" "spec/models/project_spec.rb"


> +++++++++
> require File.dirname(__FILE__) + '/../spec_helper'
>
> describe ProjectsHelper do # Helper methods can be called directly in
> the examples (it blocks)
> end
> +++++++++

So, it the problem is that the ProjectsHelper constant doesn't exist,  
which probably means that app/helpers/projects_helper doesn't exist,  
or doesn't declare the ProjectsHelper module.

It could, of course, also be a pluralisation problem, with  
ProjectsHelper being called in place of ProjectHelper.

Anyway, whatever it is, you need to make sure that the class/module  
name following 'describe' in your helper spec is actually defined  
somewhere.

Matt

-- 
   Matt Patterson | Design & Code
   <matt at reprocessed org> | http://www.reprocessed.org/


_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to