similar to: Unit tests - NilClass problem

Displaying 20 results from an estimated 100 matches similar to: "Unit tests - NilClass problem"

2006 Jul 02
2
NoMethodError in Unit Test - Rails Newcomer
I''m working on user authentication system to get familiar with rails, and have basically solved most of my apps problems till now. I keep getting the NoMethodError, and can''t understand why. Model: customer.rb class Customer < ActiveRecord::Base ... def self.password=(pass) @password=pass salt = Customer.random_string(10) if !salt? self.hashed_password =
2009 Apr 06
3
After Rails 2.3.2 upgrade: superclass mismatch for class TestCase (TypeError)
I upgraded a working app from rails 2.1 to 2.3.2. Now when I run rake test:units I get this error: /usr/lib/ruby/gems/1.8/gems/ activesupport-2.3.2/lib/active_support/test_case.rb:17: superclass mismatch for class TestCase (TypeError) I generated a new test app and all tests run OK. For the upgrade I ran rake:update and renamed the class in test_helper to ActiveSupport::TestCase. Also renamed
2006 Feb 15
5
Formating @content_for_layout
Hi all, I sent a message earlier, so forgive me if you have already read this (I got some cryptic message in German about how my e-mail was not read?). Anyway, I was just wondering if there was any way to format the html that is output using <%= @content_for_layout %> I want to use something like the PHP Beautify. I guess I could write my own, but I was hoping that Rails already had
2006 Mar 01
2
Method Calling Problems
Hi all! I am attemping to call a method inside of my LeviUserController named show_userland from my LeviInterfaceController class. No matter how I do it, I keep getting some type of error. If I make the method a class method, then my render_partial inside of show_userland can''t be found. If i call it using @luser = LeviUserController.new; @luser.show_userland; I get an error with a nil
2005 May 12
3
Dovecot-stable rpms
I've been searching, and I can't find any rpms of dovecot stable for RHEL 4. Does anybody know where I can get one? Ever since we went from IMAP-UW to Dovecot, we've been having frequent problems with mbox corruption, and I've read that 1.0 fixes many of those types of problems. Has anybody else found an rpm for RHEL 4 of any Dovecot greater than 1.0? -- Topher Fischer System
2006 Feb 14
3
Ruby equivalent to PHP Beautify?
Hi all, I am working on a project in Rails for my senior seminar class. I am fairly new to Rails but I have done a major project, so I know a little. The one thing I cannot find however is a way to make the html code that is output look any cleaner. So, I was wondering if there was a function/library/extension that worked like PHP beautify. Thanks for your input in this matter. I am sure I will
2011 May 02
2
Re: Caution when deleting .wine ...
jjmckenzie wrote: > On Mon, May 2, 2011 at 1:16 AM, topher.becca <wineforum-user at winehq.org> wrote: > > > > > When I entered 'rm -rf ~/.wine' it says: > > rm: /Users/christopherwelch/.wine/drive_c/Program Files/Inbox Toolbar: Permission denied > > rm: /Users/christopherwelch/.wine/drive_c/Program Files: Directory not empty > > rm:
2006 Aug 10
4
mongrel and comet "implementation"
Hey folks, I was playing around with adding Comet (a javascript technology used to receive events without AJAX polling) support to Mongrel. More info about Comet here: http://en.wikipedia.org/wiki/Comet_%28programming%29) I sort of got it working. My code is available at: http;//cyll.org/comet.tar.gz Run comet.rb from inside the directory and point your browser at: http://localhost:5555/ The
2006 Aug 08
2
Testing Inconsistencies - ruby works rake fails
I''m getting some very weird results when testing my system. If I run my unit tests using => ruby \test\unit\<filename.rb> each of the tests pass. If I run => rake test_units I get several failures, and they all have to deal with the same issue. For instance I''m getting => ActiveRecord::StatementInvalid: RuntimeError: ERROR C42P01 Mrelation
2011 May 02
2
Re: Caution when deleting .wine ...
David Shaw wrote: > > At the risk of getting flamed, you yourself have often told people to > 'rm -rf ~/.wine' :-) > > David Shaw When I entered 'rm -rf ~/.wine' it says: rm: /Users/christopherwelch/.wine/drive_c/Program Files/Inbox Toolbar: Permission denied rm: /Users/christopherwelch/.wine/drive_c/Program Files: Directory not empty rm:
2006 May 09
6
Still Stumbled on First things in trying RubyOnRails
Still Stumbled on First things in trying RubyOnRails http://www.digitalmediaminute.com/article/1816/top-ruby-on-rails-tutorials http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html http://instantrails.rubyforge.org/tutorial/index.html http://rails.homelinux.org/ I had tried the first of the top 12 tutorials and got stuck after adding a new field ?category_id?in the table recipes,
2006 Apr 01
4
Quick question. Thunderbird/Outlook = no love.
Are there any how-tos or documentation on getting dovecot to be thunderbird/outlook friendly? Thunderbird can connect about 20% of the time, the other 80% of the time, I Get the error: "You may need to connect via SSL or TLS. Please check the account settings for your mail server." I have my thunderbird setup to do TLS. I've put it on the TLS if available as well, still no love.
2005 Dec 30
3
NewbieQ - Relational tables
Hi all, I''m going nuts on a very simple issue. I know what I want but don''t know what to tell rails to do so. I have a very common setup for managing contacts. A companies table and a contacts table. As you''ve guessed it''s a one to many relationship. The database is setup with the appropriate foreign keys, the models have been generated and I added the
2006 Mar 01
4
graphics rendering
Hey Has anyone got a graphics server running alongside ruby on rails? Kind of new to graphics rendering on a web server, so some general tips on a successful direction to go in would be great. I need it for automatic rescaling of images, similar to flickr. Thanks, RGC -------------- next part -------------- An HTML attachment was scrubbed... URL:
2004 Jul 28
2
Building Samba 3.0.5 on HP-UX 11.11
First -- to avoid the common answers to the 'building on HP-UX' questions that seem to be available on the list and the web: 1) using the depot from the Porting Center won't work, it's well downrev of 3.0.5 and I need to get the new security fixes (so that the security team will go back into it's dark dank den and fear not for the security of our environment) 2) samba.org
1998 Nov 04
3
simple questions about R
A few simple questions from a novice R user. (I am running R version 0.62.3 Beta (Sept 8, 1998) under Windows NT.) 1) How do I time the execution of a function/program in R for Windows? Is there the equivalent of a dos.time function? 2) Can anyone send me details on the random number generator used by R (period, etc.). Also, why is it different from the SuperDuper RNG in S? 3) Will there
2008 Jan 17
5
unusual challenges speccing external software
This is something I''ve come up against twice. First, I have an interactive editor which calls vi, emacs, or TextMate (etc.) via Unix, and then loads the file handed to the editor back into IRB after it''s edited and saved. I guess that makes it a special case of a more general question, which is how do you spec external processes, with a slightly more complicated version of the
2006 Apr 16
5
Newbie Problems with pluralization
Hi, I have a many to many relationship incorporating the following tables: taxes --> taxes_tax_groups --> tax_groups I have a model named tax with the following declaration: has_and_belongs_to_many :tax_groups and I have a model named tax_group with the following declaration: has_and_belongs_to_many :taxes I am attempting to run the following unit test: require
2008 Apr 25
6
ActionMailer
Hi all, I need a help. I have got a user registration form, where the user signs up and then an activation link is sent to the user email id for activating his/her account. Now I need to send an another email to the user, only after he logs in for the first time in my site, then the second email should be sent. Can anybody give me some suggestion on how to do it ?? NB: When the user clicks on
2011 May 02
5
Is there a difference ...?
Doh123, how is running a program off an NTFS partition asking for trouble? Ntfsprogs seems to handle it just fine. I know that NTFS doesn't let you mark a file as executable, and that the filesystem is susceptible to fragmentation, but you should just be able to tell it to run rather than display and be good. It shouldn't cause destruction. I think there might even be an NTFS defrag tool