similar to: const_missing: uninitialized constant Test when running unit tests

Displaying 20 results from an estimated 6000 matches similar to: "const_missing: uninitialized constant Test when running unit tests"

2006 Jan 08
0
uninitialized constant Test
I recently upgraded to Rails 1.0 and started a new project. I''ve started writing some tests, but when I run rake, I just get the following... Amnesia:~/Development/Rails/pog shad$ rake (in /Users/shad/Development/Rails/pog) /usr/bin/ruby -Ilib:test "/usr/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/rake_test_loader.rb" "test/unit/pog_test.rb"
2007 Dec 24
1
Uninitialized constant in integration test
I am seeing weird issues when trying to create integration tests. Here is a very simple example of something that is failing. The assert_redirected_to, and other methods, fail with this or similar exceptions. I have tried requiring both ''application'' and ''listings_controller'', but neither solves this problem, although the exception changes. Anybody know
2009 Nov 14
1
`const_missing': uninitialized constant CGI::Session (NameEr
Hi all... I am facing the following error "`const_missing'': uninitialized constant CGI::Session (NameError)" While running "script/generate controller abc" Having any idea???? Thanks all..... -- Posted via http://www.ruby-forum.com/.
2010 Jun 21
1
in `const_missing': uninitialized constant CGI::Session
Hi, I have an application which previously running on rails 2.2.2. I just upgraded the rails to 2.3.8. After that I tried to start the server I got the following error:- "/usr/local/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:105:in `const_missing'': uninitialized constant CGI::Session (NameError" Anyone have any idea How to solve this
2006 Aug 17
0
`const_missing'': uninitialized constant
Hi all, still the same error, when accessing my model childs on the site5 server ....(Person.infogroups.first.infoattributes, (a Person has_many infogroup which has_many info_attribute)) I double check my config and the server and it is exactly the same (except for rubygem which is for me 0.8.11). ==>>ERROR
2008 Feb 09
0
Error const_missing': uninitialized constant Rails::Plugin::Err (NameError)
I have installed some plug ins like will_paginate and classic_pagination. After this I have came across this error /var/lib/gems/1.8/gems/activesupport-2.0.1/lib/active_support/ dependencies.rb:478:in `const_missing'': uninitialized constant Rails::Plugin::Err (NameError) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the
2008 Mar 14
3
`const_missing'': uninitialized constant Spec::Rails
Hi! I''m experiencing such error while running simple model rspec just to make sure everything is working. $ script/spec spec/models/site_user_spec.rb /var/lib/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:100:in `const_missing'': uninitialized constant Spec::Rails (NameError) from
2007 Jun 18
0
Phoenix Rails Users Group
What: June Phoenix Rails Users Group When: Tuesday, June 19th, 6:30 pm - 9pm Where: Office of Integrum Technologies 290 East El Prado Court, Chandler, AZ (north-east of Arizona and Warner) Topic: Overview of alternative Ruby web frameworks ---- Please join us Tuesday evening at 6:30 pm for the Phoenix Rails Users Group. This month Josh Knowles and Jade
2005 Mar 30
0
Help - dependencies.rb - `const_missing': uninitialized constant
I''m trying to get this has_and_belongs_to_many join to work (re: my post from yesterday). I''m getting an error I can''t seem to get by. Help? I now have the following tables: ORGANISATIONS: id (primary key) name REPRESENTATIVES id (primary key) name ORGANISATIONS_REPRESENTATIVES organisation_id representative_id My models are: class Organisation
2006 Jul 13
0
AZ Ruby on Rails Community
If you are interested in learning about Ruby on Rails or are currently doing Ruby on Rails development this is a meeting you will want to attend. We will be having the first meeting this Wednesday July 19th at Molly Brannigan''s located at Val Vista and the US 60. Free wireless connectivity will be provided. The first part of the meeting will consist of introductions and feedback
2006 Feb 20
1
Object finalization help
Heya guys, This one is bothering me as its evading my eye. I''m trying to set a callback on finalization of an object, ie: a finalizer set through a plugin to the model. Example In Plugin: def acts_as_goat class_eval do ObjectSpace.define_finalizer(self, lambda {self.conn.close} ) end end class UberGoat < ActiveRecord::Base acts_as_goat end Is this the correct way to set
2006 Feb 02
4
uninitialized constant Test (NameError)
I have three Rails apps on my laptop. Two can runs tests just fine. The third generates this error when I try to run any tests: > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/ > active_support/dependencies.rb:200:in `const_missing'': > uninitialized constant Test (NameError) > from ./test/unit/../test_helper.rb:5 > from
2006 Aug 16
0
`const_missing'': uninitialized ..
bad night ! my db model is like: person has many clients, and clients has many infoattributes so in my computer with script/console I can do aPerson.clients.first.rooms => and it is ok BUT in the new server which use rails 1.1.6 I have a `const_missing'': uninitialized constant Infoattribute Any idea ? arnaud
2006 Feb 20
0
Object Finalizers help
Heya guys, This one is bothering me as its evading my eye. I''m trying to set a callback on finalization of an object, ie: a finalizer set through a plugin to the model. Example In Plugin: def acts_as_goat class_eval do ObjectSpace.define_finalizer(self, Proc.new {self.conn.close} ) end end class UberGoat < ActiveRecord::Base acts_as_goat end Anyways, it seems to not
2006 Jun 16
5
BackgrounDRb / Testing Error: uninitialized constant BackgrounDRb
I''m digging into BackgrounDRb and having some problems testing a worker class. The following line in my test (created from script/generate worker Test) throws an error: worker = TestWorker.new(:test_string => "testing...") Error: /activesupport/lib/active_support/dependencies.rb:123:in `const_missing'': uninitialized constant BackgrounDRb (NameError) from
2006 Jan 09
3
Include with two references of one model of the same table
Hey guys, I just came across this oddity, not sure what to make of it yet, but I think it might be incorrect behavior. When doing a @inst.find(:all, :include => ["hometeam", "awayteam"] ...) hometeam and awayteam are two references from a belongs_to that is of the same model and of the same table. I will get a pgerror stating that "matches", which is
2007 Jul 17
2
Plugin Problems: const_missing: uninitialized constant Rails::Initializer::CalendarHelper
I''m receiving this error when I try to start Mongrel on my local machine. I''ve checked my Rails, Rake, and Gem versions, as well as all of the other gems I''m using. http://pastie.caboo.se/79503 The situation is that I simply started an empty Rails app and generated an empty plugin. I added the plugin into the ActionView::Base class in init.rb and really only added one
2006 Jun 14
5
uninitialized constant error after scaffold on new Windows XP environment
I am attempting to get a working Rails programming environment setup working under XP with MySQL, RadRails and Webrick. I have been using my PowerBook but need to working on Windows environment too. I have basic functions of Ruby and Rails going. I created a really simple table and generated the scaffolding. The server starts just fine. I can browse the database succesfully in RadRails. The issue
2006 Mar 02
2
Unit tests, salted hash login
Hello, I am having some trouble running the unit tests for the salted has login generator. I am a bit new to both ruby and rails so I am having a little trouble deciphering the error message I get when running ''rake test_units''. Up till the point where I try to run the unit tests I have followed the quick start guide for the salted hash login generator
2006 Feb 28
10
Salted hash login, postgresql, unit tests
Hello, I have tried to install the salted hash login generator by following the quick start guide at: http://wiki.rubyonrails.com/rails/pages/SaltedLoginGeneratorQuickstart. Everything seems to work fine until I try to run the unit tests by doing ''rake test_units'', then I get the following error message: <error-message> [brasse@keso login-test]$ rake test_units (in