similar to: Test is not a module (TypeError)

Displaying 20 results from an estimated 10000 matches similar to: "Test is not a module (TypeError)"

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
2013 Jan 04
3
AIX: TypeError: unsupported operand type(s) for +: '_hashlib.HASH' and 'str'
Hi there! We're trying to compile Samba 4.0.0 on a fresh install of AIX 6.1 (6100-02-01-0847), with Python RPM's from perzl.org installed into /opt/freeware. We're also using XLC 12.1. Unfortunately, we can't even run ./configure, as we're getting errors from the waf system. Here's what we get: bash-4.2# pwd /admin/tst/build/samba-4.0.0 bash-4.2# ./configure --help
2004 Dec 09
3
fixture problem, TypeError: nil is not a symbol
When I run rake against Rails 8.5 to test unaltered model tests with yaml fixtures I get the error and stack trace reproduced below for every one of my model objects. Has anyone seen something this before? Any idea what could be going on here? The following ruby-talk thread may or may not be relevant: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/95301. Thanks much,
2006 Feb 13
3
TypeError
What might cause this error? TypeError (singleton can''t be dumped): /usr/lib/ruby/1.8/pstore.rb:159:in `dump'' /usr/lib/ruby/1.8/pstore.rb:159:in `dump'' /usr/lib/ruby/1.8/pstore.rb:138:in `transaction'' /usr/lib/ruby/1.8/cgi/session/pstore.rb:90:in `update'' /usr/lib/ruby/1.8/cgi/session/pstore.rb:97:in `close''
2007 Feb 05
0
superclass mismatch for class OrderedOptions (TypeError)
ngw@adreadedsunnyday ~/projects/hotchalk$ script/server ./script/../config/boot.rb:28:Warning: require_gem is obsolete. Use gem instead. /opt/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:606: superclass mismatch for class OrderedOptions (TypeError) from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/ custom_require.rb:27:in `gem_original_require'' from
2007 Aug 09
0
TypeError: $_ value need to be String (nil given)
Hello all, I am trying to run a unit test in a Rails project of mine (Rails 1.2.2, Ruby 1.8.4 (2005-12-24) [i486-linux]), and am running into the following error: 1) Error: test_pattern_splits(PatternSplitTest): TypeError: $_ value need to be String (nil given) /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_record/ validations.rb:74:in `split''
2006 Nov 11
0
Error when creating a new worker -- "Text is not a module - (TypeError)"
Hello everyone, I''m stuck with this very obscure error whenever I try to create a new worker. My worker is a subclass of BackgrounDRb::Worker::RailsBase, and if you follow the stack trace below, you can tell that the error occurs while trying to load Rails. There is no problem starting up the server, by the way. Does anyone have any idea what might be causing this? I didn''t have
2008 Jun 30
1
[PATCH] tools/python: fix TypeError for 17903:0728459b3c8d
Hi, If `hda'' is used in a domain config file and domain-0 has /dev/hda, creating the domain failed by TypeError: File "//usr/lib/python/xen/xend/server/blkif.py", line 84, in getDeviceDetails (device_path, devid) = blkif.blkdev_name_to_number(dev) TypeError: unpack non-sequence Signed-off-by: KUWAMURA Shin''ya <kuwa@jp.fujitsu.com> -- KUWAMURA
2009 May 12
0
RJS Error: TypeError: while using active scaffold
Hi, I get an unexpected error because i havent do any chnages in any javascript files, after installing active scaffold. Before 1-2 days my application is working fine but from yesterday i got the error for RJS as below while i tried for show action. RJS error: TypeError: $("#console__private_messages-messages") is null $("#console__private_messages-messages").html("\n
2011 Mar 11
2
int to string TypeError annoyance
Hi All, In Perl, $db->set_metadata( "foo", 10 ); Results in, TypeError in method 'WritableDatabase_set_metadata', argument 3 of type 'std::string const &' It looks like this is thrown by the SWIG std::string typemap. Does someone with better SWIG skills than me know how to fix SWIG such that it converts the int to a string rather than croaking? (And
2007 Oct 30
1
flash should be empty (typeError)?
Hi, I''m trying to test wether flash.now[:okay] is not empty, but I always get the following error. TypeError in ''UserController'' can''t convert String into Integer Can''t I test the flash if they are not emtpy? Thanks for help :D //Jamal -- Posted via http://www.ruby-forum.com/.
2006 Aug 02
0
"RJS Error: TypeError: $(element) has no properties"
i have lots of divs, which are added via link_to_remote. now i want to delete them with a link_to_remote button for each. i am giving them ids with the same name and a serialized number. when trying to access them with javascript/rjs, strange things happen: "RJS Error: TypeError: $(element) has no properties?. is this a rails, rjs or prototype bug? or am i missing something? see my code
2006 Jun 24
0
superclass mismatch for class Tag (TypeError)
I am trying to write a ruby script which includes both the ''RubyfulSoup'' gem for HTML scouring, and the rails environment so I can access the database easily. I get the following error when trying to run this script. /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/helpers/../../action_controller/vendor/html-scanner/html/node.rb:276: superclass mismatch for class
2006 Feb 09
0
Extending ActiveRecord creates TypeError
Hi. I have want to use the following arrangement: Model < CustomClass < ActiveRecord::Base My CustomClass has a bunch of code I want to be held in common to all my models. What happens however is that if I access a controller that uses Model, it works. Then on the second view (hitting reload) I always get: TypeError (superclass mismatch for class User):
2007 Sep 11
1
TypeError => Symbol as array index
Hello, I''ve got a controller, which I''d like to protect from being accessed by untrusted users. I saw that you can use before_filter to do it. I tried before_filter :filter on the page I''d like to protect and then creating a private method on the super class and it works. I''d now like to get some information from the controller ... So I tried before_filter
2006 Nov 23
0
TypeError on loading fixtures for integration tests
Functional tests properly load fixtures, but my integration test chokes: # def self.create_fixtures(fixtures_directory, table_names, class_names = {}) # puts("fixtures dir: "+(fixtures_directory.nil? ? "nil" : fixtures_directory)) It''s only nil for my integration tests. I''m on rails edge. Does anyone know what I''m doing wrong here? 1) Error:
2005 Dec 07
0
TypeError during a redirection
Hi, I have a problem with Rails 0.14.3. I have an application which uses 2 databases : oracle and postgresql. I can connect to the both databases and use them. The application works correctly (I can reach the controllers, add records in the databases without errors) but during or after a redirection I receive an error. I check with breakpoint and the log, I see in the log : "Redirected
2006 Oct 17
0
TypeError (can't convert Bignum into Hash):
This error has been driving me nuts. It happens with no regularity or pattern and causes a 500 App error. Refreshing will always display as normal (http 200) The back trace always starts with TypeError (can''t convert Bignum into Hash): /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/mysql_adapter.rb:342:in `update''
2013 Sep 30
0
TypeError: no implicit conversion of Symbol into Hash when submitting form to upload files
I''m currently new to Rails and Ruby and I''m trying to learn from my mistakes, this time I''m trying to upload 2 files from a form for later processing, however, after I hit the "Submit" button. I keep getting this error: TypeError in UploadFilesController#create app/controllers/upload_files_controller.rb:28:in `new''
2008 Jun 13
1
TypeError (can't modify frozen hash) - Production Mode Only
Well, I''ve been testing out my code in production mode, in anticipation of being able to show off my site soon. Unfortunately, all is not going as expected. Production mode... well, its behaving differently than development did. I''ve already had login validation issues, and now it seems that my PM system is broken. If a user enters a non-existent username as a recipient of a