Since the trace isn't pointing to any of your code, it's a bit
difficult to track this down. However, the code it is pointing to
looks like it is coming from a view: 

       <% module_namespacing do -%>
       ^

So I would do a search for 'module_namespacing do' within your
project. Your IDE may help you or you can use find from the top of
your rails project: 

find . -name "*.erb" -print | xargs grep "module_namespacing do"

If that doesn't find it, you may need to try the same sort of thing on
any gems you use. Hopefully it won't come to that.


Quoting Nathan Biles <li...@ruby-forum.com>:
> I inherited a project from another developer.
> 
> I ran rspec . and I and getting the following error and I need help
> figuring it out asap.
> 
> ~/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in
> `load':
> {application-path}/lib/templates/rspec/scaffold/controller_spec.rb:21:
> syntax error, unexpected '<', expecting end-of-input (SyntaxError)
> <% module_namespacing do -%>
>  ^
>   from
> ~/rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in
> `block in load_spec_files'
>   from
> ~/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in
> `each'
>   from
> ~/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in
> `load_spec_files'
>   from
> ~/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:22:in
> `run'
>   from
> ~/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:80:in
> `run'
>   from
> ~/.rvm/gems/ruby-2.0.0-p247/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:17:in
> `block in autorun'
> 
> 
> Thank you for your help!
> 
> -- 
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

-- 
Cynthia N. Kiser
c...@ugcs.caltech.edu
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to