search for: set_logged_in

Displaying 4 results from an estimated 4 matches for "set_logged_in".

2007 Jan 04
8
Common setup code and naming specifications
Hello! I have a lot of contexts for testing Rails controllers, that must do something like ''session[:logged_in] = true'' in their setup. How can this be refactored? In unit tests I would simply create a LoggedInControllerTest base class, that all my functional tests would derive from. And another small question: In my controller specifications I often have to decide whether to
2009 Jul 23
1
viewer updates for fedora submission
This patchset provides updates to the viewer in preperation for its fedora submission. Included are patches cmd-line parameterizing hostname/user/pass/vm, the addition of a man page, cleanup of the project's structure, and updates to the spec.
2009 Jul 13
0
[PATCH viewer] permit hostname / username / password / vm to be passed in via the cmd line
...(struct message *); @@ -396,8 +394,6 @@ process_message (struct message *msg) write_fn_discard_capture_buffer (); if (curl) curl_easy_cleanup (curl); if (uri) g_free (uri); - if (username) g_free (username); - if (password) g_free (password); set_connected (FALSE); set_logged_in (FALSE); return 1; @@ -424,20 +420,11 @@ process_message (struct message *msg) curl = NULL; if (uri) g_free (uri); uri = NULL; - if (username) g_free (username); - username = NULL; - if (password) g_free (password); - password = NULL; set_connected (FALSE);...
2007 Jan 12
0
First steps with RSpec on Rails
...t tests. But on the other hand I have the feeling, that the specifications don''t test the code as deeply as unit test would have done. But that''s only a vague feeling at the moment. bye, Tobias PS: David - I followed your suggestion and moved the "logged-in"-code to a set_logged_in method, which I simply put into spec_helper.rb, so I don''t need to explicitly include a helper module. Thanks! [1]: http://www.cadsoft.de/vdr/