[rspec-devel] [ rspec-Bugs-11161 ] ActionView render_template should return string, not boolean

noreply at rubyforge.org noreply at rubyforge.org
Sun May 27 11:28:44 EDT 2007


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

Category: rails plugin
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Denis Grankin (liquidautumn)
>Assigned to: David Chelimsky (dchelimsky)
Summary: ActionView render_template should return string, not boolean

Initial Comment:
lib/spec/rails/dsl/behaviour/controller.rb:61 overrides render_template method, it returns true and causing error at action_controller/response.rb:73 in set_content_length!. This method expecting body to be String, while override provided TrueClass instead.

lib/spec/rails/dsl/behaviour/controller.rb:63
-true
+''
fixed things

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

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


More information about the rspec-devel mailing list