rspec-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: 7ace673ab182267596f7f45b894231889155fb77
4
- data.tar.gz: c3e4e888d302e1b5d1eaa13942587f19c9f69133
3
+ metadata.gz: 40ce063801a62757af06919137b882176628056a
4
+ data.tar.gz: d66cf0572dd6518ccaf446ad7d728fb94e4258d5
5
5
  SHA512:
6
- metadata.gz: 389604afe02421b86c01a83b000d925acb51f4bf280bd555469e08eb87759e6e50259ca659fecd3882008f5057edda6ced19a4bbfd2900a903031500dd31a048
7
- data.tar.gz: 0e08797ded77a93a0f7fe598a22e13a253bd835539cffcecf05ce6874b5950d2ebc80e4c21f1a8f85a7ac1ad0a9e634cab914ae3881ba3dcdbdba1490935f090
6
+ metadata.gz: 275f739bf8909978777bf7b697a2f820ccecf260d12740405bfb7fda19208a5da41e9e0c875993b719470de56903b7f196a79d7916763f9397cef929606d4c1f
7
+ data.tar.gz: 32a532e5c40d30410a53759d8ee588c92a7f739e6c6e345657de5455955ae420d84c085cd3f57a1e0b64ac5b36a71cebcd2d54d752e30385d6549ce5d9fa1ca3
@@ -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: rspec-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