Displaying 20 results from an estimated 700 matches similar to: "Unit Test Error: `load_specification': undefined method `parse' for Time:Class"
2006 Jan 02
3
rake test_units not loading any fixtures
Hello All,
If I run my unit tests individually using Ruby, they all work correctly.
However, if I try to run them using "rake test_units", I get a bunch of
error messages.
The error messages appear to be caused by rake not loading any of the
fixtures into the test database.
I am using PostgreSQL on Windows.
Does anyone have any suggestions?
Many thanks,
Bruce.
--
Posted via
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
2009 Jan 16
10
Puppet playing badly with Debian etch rubygems
To install the ruby-augeas gem, I installed rubygems on Debian etch,
which lead to:
Setting up libgems-ruby1.8 (0.9.0-5) ...
Setting up ruby1.8-dev (1.8.5-4etch4) ...
Setting up rubygems (0.9.0-5) ...
Before this (I mean *immediately* before this) puppet worked fine
exceept for not being able to find a provider for Augeas. After
this, though:
ec2-www1:/usr/src# puppetd -t
Failed to load
2009 Jan 20
5
Problem running rake test
I''m using the One-click 1.8.7rc2 Ruby Windows installer, everything
has been working fine up till now, when i want to start getting into
testing, i got this error, any reason why?
C:/Ruby/bin/ruby -Ilib;test "C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/
lib/rake/rake_test_loader.rb" "test/unit/word_test.rb"
C:/Ruby/lib/ruby/1.8/erb.rb:469:in `scan'': You have a
2006 Jul 02
5
"the number of parameters does not match the number of substitutions" error
All of a sudden, I''m getting this error:
1) Error:
test_index(AccountControllerTest):
RuntimeError: The number of parameters does not match the number of
substitutions.
/home/joe/projects/tanga/trunk/config/../vendor/rails/actionpack/lib/action_controller/assertions.rb:92:in
`assert_redirected_to''
2006 Oct 30
1
Testing
With the 0.2.0 code, unit testing of workers isn''t working out of the box.
I created a bare rails project (dubbed "ninja") and generated one worker
"FirstWorker" and did rake test
rake test
(in /home/joshua/tmp/20061030-bdbtest/ninja)
/usr/bin/ruby1.8 -Ilib:test "/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb"
2006 Jun 28
2
undefined method `use_transactional_fixtures=''
Folks,
I checked my test_helper.rb and it has
self.use_transactional_fixtures = true
My code was generated with 1.1.2 and I''m using 1.1.3 right now after
but the error persists.
I googled for this issue and it appears that a require is missing or
something like that. I can''t figure it out, please help!
/opt/local/bin/ruby -Ilib:test
2007 May 28
3
MiniMagick... Core Dump when Reszing Images?
Hi,
I''m using Mini Magick and that attachment_fu plugin to resize images
that the user uploads. Everything looks okay in my code, but I get a
core dump every time an image is uploaded.
The file successfully posts to the application, I can see that the
original file gets copied into the folder correctly. It appears that
it dumps immediately after that. I''m using Mongrel behind
2007 Dec 05
1
rake error - please help
Hi-
I''m suddenly getting this rake error where as before I wasn''t. And
nothing''s been changed. As you can see it says something about
"load_missing_constant". Is my development environment broken? Can
someone please tell me what this error means?:
bbgun@echobase:~/RailsProjects/rails_space$ rake test:functionals
(in /home/bbgun/RailsProjects/rails_space)
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 Jun 21
7
How to install patches?
Hi,
Can someone explain how do I install patches.
Once I go to the page, I am not sure what to download and how to apply?
I am RoR newbie.
-Thanks
Hari
--
Posted via http://www.ruby-forum.com/.
2008 Oct 08
9
Plugins and the test environment
Hi guys. I''m writing a plugin for use in the test environment.
However, when I run ``rake test'''' or ``rake spec'''', RAILS_ENV is set
to "development" when my plugin''s init.rb is run.
How do you configure a plugin to load require a file in the test
environment?
Thanks,
Nick
--~--~---------~--~----~------------~-------~--~----~
You
2006 Apr 25
3
rake test:units fails on Postgresql due to nil
Following the directions in:
http://www.xml.com/pub/a/2006/04/19/rest-on-rails.html?page=2
I get through the:
rake db:migrate
With the tables created properly but then when I run the:
rake test:units
I get a failure:
ActiveRecord::StatementInvalid: RuntimeError: ERROR C23502 Mnull
value in column "title" violates not-null constraint FexecMain.c
L1750
2010 Jun 11
5
Issues creating tables in mysql tests
Hello,
I''m a beginner, so any hints are appreciated; I''m still trying to find my
way around Rails code. For a bug I''ve found I need to create a table called
"values" so I added this:
create_table :values do |t|
t.integer :value
end
among the other table creations in
activerecord/test/cases/migration_test.rb. Is that ok? But then, when I run
the tests
2006 Apr 14
1
rake test errors
I have Rails 1.1.2, ruby 1.8.4 and gentoo linux running kernel 2.6.15.
Here are the errors:
gregg@gregg2 ~/user/DMS $ rake test
(in /home/gregg/user/DMS)
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
ordered_options.rb:2: warning: method redefined; discarding old []=
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
ordered_options.rb:11: warning: method
2007 Jun 02
2
Unit tests breaks with sqlite
Hi,
I''m using an sqlite3 database with Rails and have some trouble running
unit tests
What I''ve done is
* rails my_app
* edited database.yml to use sqlite3 adapter, db/my_app_development
and db/my_app_test
* ruby script\generate model user
* edited model
class User < ActiveRecord::Base
validates_presence_of :name
validates_uniqueness_of :name
end
*
2005 Nov 26
4
activerecord rake test_mysql
Hi (I''m resubmitting this because
First question: This is the rails dev list, correct?
I''d like to submit a patch and am following the steps on this page:
http://dev.rubyonrails.org/
Here''s what I did (using mysql 5.0.15-nt):
created 2 databases:
activerecord_unittest
activerecord_unittest2
created 1 user: rails (giving all priveleges to both databases)
ran
2006 Aug 14
3
Ferret 0.9.5
Hi,
I was wondering if the latest version of acts_as_ferret (0.2.2) that is
listed on http://projects.jkraemer.net/acts_as_ferret/ is compatible
with the latest version of Ferret 0.9.5. I noticed that the website
above stated that it was supposed to work with 0.9.4, but I didn''t see
anything about 0.9.5.
Thanks,
Aaron
--
Posted via http://www.ruby-forum.com/.
2007 Feb 25
4
[BUG] Bus Error OS X
I''m getting the following on OS X (under locomotive) when running the
tests for ferret. Is anybody else getting this error?
rm -f ext/mem_pool.*
rm -f ext/defines.h
** Execute test_units
/Applications/Locomotive/Bundles/rmagickRailsJan2007_x86.locobundle/framework/bin/ruby
-Ilib:test/unit
2006 Apr 13
3
Salted Hash Login Generator problem
Im trying to install salted and get errors when running the rake test...
/usr/bin/ruby1.8 -Ilib:test
"/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake/rake_test_loader .rb"
"test/unit/localization_test.rb" "test/unit/user_test.rb"
Loaded suite
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake/rake_test_loader
Started
........F....E
Finished in 0.108794 seconds.
1)