specstar-models 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 42dbdd082501b4a6d7e9d53165416f298b5f86de
4
- data.tar.gz: 35e0f308ba5a548ed8727fd550f2dec828c8ce8e
3
+ metadata.gz: 3b7b8af0d565b35e6cd059cd52812b85e0af4030
4
+ data.tar.gz: 45b95b264c0689627e7a0c67064c6af230637fcb
5
5
  SHA512:
6
- metadata.gz: 5bc7a164a5162e4d5998fc1f248c86227ebbf425f70557e28ab4b1d14753e0564b5604bcbef153bd462bb2777f13147ec27263b9284ea583eb3531524accb443
7
- data.tar.gz: baf7a64d9044e0ebc6abbec7682be40aa7c2dd7441635d6ba4e9d0d342b7107e7360d8617f0729bfd27e7dbd1987a50e5fd0f0564afccb04577586de9ed4afe7
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
- "expected #{model.class} to belong to #{attr}."
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.6
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-06-10 00:00:00.000000000 Z
11
+ date: 2015-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-core