similar to: 1st attempt at rails testing - could really use some help...

Displaying 20 results from an estimated 300 matches similar to: "1st attempt at rails testing - could really use some help..."

2006 Apr 14
18
RJS Templates & Safari?
Hello, I tried Cody Fauser RJS tutorial (http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates) on my railsplayground dev site and got it to work when using Firefox, but when I tried it on Safari, nothing happens. Then I tried this tutorial - http://rewrite.rickbradley.com/articles/2006/02/06/rjs-templates Similarly, it works fine on Firefox... but with Safari the list is not
2006 Jan 02
5
NoobyQ: how to work with a table of static lookup data??
Hello out there! Nooby question: What''s the "Rails" way to work with tables of relatively static lookup data? Objectively (I''m thinking); I don''t want to hit the DB each time, so for each lookup table, initialize a globally available hash with lable/value pairs... Am I on the right track? How would you do this kind of thing in Rails? Thanks! --
2005 Sep 18
5
NameError: uninitialized constant Addres
I created some scaffolding for an Address model and an Addresses controller. When running the functional tests for the addresses controller, I get this exception: "NameError: uninitialized constant Addres" The exception seems to start from this function: def list @address_pages, @addresses = paginate :address, :per_page => 10 end I''m guessing pluralization bug?
2008 Feb 12
4
Funny behavior with Fixtures... on Ubuntu..
Hey Guys, I''ve got a test class that loads a bunch of fixtures. My understanding is that fixtures are reloaded between each test... and I even have the following two method calls at the top of my test class to make doubly sure... class TaskTest < Test::Unit::TestCase self.use_transactional_fixtures = true self.use_instantiated_fixtures = false When I run my tests
2006 Feb 22
3
Unit test failure - nil object?
I''m following instructions in the Agile book, page 146 for testing an object update to the database. Here''s my code: def test_update assert_equal "jack@smiths.com", @user.email @user.email = "jack@smiths.org" assert @user.save, @user.errors.full_messages.join("; ") @user.reload assert_equal @user.email,
2003 May 22
2
authentication h323
Hi all, i want to use authentication in h323.conf. How can i use it ? In the h323.conf is writed : "If you wish to use Authentication you need to set the appropriate auth keyword above" Where and how i have to set this keyword ??? I've tried "auth=yes",but it does not work. Thanks for Help, Thomas.
2003 Jun 11
1
some sip questions
<P>I write the email again, cause the first one I have had problems while sending it. Here is the email again:</P> <P>Hi everybody,</P> <P>I'm starting with SIP and I wanted to ask some questions, perhaps silly ones, but I hope people can answer me! </P> <P>1) Which codecs may I use? I want the SIP phones to call to the PSTN above all, but I have two
2005 Dec 24
2
Ajax Help: Multiple Updates - ?
Hi! Wondering if anyone can tell me what''s wrong with my code? I''m trying to use the onChange event of a select list to update multiple divs... Agile Web Development with Rails (p. 403) suggests using ":complete => eval(request.responseText) instead of :update" I''ve attempted the following test code: # in the view <select name="plist",
2006 Jan 12
4
has_one relationship problem
I was wondering if anyone could see the error in this littte application I have two models, User and Selection Selection is an extension of the User model so in the User model I have a has_one :selection and in Selection I have a belongs_to :user in my views, i cannot get @user.selection to work but @user works fine. http://www.rafb.net/paste/results/GSBt1e61.html Thanks, r.b
2007 Jan 10
3
ActiveRecord Error?
We spent a big chunk of yesterday hunting down a strange bug in one of our rails apps and created a test project to try out different theories on what was going on. The result so far is a very small test case app that perfectly reproduces the problem. The question is, is there anything *wrong* with what we''re doing here, or is it a problem with ActiveRecord? We''re on rails
2008 Jun 16
5
Re: ssh between DomUs in Xen3.2
Hi Waldirio: I tried telnet earlier from one DomU to another [root@localhost ~]# telnet 192.168.17.201 22 Trying 192.168.17.201... Connected to 192.168.17.201 (192.168.17.201). Escape character is ''^]''. and then it just hangs... So it looks like I can connect to the port from DomU to DomU. But from Dom0 to a DomU [root@gxn-wn2 ~]# telnet 192.168.17.201 22 Trying
2009 Feb 25
4
[Bug 20309] New: Nouveau problem with setting screen resolution on a monitor connected to VGA output on Geforce 7050
http://bugs.freedesktop.org/show_bug.cgi?id=20309 Summary: Nouveau problem with setting screen resolution on a monitor connected to VGA output on Geforce 7050 Product: xorg Version: 7.4 Platform: Other URL: http://rafb.net/p/prrKfp36.html OS/Version: All Status: NEW Severity: normal
2007 Aug 15
8
Shorewall and printing problems in the LAN ( loc ) zone
Guys, Just a quick check. From what i have read in the shorewall site, intrazone traffic is allowed completely by shorewall i.e. there is no filtering or packet size limiting ,etc,etc. I ask this becos after getting shorewall up and running well, someone has complained that they cannot print pdf files larger than 100k at one go but that they have to print one page at a time. Some details;
2008 Mar 03
5
No Internet Connection?
I try to use an ebook reader with wine! It needs to activate itself, so I can open it. When I try to to so I get the error massage from the eBook reader application, that i would be not connected to the internet... witch is silly because I play an MMORPG game with Wine! What could be the problem? Any ideas?
2009 Feb 28
2
rgl persp3d bounding box color problem.
Hi guys, I hit on a problem when I use rgl. Could you try to run the code here in this link and see why the first persp3d gives a red bounding box and the second shows black? http://rafb.net/p/g1i7ur33.html (sorry for not pasting the code here directly but my previous email got filtered by this list so I suspect my code looks like spam to the spam filter) I'm expecting black color to be
2006 Jan 18
4
Ruby "htmlentities" replacement: code review please!
Hi Railers, For some time now I''ve been looking for a decent Rails equivalent of PHP''s "htmlentities" command, because ERB''s html_escape (or more commonly called as just "h", eg. <%=h @somevariable %> ) just doesn''t go far enough for me. Back in PHP land, I actually had an extended version of the htmlentities command to deal with
2008 Jun 12
8
Booting from CD to rescue a DomU
Hi Xen Users, I would like to boot into a knoppix iso on an existing domU. In my config file i have: disk = [ "file:/var/lib/xen/images/machine-10.img,hda,w","file:/mnt/knoppix.iso, hdb:cdrom,hdb,r" ] Can''t seem to boot it though. Do I have to go into the VMs BIOS to tell it to boot it? Cheers CHris _______________________________________________ Xen-users
2006 Apr 21
2
destory Test Case Messes up all tests
I am trying to create unit tests for my users model but when I add a test that destroys a user, that user is not available in any of the other test. If I remove the test that destroys the user all my other tests work again. All the fixtures are suppose be reloaded between tests right? Here is my testcase : require File.dirname(__FILE__) + ''/../test_helper'' class UserTest
2006 Jan 29
1
Works with iframe, but not ajax... ?!?
Hello all, I''ve run into trouble attempting to replicate something in ajax that worked when done with an iframe... In both cases I have a table inside a div that is being periodically refreshed every few seconds... The 1st column of each row in the table contains a link to a DHTML popup menu. I have the popup menu working in the ajax version. The problem is that in the ajax version
2005 Dec 30
5
HABTM with finder_sql problem (Rails bug?)
I''m building an app that needs i18n support across the entire database (i.e. localized attributes). In order to do this I''ve created a special HABTM join table that can be associated with _any_ other table: create table language_strings ( for_table varchar(255) not null, foreign_id int not null, language_id varchar(5) not null, attr_name varchar(255) not null, value text