Displaying 20 results from an estimated 400 matches similar to: "postgres unit testing in 0.10.1"
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,
2017 Nov 09
2
Postlogin script
Hi,
I would like to prepare postlogin a script that allow imap connection to
roundcube for all but restrict imap access for selected users.
My question is that:
Is possible in condition IF use IP addresses as range or with mask (because
I've more than one web servers) ?
My script:
#!/bin/sh
if [ "$IP" = "172.11.0.28" ] ; then
printf "* [ALERT] Access allowed from
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
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
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/.
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
2017 Nov 10
1
Postlogin script
Thx, prips works as I expected, gr8 tool, not available in Gentoo repository
but after compilation Dovecot doing what I wanted.
Regards,
Jack
2017-11-09 21:19 GMT+01:00 Gedalya <gedalya at gedalya.net>:
> A bit clunky but perhaps you could find another command.
>
> https://packages.debian.org/stretch/netmask
>
> $ IP=172.11.0.28
> $ if [ "$(netmask -n $IP/24)"
2018 Jul 27
0
Imap post-login script
Dovecot v.2.2.32 and I have configured two imap post-login scripts and it
seems like after successfully login scripts are not closed
(dovecot_node/imap imap-postlogin : multiple processes are running still)
and after some times there are too many processes
and the limit is reached (imap proces_limit 1500):
1)
#!/bin/sh
case $IP in
10.10.1[1-2][0-7].*) exec "$@" ;;
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
2019 Dec 04
1
Environment variables in pgsql connect string
Hi,
We are trying to set up a Dovecot Docker image with dynamic database
configuration based on environment variables, however the variables do
not appear to be expanded in the "connect=" string of the SQL config.
The documentation states that environment variables, being listed under
global variables, work "everywhere":
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
2011 Aug 22
1
[LLVMdev] llvm-fpga microblaze target
folks hi,
something i just wanted to double-check. is it possible to use, with
LLVM, entirely free software tools to build and upload to a xilinx
microblaze FPGA target? i take some c code, put it through llvm-fpga,
aaand... then what? is there any documentation about this stuff,
anywhere?
tia,
l.
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
2008 Oct 22
1
card games
Dear R People:
Are there any packages to play card games, please? In particular,
poker or black jack?
Thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com
2012 May 07
1
R-Code Project Help
Hello,
I am trying to do a project on R-Code involving black jack simulations for a class of mine and I need help starting it. I have tried so many different options and am getting no where and am looking for some help. If anyone can help me out it would be amazing. thank you
Gabriel
[[alternative HTML version deleted]]
2017 Nov 09
0
Postlogin script
A bit clunky but perhaps you could find another command.
https://packages.debian.org/stretch/netmask
$ IP=172.11.0.28
$ if [ "$(netmask -n $IP/24)" == "???? 172.11.0.0/24" ]; then echo OK; fi
OK
$ IP=172.12.0.11
$ if [ "$(netmask -n $IP/24)" == "???? 172.11.0.0/24" ]; then echo OK; fi
$
Range:
https://packages.debian.org/stretch/prips
$ IP=172.11.0.28
$
2012 Feb 21
1
link_to 'Frob', '/thang/frob', :remote => true
Railsters:
I have finally gotten back to Rails, and I''m having the usual "a
little bit too flexible for your own good" problems.
Specifically, the above in my Haml renders this:
<a href="/thang/frob" data-remote="true">Frob</a>
I need href=''#'' and an Ajax call.
What did I do wrong? (Besides, ahem, attempt to read the fine
2005 Jun 29
3
trouble with active record and sqlite
I am getting an error that I can''t figure out. I have a class called
Test with 3 fields, id, x, and y. When I do Test.new(''x''=>1,
''y''=>2).save, I get an error saying that id (my ''not null primary
key'') can''t be null. But isn''t active record supposed to deal with
setting that for me? Here''s the code
2018 Nov 01
1
Re: How to change the default connection of 'virsh' tool from 'qemu' to 'xen' ?
On Thu, 2018-11-01 at 16:40 +0100, Erik Skultety wrote:
> On Wed, Oct 31, 2018 at 05:33:09PM +0100, Martin Kletzander wrote:
> > On Wed, Oct 31, 2018 at 09:32:30AM +0100, Andrea Bolognani wrote:
> > > On Wed, 2018-10-31 at 10:56 +0900, Minjun Hong wrote:
> > > > I searched how to change it but, I only found a bypass adding " LIBVIRT_DEFAULT_URI='xen:///'
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