similar to: Perplexing unit test issue

Displaying 20 results from an estimated 2000 matches similar to: "Perplexing unit test issue"

2006 Jul 04
4
MySQL error when running rake migrate
Running rails 1.1 and MySQL 5 on Kubuntu. I moved the same rails project from one machine to another. To set up the database I try to run `rake migrate` but I am greeted with the error/stack trace below. Any idea why this could be? It doesn''t seem to be a permissions problem--I can login to the database as my application just fine. I tried downgrading MySQL to v4.1 because that is
2008 Jul 16
2
Error when running my unit test...
Hi Rails team Learning ROR, and is doing the chapter with test..... feel like skipping this, but.... (using NetBeans IDE 6.1) I have created this story_test.rb, and when I run the ''rake test:units (selected from the GUI), I get this error: (in /data/NewOrder/Projects/ROR/shovell) ** Invoke test:units (first_time) ** Invoke db:test:prepare (first_time) ** Invoke environment
2009 Nov 07
0
wrong argument type Mysql (expected Struct) running rake with Ruby 1.9 / Rails 2.3.3
I''m use Ruby 1.9 via rvm and Rails 2.3.3. I''m on OS X 10.5 and I have the mysql 2.8.1 gem installed. When I run rake on my rails app, I get the error "wrong argument type Mysql (expected Struct)". I can run the app fine with script/server and script/console fine. Is anyone else having this problem or know what might cause this problem? Here''s the stack
2006 Apr 20
4
Newbee rake migrate question
with a simple table def. class Objects < ActiveRecord::Migration def self.up create_table :objects do |table| table.column :name, string end def self.down drop_table :objects end end when I run rake migrate, I get: ** Invoke migrate (first_time) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:migrate rake
2006 Jun 10
2
readline problems
I get the following error: rake test_units --trace ** Invoke test_units (first_time) ** Invoke test:units (first_time) ** Invoke db:test:prepare (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:test:prepare ** Invoke db:test:clone (first_time) ** Invoke db:schema:dump (first_time) ** Invoke environment ** Execute db:schema:dump ** Execute db:test:clone **
2006 Aug 10
4
error compiling wxruby2
I''m just starting to try out wxruby. I downloaded the CVS and executed rake. I received the following error - SWIG Version 1.3.24 Copyright (c) 1995-1998 University of Utah and the Regents of the University of California Copyright (c) 1998-2004 University of Chicago Compiled with i386-redhat-linux-g++ [i386-redhat-linux-gnu] Please see http://www.swig.org for reporting bugs and further
2006 Apr 10
0
uninitialized constant WEBrick
I have just upgraded installed rails 1.1 using gem. I have set up a rails app using radrails. I have set up one model for testing and set up one migration in order to create the table for that model. When I type rake migrate I get the following error message. rake aborted! uninitialized constant WEBrick (See full trace by running task with --trace) I have attached the trace below. This happens
2006 May 15
2
login engine error
Hi everybody, I am new to rails. I get the following error when run the rake engine:migrate for the engine login_engine. ------------------------------------------------------------------------ gbalaji:~/projects/test/vendor/plugins/login_engine gopalbalaji$ rake engine_migrate ENGINE=log --trace (in /Users/gopalbalaji/Projects/test) ** Invoke engine_migrate (first_time) ** Invoke
2010 May 28
0
Rake Aborted! db:migrate
Hello, I am trying do a migrate of my database but I have problems, I write this in the console: [console] rake db:migrate [/console] And say me: [console] (in /home/distriker/Documentos/public_html/crf) !!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql. rake aborted! no such file to load -- mysql (See full trace by
2006 May 28
0
rake errors - not as helpful as they could be
hi list - i recently attempted to run rake for a first pass at some tests and ran into a mysterious failure. rake indicated that it had aborted running the tests but provided little information on exactly why this occurred. the only bit of information it did offer was that i could use --trace for a full trace. of course i did that hoping it would provide more detail, but it didn''t help a
2006 Aug 07
0
Rake 0.7.1 fails, and even Rake''s auto-test fails
Hi, Hi, Need help fixing this problem. Rake aborts, so I ran Rake''s test suites, and this is what it says. ... c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in ''gem_original_require'': no such file to load -- flexmock (LoadError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in ''require'' from
2006 May 11
2
Unit tests fail with sqlite3 and rails 1.1
Hello all, I''m kinda going through a rocky upgrade to rails 1.1 and I can''t find much on google about this. When I run my tests I get this: $ rake (in /home/www/art2) /usr/bin/ruby -Ilib:test "/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb" "test/functional/panoramas_controller_test.rb"
2006 May 29
1
Engine: Active_RBAC not working, missing require
Hi there, I try to install the active_rbac plugin as described in the manual on the active_rbac trac site. The installation through the plugin script was great: ruby script\plugin discover ruby script\plugin install engines ruby script\plugin install active_rbac I set up the environment.rb in rails\config dir correctly to Engines.start :active_rbac But if I try a rake db:migrate:engines
2006 Jun 15
6
Sqlite3 test fails in Rails app
Greetings: I am using Sqlite3 database with my Rails app. When I try and run "rake tests" for the app it always fails with the error: ** Invoke default (first_time) ** Invoke test (first_time) ** Execute test ** Invoke test:units (first_time) ** Invoke db:test:prepare (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:test:prepare ** Invoke
2006 Nov 04
3
undefined method `load_paths=' for Dependencies:Module
I''ve been working on an app, and had a friend check it out to his machine. I''ve got rails and all my plugins set up with svn:externals, so when he svn ups it he gets all the latest stuff. I''ve just svn up''d both machines so we''re running the same versions of everything. We''re also running the same version of ruby (1.8.4). As far as I can
2005 Oct 28
3
PostgreSQL. Multiply schemas in one database. How to?
Hi all. I am using PostgreSQL in my current project and I have couple of questions on this topic. Previously I have used 3 databases for project. i.e. megaproject_development, megaproject_test and megaproject_development. But I don''t like this variant because of ''rake dump_db_structure'' writes a lot of PostgreSQL specific data for structure file (operators, functions,
2008 Feb 24
1
Install / Build fail on OSX Server 10.5.2
Hello, I would like to install SuperRedCloth on my server, here is the entire log : gem install superredcloth --source http://code.whytheluckystiff.net Building native extensions. This could take a while... ERROR: Error installing superredcloth: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb install superredcloth
2005 Jan 22
2
What''s with the tests?
Am I the only one with this problem: I create a new app using "rails appname". I create a dev database, a table, then generate a model for the table and a controller for the app. The app works in the browser. I can create objects, and so forth. Then I create a test database, and run "rake", which says: rake aborted! undefined method `+'' for nil:NilClass
2006 Sep 05
0
rake craziness with Migrate as a dependency
Hi everyone, For one of our projects we have a need to deploy and maintain a demo. As a result I''ve attempted to setup a set of rake tasks for the job. My goal is have one rake task called "deploy_demo" which purges the database, migrates to the current schema, and loads the db from a set of fixture files in a specified location. I''ve written two new tasks the perform
2007 Sep 26
0
Rake DB Migration
Hai All, i have installed Ruby and Rails in my localhost, and i have to download Rubricks CMS and installed in my localhost in the installing process i got below Error Please Say how can i rectify this. ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! wrong number of arguments (1 for 0)