utensils 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d992bc570be75d00b266e6626a56949df128d025
4
+ data.tar.gz: d7a9e52e2f3d8a9fb6afa83a3b1441fcc90dc8bd
5
+ SHA512:
6
+ metadata.gz: 97733876221284e9a4b780dbec2e7d6f2642da610ad501932fbf15884205ada901700dcd066f8d42b719539942127ac48675490e0e979bbe535b4b044c213760
7
+ data.tar.gz: 43858243a607bfa123368af412b3f487ff3bcd1088928442c02a4fa9bd44bf401eec257e6f1b4ac1e0455ee1cc3dcae386e6e2110a809b93ebaabcdad4d77906
@@ -1,11 +1,23 @@
1
- DatabaseCleaner.strategy = :truncation
2
-
3
1
  RSpec.configure do |config|
4
- config.use_transactional_fixtures = false
5
- config.before :each do
2
+
3
+ config.before(:suite) do
4
+ DatabaseCleaner.clean_with(:truncation)
5
+ end
6
+
7
+ config.before(:each) do
8
+ DatabaseCleaner.strategy = :transaction
9
+ end
10
+
11
+ config.before(:each, :js => true) do
12
+ DatabaseCleaner.strategy = :truncation
13
+ end
14
+
15
+ config.before(:each) do
6
16
  DatabaseCleaner.start
7
17
  end
8
- config.after :each do
18
+
19
+ config.after(:each) do
9
20
  DatabaseCleaner.clean
10
21
  end
11
- end
22
+
23
+ end
@@ -1,3 +1,3 @@
1
1
  module Utensils
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utensils
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.0.13
4
+ version: 0.0.14
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jens Balvig
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-04-16 00:00:00.000000000 Z
11
+ date: 2013-06-10 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Rspec stuff we use over and over again
15
14
  email:
@@ -37,26 +36,25 @@ files:
37
36
  - utensils.gemspec
38
37
  homepage: ''
39
38
  licenses: []
39
+ metadata: {}
40
40
  post_install_message:
41
41
  rdoc_options: []
42
42
  require_paths:
43
43
  - lib
44
44
  required_ruby_version: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ! '>='
46
+ - - '>='
47
47
  - !ruby/object:Gem::Version
48
48
  version: '0'
49
- none: false
50
49
  required_rubygems_version: !ruby/object:Gem::Requirement
51
50
  requirements:
52
- - - ! '>='
51
+ - - '>='
53
52
  - !ruby/object:Gem::Version
54
53
  version: '0'
55
- none: false
56
54
  requirements: []
57
55
  rubyforge_project:
58
- rubygems_version: 1.8.23
56
+ rubygems_version: 2.0.2
59
57
  signing_key:
60
- specification_version: 3
58
+ specification_version: 4
61
59
  summary: Rspec stuff we use over and over again
62
60
  test_files: []