glebtv-mongoid-rspec 1.12.0 → 3.0.0

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: b2fe5714fda2ed60f7ddfcc3e3435baca3651311
4
- data.tar.gz: 7cc78332ecf79fdf911dda3b1d08a690c0235c2b
3
+ metadata.gz: 0e0f4a897ffa7e2f6c8bd9d39c880b9f79359afb
4
+ data.tar.gz: 58ecfbd1bd90862b2663a4d9df5e65e2207db4d7
5
5
  SHA512:
6
- metadata.gz: 585662e9ca279626b7b93ff82aaf614b954d5a4513f13bb1738276fa6a7c56866d2498252d96e0e6f7f94f760dd1be0b64a5eab763fe891b9563526929b3d9fa
7
- data.tar.gz: ff4bccaf1fd97808af64b87622d2f400059d381063c98940f5ba5292ad51c850e7050806a87685e0d23d4929d53794ed750a0e5e2b4c2e7901d7c8c54d51a7fe
6
+ metadata.gz: 86ce27abfa743b9d4f0cd189a0527d97f666941c322ae56b5fbc89bfa5930f305c1510fce306b7648cb2283a58e3390164d330bda529240342d809d7b94f8cbd
7
+ data.tar.gz: d8a48294b5babb3af38172e0c5eae82bf52d7117f9e87d6ff3f86b3042d4ad03900dec550b4eb9c17835479dcc926606ebfbfbe1e0c61e2d7fbb7d1d25a821c9
@@ -1 +1 @@
1
- 2.1.1
1
+ 2.1.2
@@ -3,9 +3,6 @@ language: ruby
3
3
  rvm:
4
4
  - 2.0.0
5
5
  - 2.1.1
6
- - jruby-20mode
7
- - rbx-2.1.1
8
- - rbx-19mode
9
6
 
10
7
  gemfile:
11
8
  - Gemfile
data/README.md CHANGED
@@ -2,6 +2,7 @@ mongoid-rspec
2
2
  =
3
3
 
4
4
  [![Build Status](https://secure.travis-ci.org/glebtv/mongoid-rspec.png?branch=master)](https://travis-ci.org/glebtv/mongoid-rspec)
5
+ [![Gem Version](https://badge.fury.io/rb/glebtv-mongoid-rspec.png)](http://badge.fury.io/rb/glebtv-mongoid-rspec)
5
6
 
6
7
  http://rubygems.org/gems/glebtv-mongoid-rspec
7
8
 
@@ -21,5 +21,5 @@ Gem::Specification.new do |s|
21
21
 
22
22
  s.add_dependency 'rake'
23
23
  s.add_dependency 'mongoid', [">= 3.0", "< 4.1"]
24
- s.add_dependency 'rspec', '>= 2.14'
24
+ s.add_dependency 'rspec', '~> 3.0.0'
25
25
  end
@@ -31,6 +31,8 @@ module Mongoid
31
31
  "Did not expect #{expectation}"
32
32
  end
33
33
 
34
+ alias :failure_message_when_negated :negative_failure_message
35
+
34
36
  def description
35
37
  description = "accepts_nested_attributes_for :#{@attribute}"
36
38
  end
@@ -246,6 +246,9 @@ module Mongoid
246
246
  "Expected #{@actual.inspect} to not #{@expectation_message}, got #{@positive_result_message}"
247
247
  end
248
248
 
249
+ alias :failure_message :failure_message_for_should
250
+ alias :failure_message_when_negated :failure_message_for_should_not
251
+
249
252
  def description
250
253
  @expectation_message
251
254
  end
@@ -70,6 +70,9 @@ module Mongoid
70
70
  "Expected #{@klass.inspect} to not #{description}, got #{@klass.inspect} to #{description}"
71
71
  end
72
72
 
73
+ alias :failure_message :failure_message_for_should
74
+ alias :failure_message_when_negated :failure_message_for_should_not
75
+
73
76
  def description
74
77
  desc = "have #{@attributes.size > 1 ? 'fields' : 'field'} named #{@attributes.collect(&:inspect).to_sentence}"
75
78
  desc << " of type #{@type.inspect}" if @type
@@ -54,6 +54,9 @@ module Mongoid
54
54
  "Expected #{@klass.inspect} to not #{description}, got #{@klass.inspect} to #{description}"
55
55
  end
56
56
 
57
+ alias :failure_message :failure_message_for_should
58
+ alias :failure_message_when_negated :failure_message_for_should_not
59
+
57
60
  def description
58
61
  desc = "have an index for #{@index_fields.inspect}"
59
62
  desc << " with options of #{@options.inspect}" if @options
@@ -37,6 +37,9 @@ module Mongoid
37
37
  "Expected #{@klass.inspect} to not #{description}; instead got #{@positive_result_message}"
38
38
  end
39
39
 
40
+ alias :failure_message :failure_message_for_should
41
+ alias :failure_message_when_negated :failure_message_for_should_not
42
+
40
43
  def description
41
44
  desc = "have #{@type.inspect} validator on #{@field.inspect}"
42
45
  desc << " on #{@options[:on]}" if @options[:on]
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module Rspec
3
- VERSION = "1.12.0"
3
+ VERSION = "3.0.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glebtv-mongoid-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Sagge
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-12 00:00:00.000000000 Z
12
+ date: 2014-06-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -49,16 +49,16 @@ dependencies:
49
49
  name: rspec
50
50
  requirement: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '2.14'
54
+ version: 3.0.0
55
55
  type: :runtime
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '2.14'
61
+ version: 3.0.0
62
62
  description: RSpec matches for Mongoid models, including association and validation
63
63
  matchers
64
64
  email: evansagge@gmail.com