Displaying 20 results from an estimated 1100 matches similar to: "Wierdness with rake test_units and schema.rb"
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
rake test_units slow on startup
Hi
Running ''rake test_units'' using the simple example from the intro video is
very slow on my computer. While the tests claim to execute in 0.17 secs,
the startup time ad 5.3 seconds to the overall job.
On the video, these tasks ran in about 1 second. (Maybe David was doing
the tests on a dual proc mac or did some video editing, who knows.)
But, I don''t think it should
2006 Jun 01
8
[Pdf::Witer]
Is anyone using Pdf::Writer?
I don know how to insert html tags in a pdf using Pdf::Writer, except <b>
and <i>
I think an idea is with Pdf::TechBook but i hadn''t seen any example till
now.
--
Cheers,
ioana k&a
http://boulangerie.wordpress.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2005 Dec 27
4
Migrations & Unit Testing: Possible Bug in Rails?
I recently started using migrations to create the schema of a Rails
project I am working on. The database I am using for this project is
MySQL. The initial migration creates the table and also includes a
number of execute statements (to do some things like setting primary
keys, autoincrement on some columns and other messy voodoo).
Running "rake migrate" creates the database with no
2006 Mar 10
2
rake fails on build server, but not in development
I''m working in a development environment of Mac OS X with MySQL, and a
production deployment environment of Redhat with Oracle XE. In the
course of setting up a new continuous build server that more closely
mimics our production environment, I got stuck on the following
strangeness on the build server (Linux, Oracle).
1. rake fails
2. rake test_units works
3. rake test_functional
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 Apr 02
5
PostgreSQL and unit tests
After upgrading to 1.1, I can''t run any unit tests. Apparently when I
run rake test_units, it uses a migration to set up the database.
Unfortunately when it runs the migration, it''s adding not null
constraints to every field, even though I haven''t got that set up.
I''m using the ruby-postgres (0.7.1.2005.12.21) adapter with PostgreSQL
8.1.0.
I''m
2006 Jun 02
5
ActiveRecord: Getting table names
How do i get (discover) all the table names within a database using
ROR/ActiveRecord ?
I wish to build a webapp that connects to a database on the fly,
discovers tables and column names etc and then can show data or build a
report based on user selection. The ActiveRecord API doesnt seem to give
any method for getting table names.
--
Posted via http://www.ruby-forum.com/.
2006 Apr 12
2
unit testing with model inheritence
Having jotted down some models, with some inheritence I tried to run some
unit tests. After waiting for rake test_units to run I got a rake of errors
(if you''ll forgive the play on words). The errors were to do with unknown
tables in the tear down stage. The unknown tables corresponded to sub-types
where single table inheritence was used. In other words, these tables
*shouldn''t*
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 Jun 01
7
Active Record Basics - Making it commentable
hi everyone, I hope someone can help me out with some active record
basics? I''ve been banging my head for the past 4 hours and I can''t seem
to get it to work.
I am trying to add comments to a caption (just like how one adds a
comment to a post in a blog). I seem to be able to read posts just fine
from the DB, however, I can''t use the "recordComment"
2006 Apr 02
1
not null constraints added when running rake - is this a "feature?"
After upgrading to Rails 1.1, a lot of my unit tests broke. Turns out
when I run rake test_units and it migrates the test database, it adds
a not null constraint to every column. I don''t have this specified in
my migration, and apparently it works fine with rake migrate if I do
''rake migrate RAILS_ENV=test'', the not null constraints aren''t set.
So why when I
2006 Feb 27
1
problem with rakefile
hi,
I am having a problem with the rake test_units in my RoR application.
when i''m running it it tries to run all the files that end in *.rb (i
think) under the /unit folder in the project and it''s subfolders.
The problem is that my source control system (bitkeeper) saves an
subfolder named SCCS under each of the project folders, and in it, for
eack .rb file another file
2006 Jun 09
8
[how can i delete a file system..please help]
Hi,
I''m trying to delete a file system (<xml_26548975.xml>)
File.delete("xml_26548975.xml")
But I get this error:
"Permission denied - ./script/../config/../uploads/xml_26548975.xml".
Why?
--
Cheers,
ioana k&a
http://boulangerie.wordpress.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Aug 08
2
Testing Inconsistencies - ruby works rake fails
I''m getting some very weird results when testing my system. If I run my
unit tests using => ruby \test\unit\<filename.rb> each of the tests
pass. If I run => rake test_units I get several failures, and they all
have to deal with the same issue. For instance I''m getting =>
ActiveRecord::StatementInvalid: RuntimeError: ERROR C42P01
Mrelation
2006 Mar 01
0
rake test_unit from controller
I was just thinking it might be nice to run rake test_units from a
controller and put the outputs into the browser. I like the original
green or red bar.
I figure someone must have done this but a quick search turned up
nothing.
Any ideas?
Gareth
--
Posted via http://www.ruby-forum.com/.
2006 Jan 30
2
Rake and NOT using schema.rb for clone_structure_to_test
Is there a way to specify not not use schema.rb but instead using a
native sql file to clone structure to the test db? Schema.rb doesn''t
really work that well for mediumblobs ... Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Jun 08
3
Back again; errors in depot app
Sorry, but this is a big one - after adding the Ajax portion of the Agile
Web Development tutorial my page displays:
Application error
Change this error message for exceptions thrown outside of an action (like
in Dispatcher setups or broken Ruby code) in public/500.html
It started when I added -
page[:current_item].visual_effect :highlight,
:startcolor => "#88ff88" ,
:endcolor =>
2006 Jun 08
5
Field names in validators
Hi!
Is there a (simple) way to use alternative field names in validation
messages? For example, if I have a validator like this one:
validates_presence_of :email
how can I make it print a message like "E-Mail Address can''t be blank"
instead of "Email can''t be blank"? I can override the "can''t be blank"
part by using the :message
2005 Oct 20
5
Unit Test Error: `load_specification': undefined method `parse' for Time:Class
All,
I''ve come across a confusing problem when attempting to run unit tests
for an application on OSX (works on Windows).
I''m receiving the following error:
`load_specification'': undefined method `parse'' for Time:Class (NoMethodError)
This is also confusing because I can''t figure out how the error
appeared. When I revert back to previous revisions,