active_record_mocks 1.0.4 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 054f4c4d04d81c40ccb488c2aae4b6b3faf5cc62
4
- data.tar.gz: 27b0472d6063a870521cd726977ab8a5a4aca1d7
3
+ metadata.gz: 9fcd3419faf7e80f8ec5160ccd270eccec82d88f
4
+ data.tar.gz: 377cac7df140a87bbdbbdf063759bc8d5d901909
5
5
  SHA512:
6
- metadata.gz: cef1fcf4ba9bcb69dc433572fffa79a158095ded7f0832a8b19e4f89dff5e40e38cd6f42c76b519f3fa55ba87ddc7ae73de25bda35f9228bffd8aa7e0d0c129f
7
- data.tar.gz: fb63b4f39c87a57bb41a4666f3ba11f23abedadd8fda1b5eb62aa90f83d46761712697c466dea828063cb160f1e804b999d60a1186fd3b91f3b68043d37c257a
6
+ metadata.gz: 98636b133d99d44808770776ee680155a26fc85d4c88de025c7ed3e4bc96d92057e9895b498a098889320295427626bd7098feee346547248f9bcf2c6b41dfda
7
+ data.tar.gz: 81704d270bf39655b4bbc2d28eacf2106ecb0a24492a9c362fd6f1023a8696ff3d9f57b2e3f1872bd41acecc1e950ea99d0d7a393ed117894e23d50b91047981
@@ -11,8 +11,7 @@ module ActiveRecordMocks
11
11
  def with_mocked_tables(&block)
12
12
  if block_given?
13
13
  mocked_active_record.tap do |o|
14
- block.call(o)
15
- o.delete_tables
14
+ begin block.call(o); ensure o.delete_tables end
16
15
  end
17
16
  end
18
17
  nil
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordMocks
2
- VERSION = "1.0.4"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_mocks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordon Bedwell