Permalink
Browse files

this test weirdly fails on 3.1.12 but only until when run with others…

… ... wtf?!
  • Loading branch information...
1 parent 947bcdb commit c41ebd89866157f3d15eaf402158dfa3707ebc5c @kares kares committed Apr 4, 2013
Showing with 8 additions and 7 deletions.
  1. +8 −7 test/db/postgres/nonseq_pkey_test.rb
@@ -1,4 +1,4 @@
-require 'jdbc_common'
+require 'test_helper'
require 'db/postgres'
class PostgresNonSeqPKeyTest < Test::Unit::TestCase
@@ -7,7 +7,7 @@ class CreateUrls < ActiveRecord::Migration
def self.up
create_table 'urls', :id => false do |t|
t.text :uhash, :null => false
- t.text :url, :null => false
+ t.text :url, :null => false
end
execute "ALTER TABLE urls ADD PRIMARY KEY (uhash)"
end
@@ -29,11 +29,12 @@ def teardown
CreateUrls.down
end
- def test_create
- url = Url.create! do |u|
- u.uhash = 'uhash'
- u.url = 'http://url'
+ def test_create_url
+ url = Url.create! do |url|
+ url.uhash = 'uhash'
+ url.url = 'http://url.to'
end
- assert_equal( 'uhash', url.uhash )
+ assert_equal 'uhash', url.uhash
end
+
end

0 comments on commit c41ebd8

Please sign in to comment.