thincloud-test 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,12 @@
1
+ DatabaseCleaner.strategy = :transaction
2
+ DatabaseCleaner.clean_with :truncation
3
+
4
+ class MiniTest::Spec
5
+ before :each do
6
+ DatabaseCleaner.start
7
+ end
8
+
9
+ after :each do
10
+ DatabaseCleaner.clean
11
+ end
12
+ end
@@ -15,6 +15,7 @@ module Thincloud
15
15
  remove_file "test/minitest_helper.rb"
16
16
  copy_file "minitest_helper.rb", "test/minitest_helper.rb"
17
17
 
18
+ copy_file "database_cleaner.rb", "test/support/database_cleaner.rb"
18
19
  copy_file "test.rake", "lib/tasks/test.rake"
19
20
 
20
21
  copy_file "Guardfile"
@@ -1,5 +1,5 @@
1
1
  module Thincloud
2
2
  module Test
3
- VERSION = "0.2.1"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
18
18
 
19
19
  s.add_dependency "rails", "~> 3.2.8"
20
20
  s.add_dependency "cane", "~> 2.3.0"
21
+ s.add_dependency "database_cleaner", "~> 0.8.0"
21
22
  s.add_dependency "guard", "~> 1.4.0"
22
23
  s.add_dependency "factory_girl_rails", "~> 4.1.0"
23
24
  s.add_dependency "minitest", "~> 3.5.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thincloud-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -45,6 +45,22 @@ dependencies:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: 2.3.0
48
+ - !ruby/object:Gem::Dependency
49
+ name: database_cleaner
50
+ requirement: !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ~>
54
+ - !ruby/object:Gem::Version
55
+ version: 0.8.0
56
+ type: :runtime
57
+ prerelease: false
58
+ version_requirements: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ~>
62
+ - !ruby/object:Gem::Version
63
+ version: 0.8.0
48
64
  - !ruby/object:Gem::Dependency
49
65
  name: guard
50
66
  requirement: !ruby/object:Gem::Requirement
@@ -214,6 +230,7 @@ files:
214
230
  - app/views/.gitkeep
215
231
  - config/routes.rb
216
232
  - lib/generators/thincloud/test/templates/Guardfile
233
+ - lib/generators/thincloud/test/templates/database_cleaner.rb
217
234
  - lib/generators/thincloud/test/templates/minitest_helper.rb
218
235
  - lib/generators/thincloud/test/templates/test.rake
219
236
  - lib/generators/thincloud/test/test_generator.rb
@@ -277,7 +294,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
277
294
  version: '0'
278
295
  segments:
279
296
  - 0
280
- hash: -2122236944223649712
297
+ hash: 1695487518181028833
281
298
  required_rubygems_version: !ruby/object:Gem::Requirement
282
299
  none: false
283
300
  requirements:
@@ -286,7 +303,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
286
303
  version: '0'
287
304
  segments:
288
305
  - 0
289
- hash: -2122236944223649712
306
+ hash: 1695487518181028833
290
307
  requirements: []
291
308
  rubyforge_project:
292
309
  rubygems_version: 1.8.24