Skip to content

Commit

Permalink
reorganizing adapter specific tests. [#4974 state:resolved]
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information
tenderlove authored and jeremy committed Jun 25, 2010
1 parent efbd0eb commit 5e2b473
Show file tree
Hide file tree
Showing 13 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion activerecord/Rakefile
Expand Up @@ -49,7 +49,10 @@ end
connection_path = "test/connections/#{adapter =~ /jdbc/ ? 'jdbc' : 'native'}_#{adapter}"
adapter_short = adapter == 'db2' ? adapter : adapter[/^[a-z]+/]
t.libs << "test" << connection_path
t.test_files=Dir.glob( "test/cases/**/*_test{,_#{adapter_short}}.rb" ).sort
t.test_files = (Dir.glob( "test/cases/**/*_test.rb" ).reject {
|x| x =~ /\/adapters\//
} + Dir.glob("test/cases/adapters/#{adapter_short}/**/*_test.rb")).sort

t.verbose = true
t.warning = true
}
Expand Down
Expand Up @@ -53,7 +53,7 @@ def setup

@connection.execute("INSERT INTO postgresql_oids (obj_id) VALUES (1234)")
@first_oid = PostgresqlOid.find(1)

@connection.execute("INSERT INTO postgresql_timestamp_with_zones (time) VALUES ('2010-01-01 10:00:00-1')")
end

Expand Down
Expand Up @@ -66,7 +66,7 @@ def test_sequence_schema_caching
end
end
end

def test_tables_in_current_schemas
assert !@connection.tables.include?(TABLE_NAME)
USERS.each do |u|
Expand Down

0 comments on commit 5e2b473

Please sign in to comment.