unidom-common-rspec 0.7.1 → 0.7.2

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: 76af4426cca01ee290ec6187843f43ee24de1a73
4
- data.tar.gz: 9328c848efa8e23bdab6e7ed9f7441faea185365
3
+ metadata.gz: 8668718e519295468c144a5e4fbde4f6ddb7b4ee
4
+ data.tar.gz: 2d311c582e71ef5ccf8c4d02a54d9f4699e11261
5
5
  SHA512:
6
- metadata.gz: e366c40be2be1f72a3e8580e1b1b18ebfc3601eae9b54ca1aa180c48a8a7de001ec89c9637c1d61371bd65a92424b88a25e721b3427650da570ce69c82243643
7
- data.tar.gz: a8917c10fefd533dfe66eb7a3704660a153100bc8a235f2b01e11f9af9b3a1e1df55727308e491e5c38008bd7db977a93204ee93d78d2f03730fa92a8a97b7ba
6
+ metadata.gz: 1874e4a989989575e73d78723c2b9c22c928c0077582216ccc59315462bc9e48b09f7c1451df2cfb14f0ab53a7ee6347ccfd04fa5da6df18c90f3029f31b1165
7
+ data.tar.gz: df2baf2d47b5b337ddf2f6713cfbfeea1f6bc967b2d72c5f6a3a889b6c3ac136dc2d29936bd1c08e8fc505b274f96ecf4bee0fe8d179583e7d4a0c0a48258ab6
data/CHANGELOG.md CHANGED
@@ -15,17 +15,17 @@
15
15
  ## v0.5
16
16
  1. Belongs To shared examples
17
17
  2. Improved the Model Extension shared examples for the validates behaviors of the #``grade`` attribute & the #``priority`` attribute
18
- 3. Improved the Model Extension shared examples for the scope behaviours of the #priority attribute
18
+ 3. Improved the Model Extension shared examples for the scope behaviours of the #``priority`` attribute
19
19
 
20
20
  ## v0.6
21
21
  1. Has One shared examples
22
22
 
23
23
  ## v0.6.1
24
- 1. Improved the Belongs To shared examples for the #build_association method, the #create_association method, & the #create_association! method
25
- 2. Improved the Has One shared examples for the #build_association method, the #create_association method, & the #create_association! method
24
+ 1. Improved the Belongs To shared examples for the #``build_association`` method, the #``create_association`` method, & the #``create_association!`` method
25
+ 2. Improved the Has One shared examples for the #``build_association`` method, the #``create_association`` method, & the #``create_association!`` method
26
26
 
27
27
  ## v0.6.2
28
- 1. Improve the Has Many shared examples for the #collection.build method, the #collection.create method, & the #collection.create! method
28
+ 1. Improve the Has Many shared examples for the #``collection.build`` method, the #collection.create method, & the #collection.create! method
29
29
 
30
30
  ## v0.7
31
31
  1. Each Validator shared examples
@@ -33,3 +33,6 @@
33
33
  ## v0.7.1
34
34
  1. Improve the Model Extension shared examples for the .ordinal_is scope, the .grade_is scope, the .grade_higher_than scope, the .grade_lower_than scope, the .priority_is scope, the .priority_higher_than scope, & the .priority_lower_than scope
35
35
  2. Improve the Model Extension shared examples for the #ordinal validation
