Forum: RSpec Template Scaffold syntax error

6d2558e43fab661941c6586c98b0b4bc?d=identicon&s=25 Nathan Biles (nathanbiles)
on 2013-09-04 18:00
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!
0fe85dcd335532c4537c8bbac75dbf65?d=identicon&s=25 Atish kumar (aatish)
on 2013-10-23 12:19
Nathan Biles wrote in post #1120671:
> 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!

hello Nathan,

it is clearly showing the syntax error along with line where this error
is occurring , check the syntax, & may you have somewhere missing '<' or
it is unnecessary present.
This topic is locked and can not be replied to.