Em 12-11-2013 14:49, Rodrigo Rosenfeld Rosas escreveu:
Em 12-11-2013 14:44, Jeremy Evans escreveu:
On Tuesday, November 12, 2013 8:28:03 AM UTC-8, Rodrigo Rosenfeld
Rosas wrote:
14:27:29 rodrigo@rodrigo:~/src-externo/sequel master
$ ruby -I lib/ bin/sequel postgres://localhost/sequel-test
Your database is stored in DB...
2.0.0-p247 :001 > p DB.get(Sequel::CURRENT_TIMESTAMP), Time.now
2013-11-12 14:27:33 -0200
2013-11-12 14:27:33 -0200
=> [2013-11-12 14:27:33 -0200, 2013-11-12 14:27:33 -0200]
Well, assuming that this is the same database you are using to run
the specs, I'm not sure why it's failing for you.
Me neither, but it gets inconsistent in psql too (consistent with
tests failing). I created it with "createdb sequel-test".
I can say that the specs run cleanly in my environment, and run
cleanly on TravisCI. I can also say that when you run the specs,
there definitely is a time difference between the local machine and
the database server, otherwise those specs wouldn't all fail in the
way they did. Are you absolutely sure you are running the specs
against postgres://localhost/sequel-test? What's your command line
for running the specs, and if you have a spec/spec_config.rb file,
what are the contents?
Since I'm using RSpec 3, I had to create a Gemfile requiring RSpec 2
and 'pg' and then I run with:
bundle exec rspec -e CURRENT_ spec/integration/dataset_test.rb
Anyway, I first need to understand why psql is not behaving as I would
expect it to.
For some reason the automatic timezone detection stopped working here...
I manually set it up in postgresql.conf and it's working now...
Best,
Rodrigo.
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/groups/opt_out.