[rspec-devel] [ rspec-Bugs-15255 ] Views generated incorrectly from script/generate rspec_controller when using modules

noreply at rubyforge.org noreply at rubyforge.org
Thu Nov 1 07:12:16 EDT 2007


Bugs item #15255, was opened at 2007-11-01 12:12
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=15255&group_id=797

Category: rails plugin
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: h a (haarts)
Assigned to: Nobody (None)
Summary: Views generated incorrectly from script/generate rspec_controller when using modules

Initial Comment:
OS: Mac OSX 10.4.10
Rails: Edge (rev 7910)
Rspec: rev 2719
Rspec_on_rails: rev 2719

When using:
./script/generate rspec_controller foo::bar example1 example2
the generated example(1|2).html.erb_spec.rb contains a broken regular expression. Line 10 reads:
response.should have_tag('p', /Find me in app\/views\/foo/bar\/example1/)
while it should read:
response.should have_tag('p', /Find me in app\/views\/foo\/bar\/example1/)
                                                        ^^^^
Note the escape character between foo and bar.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=15255&group_id=797


More information about the rspec-devel mailing list