remockable 0.3.2 → 0.3.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bb3b7e37b2ac626198580bd22c90b9a4c18171f
|
4
|
+
data.tar.gz: d9073144ae904365b5e5ccb56d27484f81588d5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35e6b8ed0005b93889b45304868e22dfd57630507f61dc76438b8d8f70dea25cc92dcb0ee6965873de13c976955a309481de3027ce6f657b1c77455dbf802072
|
7
|
+
data.tar.gz: 7af9f8eaefd19df6e7e318b9e6b9975269dca8b6f720fbebcbe34e556a886ad90e3defab7cda7701d18359f7c4e9cf9cdb53b3beb2267f479689b282442309be
|
data/CHANGELOG.md
CHANGED
data/lib/remockable/version.rb
CHANGED
@@ -53,5 +53,11 @@ describe :belong_to do
|
|
53
53
|
with_option :autosave, true, false
|
54
54
|
with_option :touch, true, false
|
55
55
|
with_option :inverse_of, :users, :employees
|
56
|
+
|
57
|
+
if ActiveRecord.version > Gem::Version.new('5.0')
|
58
|
+
with_option :optional, true, false
|
59
|
+
else
|
60
|
+
with_option :required, true, false
|
61
|
+
end
|
56
62
|
end
|
57
63
|
end
|