[rspec-devel] [ rspec-Patches-8316 ] to_param should return a stringified key in resource generator's controller spec
noreply at rubyforge.org
noreply at rubyforge.org
Tue Jan 30 12:24:11 EST 2007
Patches item #8316, was opened at 2007-01-30 17:24
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3151&aid=8316&group_id=797
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Chris Anderson (jchris)
Assigned to: Nobody (None)
Summary: to_param should return a stringified key in resource generator's controller spec
Initial Comment:
Rails expects a string here, raising errors like:
TypeError in 'Requesting /venues using POST should create a new venue'
can't convert Fixnum into String
(eval):19:in `venue_url'
when given a Fixnum param.
This patch simply adds a few quote marks to the rspec resource generator's controller spec template.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3151&aid=8316&group_id=797
More information about the rspec-devel
mailing list