mongoid-rspec 2.2.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +2 -2
- data/Gemfile +2 -2
- data/README.md +14 -5
- data/lib/mongoid-rspec.rb +1 -33
- data/lib/mongoid/rspec.rb +33 -0
- data/lib/{mongoid-rspec → mongoid/rspec}/version.rb +1 -1
- data/mongoid-rspec.gemspec +4 -3
- data/spec/spec_helper.rb +3 -0
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b504e1e16799457c84312c3adc8eb0087c4f73a5
|
4
|
+
data.tar.gz: 8e7b3f190ccae6c7176e060058361b12ef9ba419
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80b798e3c37139a718d8d5ee53dabdfddfe5936e3aebc5ab2cf844533761f038fb87c1be831ccbf2f3cb13a2748090890069273250b9046e9951404b6e10f3ff
|
7
|
+
data.tar.gz: 67ef37f44c29b2484157fa048de71365af86e2aad025a064e72167303ebfc0fd2e786832c04652a193f00a05dc4e816559095ef19476920fa53eb345910cabf7
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2.
|
1
|
+
2.2.3
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,13 +1,19 @@
|
|
1
|
-
# mongoid-rspec
|
1
|
+
# [mongoid-rspec]
|
2
2
|
|
3
3
|
[![Build Status][travis_badge]][travis]
|
4
4
|
[![Gem Version][rubygems_badge]][rubygems]
|
5
5
|
[![Code Climate][codeclimate_badge]][codeclimate]
|
6
6
|
|
7
|
-
mongoid-rspec provides a collection of RSpec-compatible matchers that help to test
|
7
|
+
mongoid-rspec provides a collection of RSpec-compatible matchers that help to test Mongoid documents.
|
8
8
|
|
9
9
|
## Installation
|
10
10
|
|
11
|
+
### With Mongoid 5.x
|
12
|
+
|
13
|
+
Use mongoid-rspec [3.0.0][mongoid5]
|
14
|
+
|
15
|
+
gem 'mongoid-rspec', '3.0.0'
|
16
|
+
|
11
17
|
### With Mongoid 4.x
|
12
18
|
|
13
19
|
Use mongoid-rspec [2.1.0][mongoid4]
|
@@ -221,10 +227,13 @@ Thanks to [Durran Jordan][durran] for providing the changes necessary to make
|
|
221
227
|
this compatible with mongoid 2.0.0.rc, and for other [contributors](https://github.com/mongoid-rspec/mongoid-rspec/contributors)
|
222
228
|
to this project.
|
223
229
|
|
230
|
+
[mongoid-rspec]: https://github.com/mongoid-rspec/mongoid-rspec "A collection of RSpec-compatible matchers that help to test Mongoid documents."
|
231
|
+
|
224
232
|
[durran]: https://github.com/durran
|
225
|
-
[mongoid2]:
|
226
|
-
[mongoid3]:
|
227
|
-
[mongoid4]:
|
233
|
+
[mongoid2]: https://rubygems.org/gems/mongoid-rspec/versions/1.4.5
|
234
|
+
[mongoid3]: https://rubygems.org/gems/mongoid-rspec/versions/1.13.0
|
235
|
+
[mongoid4]: https://rubygems.org/gems/mongoid-rspec/versions/2.1.0
|
236
|
+
[mongoid5]: https://rubygems.org/gems/mongoid-rspec/versions/3.0.0
|
228
237
|
|
229
238
|
[travis_badge]: http://img.shields.io/travis/mongoid-rspec/mongoid-rspec.svg?style=flat
|
230
239
|
[travis]: https://travis-ci.org/mongoid-rspec/mongoid-rspec
|
data/lib/mongoid-rspec.rb
CHANGED
@@ -1,33 +1 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require 'mongoid'
|
4
|
-
require 'rspec/core'
|
5
|
-
require 'rspec/expectations'
|
6
|
-
require 'rspec/mocks'
|
7
|
-
require "active_model"
|
8
|
-
require 'matchers/document'
|
9
|
-
require 'matchers/associations'
|
10
|
-
require 'matchers/collections'
|
11
|
-
require 'matchers/indexes'
|
12
|
-
require 'matchers/allow_mass_assignment'
|
13
|
-
require 'matchers/accept_nested_attributes'
|
14
|
-
require 'matchers/validations'
|
15
|
-
require 'matchers/validations/with_message'
|
16
|
-
require 'matchers/validations/associated'
|
17
|
-
require 'matchers/validations/confirmation_of'
|
18
|
-
require 'matchers/validations/exclusion_of'
|
19
|
-
require 'matchers/validations/format_of'
|
20
|
-
require 'matchers/validations/inclusion_of'
|
21
|
-
require 'matchers/validations/length_of'
|
22
|
-
require 'matchers/validations/numericality_of'
|
23
|
-
require 'matchers/validations/presence_of'
|
24
|
-
require 'matchers/validations/uniqueness_of'
|
25
|
-
require 'matchers/validations/acceptance_of'
|
26
|
-
require 'matchers/validations/custom_validation_of'
|
27
|
-
|
28
|
-
module Mongoid
|
29
|
-
module Matchers
|
30
|
-
include Mongoid::Matchers::Associations
|
31
|
-
include Mongoid::Matchers::Validations
|
32
|
-
end
|
33
|
-
end
|
1
|
+
require 'mongoid/rspec'
|
@@ -0,0 +1,33 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
|
+
|
3
|
+
require 'mongoid'
|
4
|
+
require 'rspec/core'
|
5
|
+
require 'rspec/expectations'
|
6
|
+
require 'rspec/mocks'
|
7
|
+
require "active_model"
|
8
|
+
require 'matchers/document'
|
9
|
+
require 'matchers/associations'
|
10
|
+
require 'matchers/collections'
|
11
|
+
require 'matchers/indexes'
|
12
|
+
require 'matchers/allow_mass_assignment'
|
13
|
+
require 'matchers/accept_nested_attributes'
|
14
|
+
require 'matchers/validations'
|
15
|
+
require 'matchers/validations/with_message'
|
16
|
+
require 'matchers/validations/associated'
|
17
|
+
require 'matchers/validations/confirmation_of'
|
18
|
+
require 'matchers/validations/exclusion_of'
|
19
|
+
require 'matchers/validations/format_of'
|
20
|
+
require 'matchers/validations/inclusion_of'
|
21
|
+
require 'matchers/validations/length_of'
|
22
|
+
require 'matchers/validations/numericality_of'
|
23
|
+
require 'matchers/validations/presence_of'
|
24
|
+
require 'matchers/validations/uniqueness_of'
|
25
|
+
require 'matchers/validations/acceptance_of'
|
26
|
+
require 'matchers/validations/custom_validation_of'
|
27
|
+
|
28
|
+
module Mongoid
|
29
|
+
module Matchers
|
30
|
+
include Mongoid::Matchers::Associations
|
31
|
+
include Mongoid::Matchers::Validations
|
32
|
+
end
|
33
|
+
end
|
data/mongoid-rspec.gemspec
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
$:.push File.expand_path("../lib", __FILE__)
|
3
|
-
|
3
|
+
|
4
|
+
require 'mongoid/rspec/version'
|
4
5
|
|
5
6
|
Gem::Specification.new do |s|
|
6
7
|
s.name = "mongoid-rspec"
|
@@ -20,6 +21,6 @@ Gem::Specification.new do |s|
|
|
20
21
|
s.require_paths = ["lib"]
|
21
22
|
|
22
23
|
s.add_dependency 'rake'
|
23
|
-
s.add_dependency 'mongoid', '~>
|
24
|
-
s.add_dependency 'rspec', '~> 3.
|
24
|
+
s.add_dependency 'mongoid', '~> 5.0'
|
25
|
+
s.add_dependency 'rspec', '~> 3.3'
|
25
26
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
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: 2015-
|
12
|
+
date: 2015-09-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -31,28 +31,28 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: '5.0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
41
|
+
version: '5.0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rspec
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '3.
|
48
|
+
version: '3.3'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '3.
|
55
|
+
version: '3.3'
|
56
56
|
description: RSpec matches for Mongoid models, including association and validation
|
57
57
|
matchers
|
58
58
|
email: evansagge@gmail.com contato@rodrigopinto.me
|
@@ -60,7 +60,6 @@ executables: []
|
|
60
60
|
extensions: []
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
|
-
- ".bundle/config"
|
64
63
|
- ".document"
|
65
64
|
- ".gitignore"
|
66
65
|
- ".ruby-gemset"
|
@@ -90,7 +89,8 @@ files:
|
|
90
89
|
- lib/matchers/validations/uniqueness_of.rb
|
91
90
|
- lib/matchers/validations/with_message.rb
|
92
91
|
- lib/mongoid-rspec.rb
|
93
|
-
- lib/mongoid
|
92
|
+
- lib/mongoid/rspec.rb
|
93
|
+
- lib/mongoid/rspec/version.rb
|
94
94
|
- mongoid-rspec.gemspec
|
95
95
|
- spec/models/article.rb
|
96
96
|
- spec/models/comment.rb
|
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
131
|
rubyforge_project: mongoid-rspec
|
132
|
-
rubygems_version: 2.4.5
|
132
|
+
rubygems_version: 2.4.5.1
|
133
133
|
signing_key:
|
134
134
|
specification_version: 4
|
135
135
|
summary: RSpec matchers for Mongoid
|