similar to: Error when running my unit test...

Displaying 20 results from an estimated 4000 matches similar to: "Error when running my unit test..."

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
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
2010 Jan 07
1
Active Record Error
I''ve had to download an existing Rails project and I''m attempting to setup locally. I''ve installed all the 2.1.1 rails gems needed by the project as the existing site is at that version. My platform is Netbeans 6.8 on Windows Vista for development and prod is on linux. I''ve been able to setup test and other sites using the latetest version of rails but cant seem
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
2009 Sep 17
1
Load Error Using Mechanize Gem
Hi, I''m getting a "Could not open any of [xml2, xslt, exslt] (LoadError)" error when trying to run a simple Ruby program taken from the EXAMPLES.rdoc file of the Mechanize gem. The error is in this line of the Nokogiri module of libxml.rb: ffi_lib ''xml2'', ''xslt'', ''exslt'' Not sure if there are missing gems, and if so,
2008 Jan 31
1
never have been able to run rake doc:app
Perhaps it''s just a Fedora thing but it would be nice to generate my application''s API $ rake doc:app --trace (in /home/storage/users/craig/svn/th-db/branches/phase5) ** Invoke doc:app (first_time) ** Invoke doc/app/index.html (first_time) rake aborted! Don''t know how to build task ''doc/README_FOR_APP''
2010 Feb 25
2
error on project run.....
Hi, i am new at rails, working on a project,as i run my project in netbeans, the following error comes in the output window, suggest some fix for it. C:/Program Files/NetBeans 6.7 Beta/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/ gems/rails-2.3.2/lib/initializer.rb:32: C:/Program Files/NetBeans 6.7 Beta/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/ initializer.rb:1070: , unexpected kEND
2009 Oct 20
3
gem installation failed
i got this error message while installing mysql gem..... kindly help me to solve this issue.... JRuby limited openssl loaded. gem install jruby-openssl for full support. http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL Building native extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native extension. C:/Program Files/NetBeans
2011 Jun 09
1
Rails 3.1 RC4 has broken migrations
Rails 3.1 RC4 has broken migrations $ jruby -v jruby 1.6.2 (ruby-1.8.7-p330) (2011-05-23 e2ea975) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_24) [darwin-x86_64-java] $ jruby -S rails -v Rails 3.1.0.rc4 $ jruby -S rails new myapp -d jdbcpostgresql [...] $jruby -S rake db:create [...] $ jruby -S rails g model user name:string invoke active_record create
2010 Oct 28
2
ActiveRecord JDBC error Generated keys not requested
I''m getting the following error while connecting to mysql using activerecord-jdbcmysql-adapter (1.0.2). Rails 3.0.1. ActiveRecord::JDBCError: Generated keys not requested. You need to specify Statement.RETURN_GENERATED_KEYS to Statement.executeUpdate() or Connection.prepareStatement().: SET SQL_AUTO_IS_NULL=0 This occurs not matter what application I run it in to e.g. rake, rails
2013 Feb 02
2
rake db:migrate problem
mini@mini:~/Sites/music_library$ rake db:migrate rake aborted! couldn''t parse YAML at line 28 column 6 /home/mini/my_gems/gems/railties-3.2.9/lib/rails/application/configuration.rb:115:in `database_configuration'' /home/mini/my_gems/gems/activerecord-3.2.9/lib/active_record/railtie.rb:78:in `block (2 levels) in <class:Railtie>''
2006 May 05
0
Perplexing unit test issue
Because we''re now using views, I had to upgrade to mysql 5 on a project using Rails 1.0. Updated my mysql gem accordingly (which required upgrading xcode). Ruby 1.8.2, MacOS X (10.4.6) Worked fine several times (even before updating the mysql gem, then suddenly it just balked and stopped working, giving the spew below. Have also dropped (and recreated) both the test and
2010 Apr 20
1
dashboard: rake install fails (Solaris10)
Hi all, I am trying to install dashboard 1.0.0rc1. Independantly if have manually installed authlogic - gem or not it is throwing the following trace. The problem is the same when I am resetting (rake db:reset) or dropping the database. any ideas? best regards Lutz bash-3.00# rake install (in /opt/puppet-dashboard) dashboard_development already exists can''t activate authlogic (=
2009 Nov 03
2
Problem with gem install and rails update
Hi everyone. I''m new to Rails and have been trying to learn something listening to Ryan Bates'' podcast. I have tried to install the authlogic gem, inserting the extension as a dependency in the environment.rb file as requested. But, when I run ''sudo rake gems:install'' I get an error: wrong number of arguments. I''ve pasted the trace blow. Then
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
2011 May 11
2
rack problems
I''m having some issues running rake commands for puppet dashboard. Here is one of the symptoms (see below). I''m a little new to setting up rails/rack applications, so I may be making a common mistake. It looks like gems are already packaged with dashboard, specifically rack-1.01. Should that gem just work out of the box? Command: rake RAILS_ENV=production reports:prune upto=1
2009 Mar 09
2
rake:db:prepare Mysql::Error: #42000BLOB/TEXT column ' used in key specification without a length
I have a test environment running rails 1.2.3. I am just starting to introduce testing into this project. When I run a rake db:prepare. I see this message "Mysql::Error: #42000BLOB/TEXT column ''short_description'' used in key specification without a key length: CREATE INDEX ''short_description'' on cached_cars (''short_description'') The
2008 Dec 16
0
db:create & db:migrate issues
Greetings: I am new to ROR and RadRails. All assistance will always be appreciated. My environment: Windows XP Ruby 1.8.6 Rails 2.2.2 Aptana Studio, build: 1.2.1.020234 RadRails 1.1.0.200812081651NGT I created a new ROR Project. When I attempted to run db:create --trace for the first time I got the following message: in C:/RailsApp/chbdepot) ** Invoke db:create (first_time) ** Invoke
2011 May 15
0
Upgrading to Rails 3.1
I''m working on updating my rails 3.0.5 app to rails 3.1.0.beta1 and I seem to be running into a problem when doing `rake rails:update` when it runs `rake rails:update:javascripts` Here is my bundle: Gems included by the bundle: * RedCloth (4.2.7) * actionmailer (3.1.0.beta1) * actionpack (3.1.0.beta1) * activemodel (3.1.0.beta1) * activerecord (3.1.0.beta1) * activeresource
2010 Feb 27
1
Cannot migrate DB due to "getaddrinfo: Name or service not known"
I am using Rails 2.2.2 and try to do a DB migration, but got the following error. I am using Centos 5.4. Can someone give me a clue? >> rake db:migrate RAILS_ENV="production" rake aborted! getaddrinfo: Name or service not known (See full trace by running task with --trace) [current]$ rake db:migrate RAILS_ENV="production" --trace ** Invoke db:migrate (first_time) **