also_migrate 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_helper.rb DELETED
@@ -1,27 +0,0 @@
1
- require File.expand_path("#{File.dirname(__FILE__)}/../require")
2
- Require.spec_helper!
3
-
4
- Spec::Runner.configure do |config|
5
- end
6
-
7
- $db, $log, $mail = ActiveWrapper.setup(
8
- :base => File.dirname(__FILE__),
9
- :env => 'test'
10
- )
11
- $db.establish_connection
12
-
13
- def columns(table)
14
- connection.columns(table).collect(&:name)
15
- end
16
-
17
- def connection
18
- ActiveRecord::Base.connection
19
- end
20
-
21
- def migrate_with_state(version)
22
- @old_article_columns = columns("articles")
23
- @old_archive_columns = columns("article_archives")
24
- $db.migrate(version)
25
- @new_article_columns = columns("articles")
26
- @new_archive_columns = columns("article_archives")
27
- end