rspec-activemodel-mocks 1.0.3 → 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
- SHA1:
3
- metadata.gz: e4aabaf01fc2ce4d1d63258a97eeae886aed9666
4
- data.tar.gz: 5d6c8954af12f2cc996525f341ecb0ef9bba96a8
2
+ SHA256:
3
+ metadata.gz: 7aad23d1dddfba78f66030c7f0cae1ac0e27d4985af0f4802ea8580b794148b7
4
+ data.tar.gz: 9857de724a896288463b66e8beb94c65a9f9c30ab7e66ec35fd2405b26db9c3c
5
5
  SHA512:
6
- metadata.gz: c93de78dbdf87d1af66ed2a589fe1ceadb3f960a2aeb9fe54f5c6e011a0337f202d7c352f9eca26c82853cc5099193db10be4fb89cff80fd8cab08ac0dec11b3
7
- data.tar.gz: a307fa11f27e7aa9695aab18356089a8ff9802d69cc6df53a47e32cf3c80f76291e22a6b6041187f610e4343427df0cf948fe9dafaef0ec133e7d8525f9fa68a
6
+ metadata.gz: b9bcd1324168510eee65b4f7a8e80efe9c463ce00f2bde09a3f479b94b63f3a23c990d14bc21b07197c33fee237e4ff9deabf10381c3afc1f483c512da1958f1
7
+ data.tar.gz: 68cd5a0eb7e7f7bed0c48a2d9b8fb9e137e4899dd2264770f66837fc19f3927e84c33743e61fd2ce46f64ac98cca0425a2ea7ab9b7fd13d6395ed9d12580aa15
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -38,6 +38,11 @@ module RSpec::ActiveModel::Mocks
38
38
  def initialize(association_name)
39
39
  @association_name = association_name
40
40
  end
41
+
42
+ def inversed_from(record)
43
+ self.target = record
44
+ @inversed = !!record
45
+ end
41
46
  end
42
47
 
43
48
  module ActiveRecordInstanceMethods
@@ -2,7 +2,7 @@ module RSpec
2
2
  module ActiveModel
3
3
  module Mocks
4
4
  module Version
5
- STRING = '1.0.3'
5
+ STRING = '1.1.0'
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-activemodel-mocks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Chelimsky
@@ -45,7 +45,7 @@ cert_chain:
45
45
  ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
46
46
  F3MdtaDehhjC
47
47
  -----END CERTIFICATE-----
48
- date: 2016-01-28 00:00:00.000000000 Z
48
+ date: 2018-09-17 00:00:00.000000000 Z
49
49
  dependencies:
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: activesupport
@@ -213,10 +213,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  version: '0'
214
214
  requirements: []
215
215
  rubyforge_project:
216
- rubygems_version: 2.5.1
216
+ rubygems_version: 2.7.6
217
217
  signing_key:
218
218
  specification_version: 4
219
- summary: rspec-activemodel-mocks-1.0.3
219
+ summary: rspec-activemodel-mocks-1.1.0
220
220
  test_files:
221
221
  - features/mocks/mock_model.feature
222
222
  - features/mocks/stub_model.feature
@@ -232,4 +232,3 @@ test_files:
232
232
  - spec/support/matchers.rb
233
233
  - spec/support/minitest_support.rb
234
234
  - spec/support/null_object.rb
235
- has_rdoc:
metadata.gz.sig CHANGED
Binary file