similar to: Tests creating output?

Displaying 20 results from an estimated 700 matches similar to: "Tests creating output?"

2006 Jan 25
2
Testing a model method - private method?
Hi everyone, I''m trying to test a method in my model: def html_email return "<a href=''mailto:" + self.email + "''>" + self.email + "</a>" end The method works ok. But when I try to test it: assert_equal ("<a href=''mailto:" + people(:staff1_person).email + "''>" +
2010 Jan 18
3
The role of self and :: within a method of a model
Hey all, I understand that a def self.abc, for example, is a class method, which allows you to call its contents by just referencing model.abc (rather than model.new.abc). However, what is its role when located in a method inside a model like in the code below. Also in the code below, you see :: located in the method. Isn''t that used for modules and namespaces? If so, why is it located
2003 Feb 22
1
SIP register= bug?
I am seeing some very peculiar things in the routines that REGISTER my * server with several accounts. I saw this on my console: . . . NOTICE[5126]: File chan_sip.c, Line 1878 (sip_reg_timeout): Registration timed out, trying again NOTICE[5126]: File chan_sip.c, Line 1878 (sip_reg_timeout): Registration timed out, trying again NOTICE[5126]: File chan_sip.c, Line 1878 (sip_reg_timeout):
2000 Nov 22
1
Configuration Trouble
I have succeeded in getting two tinc1.0pre3 hosts to connect, but I can't ping one from the other. I can ping the local tap interfaces. tcpdump shows that icmp echo requests are received by the other host, but no replies are sent. The two hosts are North and South. It is the same pinging North to South and South to North. The hosts are configured as follows: South: Debian 2.2
2015 May 06
2
Using ldap to check last password modification date
Thanks Rowland. That makes sense :-) BTW, Is the following code enough to change the password with python-ldap? con.sasl_interactive_bind_s("", sasl_auth) mod_attrs = [ (ldap.MOD_REPLACE, 'unicodePwd', new_password), (ldap.MOD_REPLACE, 'unicodePwd', new_password) ] con.modify_s('CN=%s,CN=Users,DC=lxc,DC=com % username, mod_attrs) Thanks! Regards, Norberto
2010 Aug 17
2
[Form] Method POST & PUT problem
Hello, I have a form that should be a POST method, but Rails insist to put a hidden field "_method" that has the value "put" does anyone knows why? Thanks, David Sousa Controller: ------------------------------- def new @user = @current_user end ------------------------------------------- View: ------------------------------------- <% semantic_form_for @user,
2015 May 07
0
Using ldap to check last password modification date
On 06/05/15 15:59, ?? wrote: > Thanks Rowland. That makes sense :-) > > BTW, Is the following code enough to change the password with python-ldap? > > con.sasl_interactive_bind_s("", sasl_auth) > mod_attrs = [ > (ldap.MOD_REPLACE, 'unicodePwd', new_password), > (ldap.MOD_REPLACE, 'unicodePwd', new_password) > ] >
2006 Apr 04
3
model validates twice in tests, produces duplicate errors
In my unit tests for my User model, I''m testing some validation cases. What is really strange, and driving me crazy, is that in the unit tests, it seems like the save method is causing my validations to execute twice, and produce duplicate error messages. This is making my tests fail (because I''m checking for the number of errors that I expect). In the web browser, only one error
2010 Sep 07
0
Spoke too soon - problems with logons using new PDC
Hi - Linux: Ubuntu 9.10 all updates applied as of 9/5/2010. Samba: 3.4.0 smb.conf global section: [global] netbios name=blahblahblah sever string=Domain Master workgroup=blahblahblah encrypt passwords=true wins support=yes domain master=yes local master=yes preferred master=yes os level=255 security=user domain logons=yes passdb backend=smbpasswd logon script=%U.bat add machine script=sudo
2003 Nov 07
0
sipdtmfmode problem
Greetings. I'm having a bit of a problem using the sipdtmfmode app. I have two incoming paths to * from pstn via FWD that use differing dtmfmode. IPKall wants rfc2833, libretel wants inband. If I set dtmfmode= in the fwd peer config in sip.conf each works seperately, and I'm trying to use gotoif and sipdtmfmode to switch based on the CID calling. Output seems to indicate sipdtmfmode
2005 Mar 23
1
OT Anybody any comments?
List, from the Dutch "Computable" paper ICT tabloid and daily ICT subscribable mailing-list and so-called verwittigingsbrief/ad hoc news letter, partly translated into English by me ;) Dutch readers only: http://www.computable.nl/nieuws.htm?id=524000 "Manage Windows clients from Linux servers" blahblahblah Zenworks 7, the latest release of Novell's sysadmin suite".
2012 Apr 11
3
Lion OS X tinc issues.
Hi Folks, This has been driving me nuts all day. I've been unable to google myself out of it. Maybe someone here can help? I followed the instructions from: http://www.tinc-vpn.org/examples/macbook-install/ Ubuntu server <-> Ubuntu server works just fine with the same config. Ubuntu server <-> Mac laptop not so much. The error I'm getting is: 2012-04-10 21:48:44
2006 Jan 06
2
Re: Some advice on DB modeling
I have more or less the same problem. I''m trying to build a system where users can enter their friends. But the solutions seems not to work for me. I used same sql: CREATE TABLE `friends` ( `user_id` int(11) NOT NULL default ''0'', `friend_id` int(11) NOT NULL default ''0'', KEY `user_id` (`user_id`), KEY `friend_id` (`friend_id`),
2001 Mar 10
2
Using smbpasswd in scripts!
Hello! I need to use smbpasswd in scripts. I want to changing smbpassword in script. There is an option -s in smbpasswd so I tried: echo new_password | smbpasswd -s username but without success.... If someone knows how change password - please e-mail..... Best Regards -- Bartlomiej Solarz-Niesluchowski, Administrator WSISiZ e-mail: B.Solarz-Niesluchowski@wsisiz.edu.pl 01-447 Warszawa, ul.
2013 Jan 25
0
No sound on any stream.
Brad, now I see that there is the Mount Point, but no audio is heard. Maybe the name of the Mount Point (66.228.49.182.ogg) is not correct ?? ... Try to rename the Mount Point. I think you should put blahblahblah.ogg, with only one point (between the extension "ogg" and the rest of the name): <mount> <mount-name>/blahblahblah.ogg</mount-name>
2014 Apr 04
3
Samba AD - Unix attributes problem
Hi, I've recently started using Samba4 (Sernet binary, 4.0.16 on Centos 6) as PDC. I would like to assign unix attributes using MMC console "Active Directory Users and Computers" however every time I'm trying to do this I get an error "Unable to modify the object property values. Check your credentials. There could be a network problem blahblahblah".. I've
2006 Jun 08
2
LoginEngine: undefined method `generate_security_token''
Hi there, I''m trying to set up LoginEngine with Rails 1.1.2 on Ruby 1.8.4 on a Windows XP box and the log is reporting: undefined method `generate_security_token'' for #<User:0x39436a0> Rendering user/signup Rendered user/_edit (0.01600) Rendered user/_password (0.01600) Rails appears to be failing on key = @user.generate_security_token in user_controller.rb in the
2006 Mar 08
5
object.save is not creating an insert statement
I have a model for a task class. When I try to save a task, for some reason no INSERT statement is being generated. Here''s the pertinent part of the development.log: ------------------------------------ Processing TasksController#create_fromProject (for 70.247.24.238 at 2006-03-08 14:20:30) [POST] Parameters: {"commit"=>"Create",
2005 Jul 13
0
Testing failing
So I''m trying to be a good agile programmer and write unit tests for my objects, but I''ve got a test I just can''t keep from failing. I have a profile object that I just added username and hashed_password to. I used the method in the Rails book to handle hashing the password. My code is strait out of the book. The whole object is at the end of this email. I want
2011 Nov 30
1
Applications don't seem to start
Every application I start it displays a starting blahblahblah icon in the taskbar and then it simply goes away without giving an error or anything. Is there something I can check or a log that would help me figure out what is going on? I am running Ubuntu 11.04 64 bit with Wine 1.3.33