Displaying 3 results from an estimated 3 matches for "read_template_file".
2007 May 23
2
rspec mocha and controller specs without integrated_views
..._return(true)
@template.should_receive(:render_template).any_number_of_times.and_return(true)
{ |*args|
@first_render ||= args[2]
}
@template.stub!(:find_template_extension_for).and_return("rhtml")
@template.stub!(:read_template_file).and_return("this is fake
content generated by rspec")
end
end
I am getting the following error: undefined method `stub!''
Any plans on fixing this?
Matt
2005 Oct 13
1
Typo Error: wrong number of arguments (1 for 2)
Howdy,
I am trying to run the latest version of Typo and when I hit the admin
login, I get the error below.
Anyone else seen this?
H
ArgumentError (wrong number of arguments (1 for 2)):
/lib/renderfix.rb:20:in `read_template_file''
/lib/renderfix.rb:20:in `render_file''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1.2471/lib/action_controlle
r/base.rb:637:in `render_file''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.9.1.2471/lib/action_controlle
r/base.rb:579:in `render_with_no_l...
2005 Jun 08
7
Rails/lighttpd: Changes to controller not being seen?
This is a weird one:
My app works fine on our local box with webrick. After uploading to TxD
server, the app starts behaving weirdly. I make some edits to one of
the controllers and my changes don''t seem to be going through. So I go
ahead and change the name of the controller file. The page loads
without error. I figure maybe I''m in the wrong directory, so I change
the