vault-test-tools 0.1.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,16 @@
1
+ module Vault::Test
2
+ module DB
3
+ module Truncation
4
+ def teardown
5
+ super
6
+ truncate_tables!
7
+ end
8
+
9
+ def truncate_tables!
10
+ (db.tables - [:schema_migrations]).each do |table|
11
+ db << "truncate #{table}"
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
@@ -1,5 +1,5 @@
1
1
  module Vault
2
2
  module Test
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
@@ -7,6 +7,7 @@ require "vault-test-tools/test_case"
7
7
  require "vault-test-tools/spec"
8
8
  require "vault-test-tools/environment_helpers"
9
9
  require "vault-test-tools/html_helpers"
10
+ require "vault-test-tools/db_helpers"
10
11
 
11
12
  module Vault
12
13
  module Test
@@ -18,7 +19,3 @@ module Vault
18
19
  end
19
20
  end
20
21
  end
21
-
22
- Vault::Test.include_in_all Rack::Test::Methods
23
- Vault::Test.include_in_all Vault::Test::EnvironmentHelpers
24
- Vault::Test.include_in_all Vault::Test::HTMLHelpers
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vault-test-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-12-12 00:00:00.000000000 Z
13
+ date: 2012-12-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: turn
@@ -161,6 +161,7 @@ files:
161
161
  - bin/pt
162
162
  - bin/t
163
163
  - lib/vault-test-tools.rb
164
+ - lib/vault-test-tools/db_helpers.rb
164
165
  - lib/vault-test-tools/environment_helpers.rb
165
166
  - lib/vault-test-tools/html_helpers.rb
166
167
  - lib/vault-test-tools/spec.rb
@@ -183,7 +184,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
183
184
  version: '0'
184
185
  segments:
185
186
  - 0
186
- hash: -3536317763819734531
187
+ hash: -1824475847085090889
187
188
  required_rubygems_version: !ruby/object:Gem::Requirement
188
189
  none: false
189
190
  requirements:
@@ -192,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
193
  version: '0'
193
194
  segments:
194
195
  - 0
195
- hash: -3536317763819734531
196
+ hash: -1824475847085090889
196
197
  requirements: []
197
198
  rubyforge_project:
198
199
  rubygems_version: 1.8.23