Displaying 20 results from an estimated 2000 matches similar to: "Problems with rspec + remote db"
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 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
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 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
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,
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
2007 Aug 07
4
Execute additional commands after creating database?
I''m writing some code that accesses some lagacy database on
PostgreSQL. Since the old database had some really ughly and weird
naming conventions (like CamelCase). To work around this I created a
second schema (named rails) in the same database and gave the tables
and fields some rails-friendly names. The database user that Rails
uses has its search_path set to the rails schema. That way
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
2006 Mar 24
10
innodb vs myisam
Hi,
I have been using myisam tables in mysql with rails because my client will soon want fulltext searchable content, however when I migrated my development db from schema.rb all of the tables generated were innodb. I understand that I can override this, but also like the transactions and foreign keys of innodb. So 2 questions really:
1. are transactions in activerecord dependent on innodb or do
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 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
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
---
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
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
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
2003 Dec 19
1
Question re labels in r-part (continuation of a thread from a while back)
Hello again
I have modeled a tree using rpart, with the DV being a log
transformation of the variable I am really interested in (I transformed
the DV due to extreme skewness). By default, text.rpart labels the
nodes with the value of yval, which in this case is not what I want; I'd
like the labels to be on the original metric, but label in text.rpart
requires a "column name of
2010 Jan 29
3
Vector from Matrix
Dear Mailing List Members,
the problem I've been grappling with für quite some time now is the following:
I have a 100 rows x 200 columns matrix.
data.set <- matrix(rnorm(20000, 100, 200))
Now I would like to get a vector of length 100 which collects the values from the following procedure:
Take the sum of the minima of the two values from each row of columns 1 and 101, and divide it
2006 May 09
1
leftover fixture data causing errors
Maybe I''m not getting fixtures, but... I''m having problems as I start using
fixtures in functional tests.
Data is left in my test database after running functional tests. Not the data
created by the test-method (I''m using transactional fixtures), but data from the
fixtures themselves. Fixture loading will delete & reload the data again when
the test is re-run, but
2007 Feb 09
1
AoTuV branch
when will be merged the vorbis-aotuv branch into the reference library of vorbis?
I feel that the development of vorbis is almost null if the aotuv don't exist... it will be nice to have the reference library using the last tunings as soon as posible...
I gess it will be 1.1.3? or there are other surprises that can make it 1.2.0?
__________________________________________________
Correo