transactionata 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,7 +27,12 @@ module Transactionata
27
27
  def load_fixtures
28
28
  original_load_fixtures
29
29
  self.class.test_data_block.call
30
- Fixtures.reset_cache # Required to enforce purging tables for every test file
30
+
31
+ if defined?(ActiveRecord::Fixtures) # Rails 3.1
32
+ ActiveRecord::Fixtures.reset_cache
33
+ else
34
+ Fixtures.reset_cache # Required to enforce purging tables for every test file
35
+ end
31
36
  end
32
37
  end
33
38
  self.test_data_block = blk
@@ -1,3 +1,3 @@
1
1
  module Transactionata
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -11,7 +11,7 @@ class TestRails2Integration < Test::Unit::TestCase
11
11
  Dir.chdir @original_wd
12
12
  end
13
13
 
14
- def test_passing_rails3_test_suite
14
+ def test_passing_rails2_test_suite
15
15
  test_suite_output = `rake test`
16
16
  exit_status = $?
17
17
 
@@ -16,6 +16,7 @@ Gem::Specification.new do |s|
16
16
 
17
17
  s.add_development_dependency 'shoulda'
18
18
  s.add_development_dependency 'rails'
19
+ s.add_development_dependency 'rake'
19
20
 
20
21
  s.files = `git ls-files`.split("\n")
21
22
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: transactionata
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.0
5
+ version: 0.3.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Christoph Olszowka
@@ -10,12 +10,11 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-30 00:00:00 +02:00
13
+ date: 2011-09-05 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: shoulda
18
- prerelease: false
19
18
  requirement: &id001 !ruby/object:Gem::Requirement
20
19
  none: false
21
20
  requirements:
@@ -23,10 +22,10 @@ dependencies:
23
22
  - !ruby/object:Gem::Version
24
23
  version: "0"
25
24
  type: :development
25
+ prerelease: false
26
26
  version_requirements: *id001
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails
29
- prerelease: false
30
29
  requirement: &id002 !ruby/object:Gem::Requirement
31
30
  none: false
32
31
  requirements:
@@ -34,7 +33,19 @@ dependencies:
34
33
  - !ruby/object:Gem::Version
35
34
  version: "0"
36
35
  type: :development
36
+ prerelease: false
37
37
  version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
39
+ name: rake
40
+ requirement: &id003 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: "0"
46
+ type: :development
47
+ prerelease: false
48
+ version_requirements: *id003
38
49
  description: "Transactionata: Transactional dynamic test data for Rails Tests. Set up your models and factories in a block that will be executed once and then rolled back by hooking into ActiveRecord's built-in fixture transactions"
39
50
  email:
40
51
  - christoph at olszowka de
@@ -177,17 +188,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
177
188
  requirements:
178
189
  - - ">="
179
190
  - !ruby/object:Gem::Version
191
+ hash: -4101635785788002773
192
+ segments:
193
+ - 0
180
194
  version: "0"
181
195
  required_rubygems_version: !ruby/object:Gem::Requirement
182
196
  none: false
183
197
  requirements:
184
198
  - - ">="
185
199
  - !ruby/object:Gem::Version
200
+ hash: -4101635785788002773
201
+ segments:
202
+ - 0
186
203
  version: "0"
187
204
  requirements: []
188
205
 
189
206
  rubyforge_project: transactionata
190
- rubygems_version: 1.5.3
207
+ rubygems_version: 1.6.1
191
208
  signing_key:
192
209
  specification_version: 3
193
210
  summary: "Transactionata: Transactional dynamic test data for Rails Tests. Set up your models and factories in a block that will be executed once and then rolled back by hooking into ActiveRecord's built-in fixture transactions"