search for: testhelpers

Displaying 15 results from an estimated 15 matches for "testhelpers".

Did you mean: testhelper
2005 Nov 06
1
mixins not reloaded as expected?!
Hi guys, in development mode a module mixed into a helper class seems not to be reloaded inside app/helpers: class TestHelper include EvenMoreHelp #foo end module EvenMoreHelp # bar end the contents of #foo get refreshed, but not #bar... is there a way to fix that behaviour. I intend a full reload in development mode for obvious reasons. Regards Peter
2009 Dec 27
1
testhelp/maketree.py is GPLv2
Hi, I have a licensing question: I'm curious if the fact maketree.py is GPLv2 causes any trouble for the rest of rsync (which is GPLv3 or later). -- yours, Julius Davies 250-592-2284 (Home) 250-893-4579 (Mobile) http://juliusdavies.ca/logging.html
2006 May 31
1
SVN revision 218: errors and failures under win32.
Zed: 1) Error: test_more_web_server(HandlersTest): EOFError: end of file reached I solved this changing the following lines in test_handlers.rb:75-76 res = hit([ "http://127.0.0.1:9998/", "http://127.0.0.1:9998/test", I cannot solve the other failures: 1) Failure: test_header_is_too_long(WebServerTest) [./test/test_ws.rb:93:in
2011 Dec 05
1
How to extend common helper methods to view specs?
...ec/rails'' require ''webrat'' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f} RSpec.configure do |config| config.include Devise::TestHelpers, :type => :controller config.extend ControllerMacros, :type => :view config.extend ControllerMacros, :type => :controller config.before(:suite) do DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with(:truncation) end config.before(:each) do DatabaseCle...
2005 Mar 15
0
[Bug 2455] New: rsync --daemon segfaults if "log file = <file>" dir does not exist
https://bugzilla.samba.org/show_bug.cgi?id=2455 Summary: rsync --daemon segfaults if "log file = <file>" dir does not exist Product: rsync Version: 2.6.3 Platform: Sparc OS/Version: Solaris Status: NEW Severity: normal Priority: P3 Component: core AssignedTo:
2002 Mar 19
1
(fwd from uke@jeremy.org) thanks and patch
Jeremy, I'm glad you like rsync. Why does your encryption program not produce a file of the same size every time it is run on the same input? I can see what the patch does, but I'm having a bit of trouble understanding whether it would be generally useful. -- Martin -------------- next part -------------- An embedded message was scrubbed... From: jeremy bornstein
2003 Jun 07
1
patch to rsync to add options for pre- and post-transfer commands
In case others find this of value, I wrote a patch to rsync 2.5.6 to give rsync in --daemon mode the ability to run a pre-transfer and post-transfer command. These options handle our need to prepare a server to receive files and to do some processing after receiving files. The options for /etc/rsyncd.conf are pretransfer script = /some/command/to/run posttransfer script =
2007 Dec 22
12
error when installing on jruby (fastthread dependency)
I''m running jruby trunk which has integrated rubygems 1.0.0 and when I try and install mongrel with gem it blows up when the fastthread dependency tries to do a native compilation. I couldn''t find a copy of the gemspec in the svn checkout but looking at the one installed when gem installing mongrel didn''t show any platform differentiation. There is platform
2006 Jul 01
0
Fun with Mongrel and cygwin.
On the Mongrel FAQ forum, Josh Wehner was having problems with cygwin (don''t know if he fixed it). http://rubyforge.org/forum/forum.php?thread_id=6978&forum_id=5450 Due that, I manage to install cygwin, ruby and rails on my humble little computer, it compiled worked ok (taste like *nix, so I felt a bit off-road running this). Anyway, tried to pass test for mongrel, and still get 1
2008 Mar 11
0
Facebooker-talk Digest, Vol 5, Issue 12
...al_app_login fb_login_as :facebooker num_of_members = Member.count facebook_request :get, :home assert_response :success assert_equal num_of_members, Member.count assert_session_user_data_exists end The code is fairly simple: module Facebooker module Rails module TestHelpers # user facebook id for facebook_request def set_user_facebook_id(fb_id) @fb_id = fb_id end # makes a request as if it was from facebook. Need to set_user_facebook_id() first # so it knows whom to send the request as. def facebook_request(http_verb, act...
2008 Mar 11
0
Facebook_request in unit tests
...ok_internal_app_login fb_login_as :facebooker num_of_members = Member.count facebook_request :get, :home assert_response :success assert_equal num_of_members, Member.count assert_session_user_data_exists end The code is fairly simple: module Facebooker module Rails module TestHelpers # user facebook id for facebook_request def set_user_facebook_id(fb_id) @fb_id = fb_id end # makes a request as if it was from facebook. Need to set_user_facebook_id() first # so it knows whom to send the request as. def facebook_request(http_verb, action, pa...
2013 Mar 20
2
Rspec + Devise + BaseController
...quot;when admin is not logged in" do it "redirect admin to sign_in path" do get :index response.should redirect_to new_admin_session_path end end end end ##################################################### I''ve already inclueded Devise::TestHelpers on my spec_helper.rb and I''m getting this error when running this spec: ##################################################### Admins::BaseController before_filter#authenticate_admin! when admin is not logged in redirect admin to sign_in path (FAILED - 1) Failures: 1) Adm...
2011 Apr 15
7
warning: toplevel constant XYZ referenced Admin:XYZ
I have an odd problem. I got controllers in a namespace and controllers outside of the namespace. For example, I have a PagesController and a Admin::PagesController. When I run rspec from the top, tests pass and I get the following warning: spec/controllers/admin/pages_controller_spec.rb:4: warning: toplevel constant PagesController referenced by Admin::PagesController This makes no sense. I do
2002 Nov 11
0
Regular Expression support
I have added regular expression support using a POSIX implementation. The patch (against 2.5.5) is attached. The implementation is simple and follows the same mechanism that is implemented for normal searches. I added these command line arguments: --rexclude=PATTERN exclude files matching regexp PATTERN --rexclude-from=FILE exclude regexp patterns listed in FILE --rinclude=PATTERN
2007 Sep 22
0
rsync build on IA64 using icc
I got numerous warnings when building rsync on IA64 (Itanium-2) using Intel C/C++ compiler (see attached). Is this expected? Thanks, Michael -------------- next part -------------- Script started on Fri 21 Sep 2007 06:14:05 PM BST ~/src$ ls -alt total 222884 -rw-r--r-- 1 mccssmb2 mcc101 0 Sep 21 18:14 build_rsync drwxr-xr-x 8 mccssmb2 mcc101 4096 Sep 21 18:14 . -rw-r--r-- 1