Displaying 20 results from an estimated 900 matches similar to: "rake test_units not loading any fixtures"
2007 Feb 06
1
Postgres, testing and maybe spurious database DROPpings?
Folks,
I don''t like that I have to grant CREATEDB rights to the test user to
get testing working smoothly with Postgres.
What is the philosophical reason that Rails wants to drop and recreate
databases during the testing? It would seem to me that "pg_dump -c" (the
"clean" dump option, similar to mysqldump''s --add-drop-tables ) would
suffice when
2006 Jun 02
3
Wierdness with rake test_units and schema.rb
I have just migrated to use Rail 1.1 from 1.0.
In the progress of fixing and cleaning up the unit tests. I found the
following problem. I am not sure if this is a bug or it is my
environment.
When I run "rake test_units, some of the index in association tables is
not created, this leads to failures for some unit test cases.
Thinking that may be because I didn''t setup the
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 Apr 03
2
problems testing on 1.1 and postgresql
Hi,
I get errors doing this:
1) createdb myapp_test
2) rake db:test:clone_structure
3) rake test:units
rake aborted!
PGError: ERROR: relation "matches" already exists
I''m using the :sql schema format because there are some problems with
postgres and the :ruby schema format
config.active_record.schema_format = :sql
It seems rake test:units is trying to create the tables
2007 Oct 05
5
PostgreSQL, templates, and test databases
Hi everyone.
I''m having a bit of a problem with an application I''m currently
developing with Rails 1.2.3 and PostgreSQL, attempting to use test-first
development. Here''s the scenario:
* I have the usual three databases, with migrations. Testing has been
working beautifully.
* I need to store geographic data, so I add PostGIS to all three
databases (along with
2009 Aug 21
1
[PATCH server] update installer exec items to single_exec where applicable
Signed-off-by: Joey Boggs <jboggs at redhat.com>
---
installer/modules/ovirt/manifests/freeipa.pp | 8 ++++----
installer/modules/ovirt/manifests/postgres.pp | 12 ++++++------
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/installer/modules/ovirt/manifests/freeipa.pp b/installer/modules/ovirt/manifests/freeipa.pp
index e5de852..f91cd43 100644
---
2008 Jan 11
2
Problems with rspec + remote db
hey guys,
I''m having a problem here, I have a pc in my house that I use as a db
server (postgresql).
I have the pr-postgresql gem running and it works very well
But when I try to "rake spec" I get these 2 errors
C:/ruby/bin/rake: No such file or directory - dropdb -U "coleira"
coleira_test
C:/ruby/bin/rake: No such file or directory - createdb -E unicode -U
2005 Dec 17
3
Can scaffold generate listboxes in views? I''ve been unsuccessful.
I''ve created several different Rails applications but I''m running
into the same trouble with each one. Lets say I create an app called
Test. I type ''rails test'' and it generates the directory for me.
Now I edit my database.yml file. Then I create a database with
Postgresql by typing createdb test. Now I go into Postgresql by
typing ''psql
2006 Jun 29
14
TDD and migrations?
TDD, SVN and migrations seem to be a natural combination for model
development: create a test, add the column with a migration, write the
code, and check it all in when you''re done.
The trouble is that this ends up creating one migration per field. I guess
it''s not horrible in and of itself, but it does have a code smell to it.
Has anyone come up with a different way of doing
2006 Feb 28
10
Salted hash login, postgresql, unit tests
Hello,
I have tried to install the salted hash login generator by following the
quick start guide at:
http://wiki.rubyonrails.com/rails/pages/SaltedLoginGeneratorQuickstart.
Everything seems to work fine until I try to run the unit tests by doing
''rake test_units'', then I get the following error message:
<error-message>
[brasse@keso login-test]$ rake test_units
(in
2005 Apr 26
10
Cannot force WeBRICK into submission (UTF-8)
Hello everyone!
Pushing my new rails project I stumbled upon some weird problem.
I cannot force WeBRICK to show me my MySQL records in UTF-8. All I
recieve into the object (instead of russian letters) are question marks
(a la ?????? style). I am running MySQL 4.1 (the one with switchable
charsets) and a binary Ruby extension for it, all on OSX.
To me it looks like MySQL never recieves what I
2005 Mar 06
3
permission error in rake''s clone_structure_to_test
Hello,
When I try to run "rake clone_structure_to_test" on my project, I get
the following errors:
$ rake clone_structure_to_test
(in /home/www/cedscreening)
psql:db/development_structure.sql:8: ERROR: permission denied to set
session authorization
psql:db/development_structure.sql:16: ERROR: permission denied for
schema public
psql:db/development_structure.sql:34: NOTICE: CREATE
2005 Mar 07
1
postgres unit testing in 0.10.1
http://dev.rubyonrails.com/changeset/856
looks to me like it''s not going to work, since there''s no way of
specifying a password to pg_dump/dropdb/createdb.
If you set PGPASSWORD in your environment it might work, but that''s not
documented anywhere and isn''t done automatically in the Rakefile.
See
http://thread.gmane.org/gmane.comp.lang.ruby.rails/3693
for
2008 Aug 29
2
rake db:test:prepare
Hi
I am using postgres And I have already development database..When I
give
rake db:test:prepare it gives
sh: dropdb: command not found
sh: createdb: command not found
But how ever test db is created Same happens also when rake
db:test:clone
I would like to know why I am getting this message
Thanks in advance
Sijo
--
Posted via http://www.ruby-forum.com/.
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,
2007 Dec 16
1
Unit test preperation with migrations
I have spent sometime this afternoon learning how to unit test rails
applications and integrate the Cerberus CI tool. One key area confuses
me however, and I would appreciate other peoples views of how best to
overcome the issue.
My understanding is that the ''test'' and ''test:units'' have the
db:test:prepare pre-requisite which copies the schema from dev to the
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/.
2005 Dec 21
6
Rails without a db - how to run tests
I''m writing a simple app that doesn''t need to use a database. I added
:active_record to the config.frameworks -= line in environment.rb
file. This lets me run ./script/generate fine without complaining
about no connection. However if I try to run a functional test, it
complains about no connection being established. Well...I don''t want
a connection to be established.
2012 Oct 05
3
PHPMYADMIN on Centos 6.3
Hi guys,
Pls I need good and working instructions on how to install phpmyadmin on
centos 6.3 ?
I would appreciate your kind and timely response on this.
regards
kunle
2006 May 01
10
large file storing in postgres sucks?
Hi,
I''m not sure if this is a postgres issue or not, but I''m using
Postgres 8.1. I have (in my functional tests) the following code:
upload = fixture_file_upload(''/files/podcast.mp3'', ''audio/mpeg'')
post :create, :product => valid_product, :media => { :image => upload }
And then in the controller:
blob = Blob.create :data