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

noreply at rubyforge.org noreply at rubyforge.org
Sun Nov 18 23:38:02 EST 2007


Bugs item #15255, was opened at 2007-11-01 07: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.

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

Comment By: Chad Humphries (spicycode)
Date: 2007-11-18 23:38

Message:
Moved to http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/74-15255-views-generated-incorrectly-from-script-generate-rspec_controller-when-using-modules

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

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