search for: test_invitation_requests

Displaying 1 result from an estimated 1 matches for "test_invitation_requests".

2007 Nov 02
0
DATE_FORMATS and functional tests
...a view template with .to_s(:msc) fails with something like: ActionView::TemplateError: wrong number of arguments (1 for 0) On line #20 of app/views/admin/invitation_requests.rhtml 20: <td><%= invite.created_at.to_s(:msc_short) %></td> My functional test method is: def test_invitation_requests login_as :quentin get :invitation_requests # <--- Fails here assert_response :success assert assigns(:invites) end My test_helper.rb file has the following at the the top: ENV["RAILS_ENV"] = "test" require File.expand_path(File.dirname(__FILE__) + &q...