public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
unit test fixes for those not using mysql or psql [Mislav]

git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@2893 
567b1171-46fb-0310-a4c9-b4bef9110e78
technoweenie (author)
Fri Jun 08 07:42:26 -0700 2007
commit  687ced52aa5d8484fe6f2ecf0cc253a619e9d704
tree    0bcfaee7b9535791edb03e2fddbab838934dd59b
parent  a13b079d42233fb6c917c640fe9bd04ab82f5714
...
1
2
 
 
 
 
3
4
5
...
1
2
3
4
5
6
7
8
9
0
@@ -1,5 +1,9 @@
0
 * SVN *
0
 
0
+* unit test fixes for those not using mysql or psql [Mislav]
0
+
0
+* add comment moderation links to the overview [court3nay]
0
+
0
 * convert tests to use test/spec instead of simply bdd [Chris McGrath]
0
 
0
 * move xmlrpc stuff to plugin. rails doesn't include AWS anymore. May need some simple autodetection so the plugin just prints a warning if AWS isn't found.
...
32
33
34
35
36
 
 
37
38
39
...
42
43
44
45
 
46
47
48
...
32
33
34
 
 
35
36
37
38
39
...
42
43
44
 
45
46
47
48
0
@@ -32,8 +32,8 @@ end
0
 # needed for the asset tests
0
 # may have to rethink this...
0
 Fixtures.class_eval do
0
- case ActiveRecord::Base.connection
0
- when ActiveRecord::ConnectionAdapters::MysqlAdapter
0
+ case ActiveRecord::Base.connection.class.name
0
+ when /Mysql/
0
       def delete_existing_fixtures
0
         self.class.delete_existing_fixtures_for @connection, @table_name
0
       end
0
@@ -42,7 +42,7 @@ Fixtures.class_eval do
0
         connection.delete "TRUNCATE TABLE #{table_name}", 'Fixture Delete'
0
         connection.execute "ALTER TABLE #{table_name} AUTO_INCREMENT = 1", 'Renumber Auto Increment'
0
       end
0
- when ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
0
+ when /PostgreSQL/
0
       def delete_existing_fixtures
0
         self.class.delete_existing_fixtures_for @connection, @table_name
0
       end

Comments

    No one has commented yet.