specstar-models 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/specstar/models/associations.rb +9 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b7b8af0d565b35e6cd059cd52812b85e0af4030
|
4
|
+
data.tar.gz: 45b95b264c0689627e7a0c67064c6af230637fcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffc5066124cd339359d7e9f22e19ae600f887adcd1d73177a2c97f8bad2ae921f45ed5804a1ea1085493eb432f6bc8bf7e1680e593c1baf5f4f64ace37d6d476
|
7
|
+
data.tar.gz: d86c835c2629e71cc1962ea8351c62fc98725d5fd0bebf5d9599b1496be5f8ded85e17e42e63b35a60fc9b92520228dba52e6649e90d40a4f602ddec3359aa36
|
@@ -18,7 +18,11 @@ module Specstar
|
|
18
18
|
end
|
19
19
|
|
20
20
|
failure_message do |model|
|
21
|
-
|
21
|
+
if options.present?
|
22
|
+
"expected #{model.class} to belong to #{attr} with #{options}."
|
23
|
+
else
|
24
|
+
"expected #{model.class} to belong to #{attr}."
|
25
|
+
end
|
22
26
|
end
|
23
27
|
end
|
24
28
|
|
@@ -29,7 +33,7 @@ module Specstar
|
|
29
33
|
end
|
30
34
|
|
31
35
|
failure_message do |model|
|
32
|
-
if options
|
36
|
+
if options.present?
|
33
37
|
"expected #{model.class} to have many #{attr} with #{options}."
|
34
38
|
else
|
35
39
|
"expected #{model.class} to have many #{attr}."
|
@@ -44,10 +48,10 @@ module Specstar
|
|
44
48
|
end
|
45
49
|
|
46
50
|
failure_message do |model|
|
47
|
-
if options
|
48
|
-
"expected #{model.class} to have many #{attr} with #{options}."
|
51
|
+
if options.present?
|
52
|
+
"expected #{model.class} to have and belong to many #{attr} with #{options}."
|
49
53
|
else
|
50
|
-
"expected #{model.class} to have many #{attr}."
|
54
|
+
"expected #{model.class} to have and belong to many #{attr}."
|
51
55
|
end
|
52
56
|
end
|
53
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: specstar-models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sujoy Gupta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec-core
|