I am getting the error when I run the command: rake spec
This is a new project with not current test written besides the ones
auto-created for me.
+++++++++
$ rake spec
(in /Users/chrisolsen/Projects/Rails/chrisolsen/trunk)
/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 (NameError) from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:452:in
const_missing’
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:464:in
const_missing' from ./spec/helpers/projects_helper_spec.rb:3 from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in
load’
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in
load' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in
new_constants_in’
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in
load' from /Users/chrisolsen/Projects/Rails/chrisolsen/trunk/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:106:in
load_specs’
… 14 levels…
from
/Users/chrisolsen/Projects/Rails/chrisolsen/trunk/vendor/plugins/rspec/lib/spec/runner/option_parser.rb:155:in
parse' from /Users/chrisolsen/Projects/Rails/chrisolsen/trunk/vendor/plugins/rspec/lib/spec/runner/option_parser.rb:88:in
create_behaviour_runner’
from
/Users/chrisolsen/Projects/Rails/chrisolsen/trunk/vendor/plugins/rspec/lib/spec/runner/command_line.rb:14:in
`run’
from
/Users/chrisolsen/Projects/Rails/chrisolsen/trunk/vendor/plugins/rspec/bin/spec:3
rake aborted!
Command ruby
-I"/Users/chrisolsen/Projects/Rails/chrisolsen/trunk/vendor/plugins/rspec/lib"
“/Users/chrisolsen/Projects/Rails/chrisolsen/trunk/vendor/plugins/rspec/bin/spec”
“spec/controllers/projects_controller_spec.rb”
“spec/helpers/projects_helper_spec.rb” “spec/models/project_spec.rb”
“spec/views/projects/edit.rhtml_spec.rb”
“spec/views/projects/index.rhtml_spec.rb”
“spec/views/projects/new.rhtml_spec.rb”
“spec/views/projects/show.rhtml_spec.rb” --options
“/Users/chrisolsen/Projects/Rails/chrisolsen/trunk/config/…/spec/spec.opts”
failed
++++++++++
The projects_helper_spec.rb file does exist in the helper dir only
containing the following:
+++++++++
require File.dirname(FILE) + ‘/…/spec_helper’
describe ProjectsHelper do # Helper methods can be called directly in
the examples (it blocks)
end
+++++++++
Thanks in advance for any help.