Displaying 1 result from an estimated 1 matches for "mailertest".
2007 May 30
0
DRYing up controller tests and mailer tests using superclasses
...xplicitly setup the @request and @response objects
anymore, we should probably show how to use them in the dummy test_foo
method. Could be something like:
def test_foo
@request.host = "foo.bar.com"
assert true
...
end
* The creation of the method_added-method in ControllerTest and
MailerTest should probably be DRYed up and put into RailsTest.
In any case, feedback on this is appreciated.
Thanks!
Ciao!
Florian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post...