36
+
37
+ ## v0.7.2
38
+ 1. Improve the Validates shared examples for the failure message
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unidom-common-rspec (0.7)
4
+ unidom-common-rspec (0.7.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -24,24 +24,24 @@ GEM
24
24
  i18n (~> 0.7)
25
25
  minitest (~> 5.1)
26
26
  tzinfo (~> 1.1)
27
- builder (3.2.2)
28
- concurrent-ruby (1.0.3)
29
- diff-lcs (1.2.5)
27
+ builder (3.2.3)
28
+ concurrent-ruby (1.0.4)
29
+ diff-lcs (1.3)
30
30
  erubis (2.7.0)
31
- i18n (0.7.0)
31
+ i18n (0.8.0)
32
32
  loofah (2.0.3)
33
33
  nokogiri (>= 1.5.9)
34
34
  method_source (0.8.2)
35
35
  mini_portile2 (2.1.0)
36
36
  minitest (5.10.1)
37
- nokogiri (1.6.8.1)
37
+ nokogiri (1.7.0.1)
38
38
  mini_portile2 (~> 2.1.0)
39
39
  rack (2.0.1)
40
40
  rack-test (0.6.3)
41
41
  rack (>= 1.0)
42
- rails-dom-testing (2.0.1)
42
+ rails-dom-testing (2.0.2)
43
43
  activesupport (>= 4.2.0, < 6.0)
44
- nokogiri (~> 1.6.0)
44
+ nokogiri (~> 1.6)
45
45
  rails-html-sanitizer (1.0.3)
46
46
  loofah (~> 2.0)
47
47
  railties (5.0.1)
data/ROADMAP.md CHANGED
@@ -15,17 +15,17 @@
15
15
  ## v0.5
16
16
  1. Belongs To shared examples
17
17
  2. Improve the Model Extension shared examples for the validates behaviors of the #``grade`` attribute & the #``priority`` attribute
18
- 3. Improve the Model Extension shared examples for the scope behaviours of the #priority attribute
18
+ 3. Improve the Model Extension shared examples for the scope behaviours of the #``priority`` attribute
19
19
 
20
20
  ## v0.6
21
21
  1. Has One shared examples
22
22
 
23
23
  ## v0.6.1
24
- 1. Improve the Belongs To shared examples for the #build_association method, the #create_association method, & the #create_association! method
25
- 2. Improve the Has One shared examples for the #build_association method, the #create_association method, & the #create_association! method
24
+ 1. Improve the Belongs To shared examples for the #``build_association`` method, the #``create_association`` method, & the #``create_association!`` method
25
+ 2. Improve the Has One shared examples for the #``build_association`` method, the #``create_association`` method, & the #``create_association!`` method
26
26
 
27
27
  ## v0.6.2
28
- 1. Improve the Has Many shared examples for the #collection.build method, the #collection.create method, & the #collection.create! method
28
+ 1. Improve the Has Many shared examples for the #``collection.build`` method, the #collection.create method, & the #collection.create! method
29
29
 
30
30
  ## v0.7
31
31
  1. Each Validator shared examples
@@ -33,3 +33,6 @@
33
33
  ## v0.7.1
34
34
  1. Improve the Model Extension shared examples for the .ordinal_is scope, the .grade_is scope, the .grade_higher_than scope, the .grade_lower_than scope, the .priority_is scope, the .priority_higher_than scope, & the .priority_lower_than scope
35
35
  2. Improve the Model Extension shared examples for the #ordinal validation
36
+
37
+ ## v0.7.2
38
+ 1. Improve the Validates shared examples for the failure message
@@ -22,8 +22,8 @@ shared_examples 'validates' do |model_attributes, attribute_name, error_attribut
22
22
  count_errors = "has #{error_count} error#{error_count>1 ? 's' : ''}"
23
23
 
24
24
  if error_count>0
25
- it 'is invalid' do expect(error_instance).to be_invalid end
26
- it count_errors do expect(error_instance.errors[attribute_name].size).to eq(error_count) end
25
+ it 'is invalid' do expect(error_instance).to be_invalid end
26
+ it count_errors do expect(error_instance.errors[attribute_name].size).to eq(error_count), "expected: #{error_count} error#{1!=error_count ? 's' : ''}\n got: #{error_instance.errors[attribute_name].size} error#{1!=error_instance.errors[attribute_name].size ? 's' : ''}: #{error_instance.errors[attribute_name].map(&:inspect).join ', '}" end
27
27
  else
28
28
  it 'is valid' do expect(error_instance).to be_valid end
29
29
  end
@@ -1,7 +1,7 @@
1
1
  module Unidom
2
2
  module Common
3
3
  module RSpec
4
- VERSION = '0.7.1'
4
+ VERSION = '0.7.2'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-common-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Topbit Du
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-27 00:00:00.000000000 Z
11
+ date: 2017-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-rails