mongoid 6.4.4 → 6.4.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@ describe Mongoid::Findable do
10
10
  end
11
11
 
12
12
  it "returns the distinct values for the field" do
13
- expect(Band.distinct(:name)).to eq([ "Tool", "Photek" ])
13
+ expect(Band.distinct(:name).sort).to eq([ "Photek", "Tool" ])
14
14
  end
15
15
  end
16
16
 
@@ -34,6 +34,10 @@ end
34
34
 
35
35
  require 'support/authorization'
36
36
  require 'support/expectations'
37
+ require 'support/macros'
38
+ require 'support/spec_config'
39
+ require 'support/cluster_config'
40
+ require 'support/constraints'
37
41
 
38
42
  # Give MongoDB time to start up on the travis ci environment.
39
43
  if (ENV['CI'] == 'travis' || ENV['CI'] == 'evergreen')
@@ -127,8 +131,13 @@ end
127
131
  I18n.config.enforce_available_locales = false
128
132
 
129
133
  RSpec.configure do |config|
134
+ config.expect_with(:rspec) do |c|
135
+ c.syntax = [:should, :expect]
136
+ end
137
+
130
138
  config.raise_errors_for_deprecations!
131
139
  config.include(Mongoid::Expectations)
140
+ config.extend(Constraints)
132
141
 
133
142
  config.before(:suite) do
134
143
  client = Mongo::Client.new(["#{HOST}:#{PORT}"])
@@ -0,0 +1,158 @@
1
+ # frozen_string_literal: true
2
+ # encoding: utf-8
3
+
4
+ require 'singleton'
5
+
6
+ class ClusterConfig
7
+ include Singleton
8
+
9
+ def single_server?
10
+ determine_cluster_config
11
+ @single_server
12
+ end
13
+
14
+ def replica_set_name
15
+ determine_cluster_config
16
+ @replica_set_name
17
+ end
18
+
19
+ def server_version
20
+ determine_cluster_config
21
+ @server_version
22
+ end
23
+
24
+ def short_server_version
25
+ server_version.split('.')[0..1].join('.')
26
+ end
27
+
28
+ def fcv
29
+ determine_cluster_config
30
+ @fcv
31
+ end
32
+
33
+ # Per https://jira.mongodb.org/browse/SERVER-39052, working with FCV
34
+ # in sharded topologies is annoying. Also, FCV doesn't exist in servers
35
+ # less than 3.4. This method returns FCV on 3.4+ servers when in single
36
+ # or RS topologies, and otherwise returns the major.minor server version.
37
+ def fcv_ish
38
+ if server_version >= '3.4' && topology != :sharded
39
+ fcv
40
+ else
41
+ if short_server_version == '4.1'
42
+ '4.2'
43
+ else
44
+ short_server_version
45
+ end
46
+ end
47
+ end
48
+
49
+ def primary_address
50
+ determine_cluster_config
51
+ @primary_address
52
+ end
53
+
54
+ def primary_address_str
55
+ determine_cluster_config
56
+ @primary_address.seed
57
+ end
58
+
59
+ def primary_address_host
60
+ both = primary_address_str
61
+ both.split(':').first
62
+ end
63
+
64
+ def primary_address_port
65
+ both = primary_address_str
66
+ both.split(':')[1] || 27017
67
+ end
68
+
69
+ def primary_description
70
+ determine_cluster_config
71
+ @primary_description
72
+ end
73
+
74
+ # Try running a command on the admin database to see if the mongod was
75
+ # started with auth.
76
+ def auth_enabled?
77
+ if @auth_enabled.nil?
78
+ @auth_enabled = begin
79
+ basic_client.use(:admin).command(getCmdLineOpts: 1).first["argv"].include?("--auth")
80
+ rescue => e
81
+ e.message =~ /(not authorized)|(unauthorized)|(no users authenticated)|(requires authentication)/
82
+ end
83
+ end
84
+ @auth_enabled
85
+ end
86
+
87
+ def topology
88
+ determine_cluster_config
89
+ @topology
90
+ end
91
+
92
+ def storage_engine
93
+ @storage_engine ||= begin
94
+ # 2.6 does not have wired tiger
95
+ if short_server_version == '2.6'
96
+ :mmapv1
97
+ else
98
+ client = ClientRegistry.instance.global_client('root_authorized')
99
+ if topology == :sharded
100
+ shards = client.use(:admin).command(listShards: 1).first
101
+ shard = shards['shards'].first
102
+ address_str = shard['host'].sub(/^.*\//, '').sub(/,.*/, '')
103
+ client = ClusterTools.instance.direct_client(address_str,
104
+ SpecConfig.instance.test_options.merge(SpecConfig.instance.auth_options).merge(connect: :direct))
105
+ end
106
+ rv = client.use(:admin).command(serverStatus: 1).first
107
+ rv = rv['storageEngine']['name']
108
+ rv_map = {
109
+ 'wiredTiger' => :wired_tiger,
110
+ 'mmapv1' => :mmapv1,
111
+ }
112
+ rv_map[rv] || rv
113
+ end
114
+ end
115
+ end
116
+
117
+ private
118
+
119
+ def determine_cluster_config
120
+ return if @primary_address
121
+
122
+ # Run all commands to figure out the cluster configuration from the same
123
+ # client. This is somewhat wasteful when running a single test, but reduces
124
+ # test runtime for the suite overall because all commands are sent on the
125
+ # same connection rather than each command connecting to the cluster by
126
+ # itself.
127
+ client = Mongoid::Clients.default
128
+
129
+ primary = client.cluster.next_primary
130
+ @primary_address = primary.address
131
+ @primary_description = primary.description
132
+ @replica_set_name = client.cluster.topology.replica_set_name
133
+
134
+ @topology ||= begin
135
+ topology = client.cluster.topology.class.name.sub(/.*::/, '')
136
+ topology = topology.gsub(/([A-Z])/) { |match| '_' + match.downcase }.sub(/^_/, '')
137
+ if topology =~ /^replica_set/
138
+ topology = 'replica_set'
139
+ end
140
+ topology.to_sym
141
+ end
142
+
143
+ @single_server = client.cluster.send(:servers_list).length == 1
144
+
145
+ @server_version = client.database.command(buildInfo: 1).first['version']
146
+
147
+ if @topology != :sharded && short_server_version >= '3.4'
148
+ rv = client.use(:admin).command(getParameter: 1, featureCompatibilityVersion: 1).first['featureCompatibilityVersion']
149
+ @fcv = rv['version'] || rv
150
+ end
151
+ end
152
+
153
+ def basic_client
154
+ # Do not cache the result here so that if the client gets closed,
155
+ # client registry reconnects it in subsequent tests
156
+ ClientRegistry.instance.global_client('basic')
157
+ end
158
+ end
@@ -0,0 +1,101 @@
1
+ module Constraints
2
+ RAILS_VERSION = ActiveSupport.version.to_s.split('.')[0..1].join('.').freeze
3
+
4
+ def min_rails_version(version)
5
+ unless version =~ /^\d+\.\d+$/
6
+ raise ArgumentError, "Version can only be major.minor: #{version}"
7
+ end
8
+
9
+ before do
10
+ if version > RAILS_VERSION
11
+ skip "Rails version #{version} or higher required, we have #{RAILS_VERSION}"
12
+ end
13
+ end
14
+ end
15
+
16
+ def max_rails_version(version)
17
+ unless version =~ /^\d+\.\d+$/
18
+ raise ArgumentError, "Version can only be major.minor: #{version}"
19
+ end
20
+
21
+ before do
22
+ if version < RAILS_VERSION
23
+ skip "Rails version #{version} or lower required, we have #{RAILS_VERSION}"
24
+ end
25
+ end
26
+ end
27
+
28
+ def min_server_version(version)
29
+ unless version =~ /^\d+\.\d+$/
30
+ raise ArgumentError, "Version can only be major.minor: #{version}"
31
+ end
32
+
33
+ before do
34
+ if version > ClusterConfig.instance.server_version
35
+ skip "Server version #{version} or higher required, we have #{ClusterConfig.instance.server_version}"
36
+ end
37
+ end
38
+ end
39
+
40
+ def max_server_version(version)
41
+ unless version =~ /^\d+\.\d+$/
42
+ raise ArgumentError, "Version can only be major.minor: #{version}"
43
+ end
44
+
45
+ before do
46
+ if version < ClusterConfig.instance.short_server_version
47
+ skip "Server version #{version} or lower required, we have #{ClusterConfig.instance.server_version}"
48
+ end
49
+ end
50
+ end
51
+
52
+ def require_topology(*topologies)
53
+ topologies = topologies.map { |t| t.to_s }
54
+ invalid_topologies = topologies - %w(single replica_set sharded)
55
+ unless invalid_topologies.empty?
56
+ raise ArgumentError, "Invalid topologies requested: #{invalid_topologies.join(', ')}"
57
+ end
58
+ before do
59
+ topology = Mongoid.default_client.cluster.topology.class.name.sub(/.*::/, '')
60
+ topology = topology.gsub(/([A-Z])/) { |match| '_' + match.downcase }.sub(/^_/, '')
61
+ if topology =~ /^replica_set/
62
+ topology = 'replica_set'
63
+ end
64
+ unless topologies.include?(topology)
65
+ skip "Topology #{topologies.join(' or ')} required, we have #{topology}"
66
+ end
67
+ end
68
+ end
69
+
70
+ def max_example_run_time(timeout)
71
+ around do |example|
72
+ TimeoutInterrupt.timeout(timeout) do
73
+ example.run
74
+ end
75
+ end
76
+ end
77
+
78
+ def require_transaction_support
79
+ min_server_version '4.0'
80
+ require_topology :replica_set
81
+ end
82
+
83
+ def require_scram_sha_256_support
84
+ before do
85
+ $mongo_server_features ||= begin
86
+ scanned_client_server!.features
87
+ end
88
+ unless $mongo_server_features.scram_sha_256_enabled?
89
+ skip "SCRAM SHA 256 is not enabled on the server"
90
+ end
91
+ end
92
+ end
93
+
94
+ def require_ssl
95
+ before do
96
+ unless SpecConfig.instance.ssl?
97
+ skip "SSL not enabled"
98
+ end
99
+ end
100
+ end
101
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Mongoid
4
+ module Macros
5
+ def use_spec_mongoid_config
6
+ around do |example|
7
+ config_path = File.join(File.dirname(__FILE__), "..", "config", "mongoid.yml")
8
+
9
+ Mongoid::Clients.clear
10
+ Mongoid.load!(config_path, :test)
11
+
12
+ begin
13
+ example.run
14
+ ensure
15
+ Mongoid::Config.reset
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+ # encoding: utf-8
3
+
4
+ require 'singleton'
5
+
6
+ class SpecConfig
7
+ include Singleton
8
+
9
+ def initialize
10
+ if ENV['MONGODB_URI']
11
+ @mongodb_uri = Mongo::URI.new(ENV['MONGODB_URI'])
12
+ end
13
+ end
14
+
15
+ def addresses
16
+ if @mongodb_uri
17
+ @mongodb_uri.servers
18
+ else
19
+ ['127.0.0.1']
20
+ end
21
+ end
22
+
23
+ def mri?
24
+ !jruby?
25
+ end
26
+
27
+ def jruby?
28
+ RUBY_PLATFORM =~ /\bjava\b/
29
+ end
30
+
31
+ def platform
32
+ RUBY_PLATFORM
33
+ end
34
+
35
+ def client_debug?
36
+ %w(1 true yes).include?((ENV['CLIENT_DEBUG'] || '').downcase)
37
+ end
38
+
39
+ def ci?
40
+ !!ENV['CI']
41
+ end
42
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.4.4
4
+ version: 6.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Durran Jordan
@@ -11,8 +11,8 @@ cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
13
  MIIDRDCCAiygAwIBAgIBATANBgkqhkiG9w0BAQsFADAmMSQwIgYDVQQDDBtkcml2
14
- ZXItcnVieS9EQz0xMGdlbi9EQz1jb20wHhcNMTkwMTE3MjIzMDE1WhcNMjAwMTE3
15
- MjIzMDE1WjAmMSQwIgYDVQQDDBtkcml2ZXItcnVieS9EQz0xMGdlbi9EQz1jb20w
14
+ ZXItcnVieS9EQz0xMGdlbi9EQz1jb20wHhcNMjAwMTIzMTkzNjAxWhcNMjEwMTIy
15
+ MTkzNjAxWjAmMSQwIgYDVQQDDBtkcml2ZXItcnVieS9EQz0xMGdlbi9EQz1jb20w
16
16
  ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDRXUgGvH0ZtWwDPc2umdHw
17
17
  B+INNm6jNTRp8PMyUKxPzxaxX2OiBQk9gLC3zsK9ZmlZu4lNfpHVSCEPoiP/fhPg
18
18
  Kyfq2xld3Qz0Pki5d5i0/r14343MTKiNiFulLlbbdlN0cXeEFNJHUycZnD2LOXwz
@@ -22,14 +22,14 @@ cert_chain:
22
22
  AgMBAAGjfTB7MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBRbd1mx
23
23
  fvSaVIwKI+tnEAYDW/B81zAgBgNVHREEGTAXgRVkcml2ZXItcnVieUAxMGdlbi5j
24
24
  b20wIAYDVR0SBBkwF4EVZHJpdmVyLXJ1YnlAMTBnZW4uY29tMA0GCSqGSIb3DQEB
25
- CwUAA4IBAQBtXpljL+EXFgH2YRSkYTNn9WKurclJKqaMTJvJoEm2mX1IbAg+BX+i
26
- Eb+rKelkjezRqVkurzRjif8RI9aGBpAyfobQfHHJNzHQzSFwhEmwlGDQRgQzrDhN
27
- cbkRB2wDgGJNjnjMKLXfeZX+SjWAsHDrOc+Ue9nHs2AdJxCTDgB1MMNGZ1UjLL9/
28
- HhO93otEnxwCVijD9ruORb0bT9LlNKosQQEzrhXtOtNK9k7s7G6Gi0BFMOIJDVyq
29
- bMYVwXXhV8czdzgkQB/ZPWHSbEWXnmkze1mzvqWBCPOVXYrcnL9cnEl/RoxtS1hr
30
- Db6Ac6mCUSYfYHBWpWqxjc45n70i5Xi1
25
+ CwUAA4IBAQBfX4dwxG5PhtxES/LDEOaZIZXyaX6CKe367zhW+HxWbSOXMQJFkIQj
26
+ m7tzT+sDFJXyiOv5cPtfpUam5pTiryzRw5HD6oxlPIt5vO15EJ69v++3m7shMLbw
27
+ amZOajKXmu2ZGZfhOtj7bOTwmOj1AnWLKeOQIR3STvvfZCD+6dt1XenW7CdjCsxE
28
+ ifervPjLFqFPsMOgaxikhgPK6bRtszrQhJSYlifKKzxbX1hYAsmGL7IxjubFSV5r
29
+ gpvfPNWMwyBDlHaNS3GfO6cRRxBOvEG05GUCsvtTY4Bpe8yjE64wg1ymb47LMOnv
30
+ Qb1lGORmf/opg45mluKUYl7pQNZHD0d3
31
31
  -----END CERTIFICATE-----
32
- date: 2019-05-24 00:00:00.000000000 Z
32
+ date: 2020-06-03 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: activemodel
@@ -441,6 +441,7 @@ files:
441
441
  - spec/app/models/country_code.rb
442
442
  - spec/app/models/courier_job.rb
443
443
  - spec/app/models/definition.rb
444
+ - spec/app/models/delegating_patient.rb
444
445
  - spec/app/models/description.rb
445
446
  - spec/app/models/dictionary.rb
446
447
  - spec/app/models/division.rb
@@ -595,6 +596,7 @@ files:
595
596
  - spec/app/models/word_origin.rb
596
597
  - spec/app/models/writer.rb
597
598
  - spec/config/mongoid.yml
599
+ - spec/integration/document_spec.rb
598
600
  - spec/mongoid/atomic/modifiers_spec.rb
599
601
  - spec/mongoid/atomic/paths/embedded/many_spec.rb
600
602
  - spec/mongoid/atomic/paths/embedded/one_spec.rb
@@ -855,7 +857,11 @@ files:
855
857
  - spec/rails/mongoid_spec.rb
856
858
  - spec/spec_helper.rb
857
859
  - spec/support/authorization.rb
860
+ - spec/support/cluster_config.rb
861
+ - spec/support/constraints.rb
858
862
  - spec/support/expectations.rb
863
+ - spec/support/macros.rb
864
+ - spec/support/spec_config.rb
859
865
  homepage: http://mongoid.org
860
866
  licenses:
861
867
  - MIT
@@ -875,480 +881,486 @@ required_rubygems_version: !ruby/object:Gem::Requirement
875
881
  - !ruby/object:Gem::Version
876
882
  version: 1.3.6
877
883
  requirements: []
878
- rubygems_version: 3.0.1
884
+ rubygems_version: 3.1.2
879
885
  signing_key:
880
886
  specification_version: 4
881
887
  summary: Elegant Persistence in Ruby for MongoDB.
882
888
  test_files:
883
- - spec/support/expectations.rb
884
- - spec/support/authorization.rb
885
- - spec/mongoid_spec.rb
886
- - spec/mongoid/extensions_spec.rb
887
- - spec/mongoid/loggable_spec.rb
889
+ - spec/app/models/house.rb
890
+ - spec/app/models/shipment_address.rb
891
+ - spec/app/models/address_number.rb
892
+ - spec/app/models/player.rb
893
+ - spec/app/models/filesystem.rb
894
+ - spec/app/models/child.rb
895
+ - spec/app/models/eraser.rb
896
+ - spec/app/models/book.rb
897
+ - spec/app/models/palette.rb
898
+ - spec/app/models/sound.rb
899
+ - spec/app/models/cat.rb
900
+ - spec/app/models/staff.rb
901
+ - spec/app/models/square.rb
902
+ - spec/app/models/video_game.rb
903
+ - spec/app/models/audio.rb
904
+ - spec/app/models/truck.rb
905
+ - spec/app/models/store_as_dup_test1.rb
906
+ - spec/app/models/artwork.rb
907
+ - spec/app/models/pronunciation.rb
908
+ - spec/app/models/contextable_item.rb
909
+ - spec/app/models/word.rb
910
+ - spec/app/models/track.rb
911
+ - spec/app/models/post_genre.rb
912
+ - spec/app/models/tag.rb
913
+ - spec/app/models/comment.rb
914
+ - spec/app/models/big_palette.rb
915
+ - spec/app/models/callback_test.rb
916
+ - spec/app/models/lat_lng.rb
917
+ - spec/app/models/html_writer.rb
918
+ - spec/app/models/post.rb
919
+ - spec/app/models/bus.rb
920
+ - spec/app/models/consumption_period.rb
921
+ - spec/app/models/eye_bowl.rb
922
+ - spec/app/models/definition.rb
923
+ - spec/app/models/dungeon.rb
924
+ - spec/app/models/shelf.rb
925
+ - spec/app/models/basic.rb
926
+ - spec/app/models/image.rb
927
+ - spec/app/models/appointment.rb
928
+ - spec/app/models/array_field.rb
929
+ - spec/app/models/short_quiz.rb
930
+ - spec/app/models/implant.rb
931
+ - spec/app/models/explosion.rb
932
+ - spec/app/models/kangaroo.rb
933
+ - spec/app/models/page.rb
934
+ - spec/app/models/vet_visit.rb
935
+ - spec/app/models/parent.rb
936
+ - spec/app/models/favorite.rb
937
+ - spec/app/models/vehicle.rb
938
+ - spec/app/models/version.rb
939
+ - spec/app/models/person.rb
940
+ - spec/app/models/answer.rb
941
+ - spec/app/models/writer.rb
942
+ - spec/app/models/phone.rb
943
+ - spec/app/models/building_address.rb
944
+ - spec/app/models/entry.rb
945
+ - spec/app/models/kaleidoscope.rb
946
+ - spec/app/models/circus.rb
947
+ - spec/app/models/validation_callback.rb
948
+ - spec/app/models/animal.rb
949
+ - spec/app/models/pub.rb
950
+ - spec/app/models/face.rb
951
+ - spec/app/models/registry.rb
952
+ - spec/app/models/word_origin.rb
953
+ - spec/app/models/user.rb
954
+ - spec/app/models/thing.rb
955
+ - spec/app/models/employer.rb
956
+ - spec/app/models/name.rb
957
+ - spec/app/models/fire_hydrant.rb
958
+ - spec/app/models/video.rb
959
+ - spec/app/models/title.rb
960
+ - spec/app/models/simple.rb
961
+ - spec/app/models/contractor.rb
962
+ - spec/app/models/strategy.rb
963
+ - spec/app/models/jar.rb
964
+ - spec/app/models/article.rb
965
+ - spec/app/models/quiz.rb
966
+ - spec/app/models/alert.rb
967
+ - spec/app/models/odd.rb
968
+ - spec/app/models/scheduler.rb
969
+ - spec/app/models/role.rb
970
+ - spec/app/models/agent.rb
971
+ - spec/app/models/wiki_page.rb
972
+ - spec/app/models/ghost.rb
973
+ - spec/app/models/birthday.rb
974
+ - spec/app/models/short_agent.rb
975
+ - spec/app/models/dictionary.rb
976
+ - spec/app/models/drug.rb
977
+ - spec/app/models/subscription.rb
978
+ - spec/app/models/sandwich.rb
979
+ - spec/app/models/location.rb
980
+ - spec/app/models/acolyte.rb
981
+ - spec/app/models/translation.rb
982
+ - spec/app/models/node.rb
983
+ - spec/app/models/division.rb
984
+ - spec/app/models/car.rb
985
+ - spec/app/models/email.rb
986
+ - spec/app/models/account.rb
987
+ - spec/app/models/author.rb
988
+ - spec/app/models/song.rb
989
+ - spec/app/models/courier_job.rb
990
+ - spec/app/models/seo.rb
991
+ - spec/app/models/fruits.rb
992
+ - spec/app/models/rating.rb
993
+ - spec/app/models/draft.rb
994
+ - spec/app/models/description.rb
995
+ - spec/app/models/actress.rb
996
+ - spec/app/models/survey.rb
997
+ - spec/app/models/browser.rb
998
+ - spec/app/models/exhibitor.rb
999
+ - spec/app/models/record.rb
1000
+ - spec/app/models/topping.rb
1001
+ - spec/app/models/shipping_container.rb
1002
+ - spec/app/models/pack.rb
1003
+ - spec/app/models/church.rb
1004
+ - spec/app/models/server.rb
1005
+ - spec/app/models/product.rb
1006
+ - spec/app/models/user_account.rb
1007
+ - spec/app/models/weapon.rb
1008
+ - spec/app/models/parent_doc.rb
1009
+ - spec/app/models/folder_item.rb
1010
+ - spec/app/models/slave.rb
1011
+ - spec/app/models/child_doc.rb
1012
+ - spec/app/models/canvas.rb
1013
+ - spec/app/models/membership.rb
1014
+ - spec/app/models/manufacturer.rb
1015
+ - spec/app/models/shipping_pack.rb
1016
+ - spec/app/models/edit.rb
1017
+ - spec/app/models/shop.rb
1018
+ - spec/app/models/code.rb
1019
+ - spec/app/models/pet.rb
1020
+ - spec/app/models/princess.rb
1021
+ - spec/app/models/symptom.rb
1022
+ - spec/app/models/oscar.rb
1023
+ - spec/app/models/business.rb
1024
+ - spec/app/models/owner.rb
1025
+ - spec/app/models/meat.rb
1026
+ - spec/app/models/driver.rb
1027
+ - spec/app/models/league.rb
1028
+ - spec/app/models/service.rb
1029
+ - spec/app/models/target.rb
1030
+ - spec/app/models/bed.rb
1031
+ - spec/app/models/game.rb
1032
+ - spec/app/models/home.rb
1033
+ - spec/app/models/series.rb
1034
+ - spec/app/models/override.rb
1035
+ - spec/app/models/line_item.rb
1036
+ - spec/app/models/id_key.rb
1037
+ - spec/app/models/address.rb
1038
+ - spec/app/models/even.rb
1039
+ - spec/app/models/fish.rb
1040
+ - spec/app/models/page_question.rb
1041
+ - spec/app/models/learner.rb
1042
+ - spec/app/models/delegating_patient.rb
1043
+ - spec/app/models/band.rb
1044
+ - spec/app/models/pdf_writer.rb
1045
+ - spec/app/models/ordered_post.rb
1046
+ - spec/app/models/breed.rb
1047
+ - spec/app/models/pet_owner.rb
1048
+ - spec/app/models/patient.rb
1049
+ - spec/app/models/agency.rb
1050
+ - spec/app/models/movie.rb
1051
+ - spec/app/models/artist.rb
1052
+ - spec/app/models/event.rb
1053
+ - spec/app/models/my_hash.rb
1054
+ - spec/app/models/template.rb
1055
+ - spec/app/models/language.rb
1056
+ - spec/app/models/circuit.rb
1057
+ - spec/app/models/dragon.rb
1058
+ - spec/app/models/doctor.rb
1059
+ - spec/app/models/note.rb
1060
+ - spec/app/models/message.rb
1061
+ - spec/app/models/label.rb
1062
+ - spec/app/models/preference.rb
1063
+ - spec/app/models/firefox.rb
1064
+ - spec/app/models/album.rb
1065
+ - spec/app/models/cookie.rb
1066
+ - spec/app/models/login.rb
1067
+ - spec/app/models/ownable.rb
1068
+ - spec/app/models/actor.rb
1069
+ - spec/app/models/bomb.rb
1070
+ - spec/app/models/pencil.rb
1071
+ - spec/app/models/store_as_dup_test2.rb
1072
+ - spec/app/models/profile.rb
1073
+ - spec/app/models/dokument.rb
1074
+ - spec/app/models/shape.rb
1075
+ - spec/app/models/folder.rb
1076
+ - spec/app/models/company.rb
1077
+ - spec/app/models/eye.rb
1078
+ - spec/app/models/tool.rb
1079
+ - spec/app/models/bar.rb
1080
+ - spec/app/models/category.rb
1081
+ - spec/app/models/building.rb
1082
+ - spec/app/models/address_component.rb
1083
+ - spec/app/models/passport.rb
1084
+ - spec/app/models/circle.rb
1085
+ - spec/app/models/sub_item.rb
1086
+ - spec/app/models/exhibition.rb
1087
+ - spec/app/models/country_code.rb
1088
+ - spec/app/models/question.rb
1089
+ - spec/app/models/purchase.rb
1090
+ - spec/app/models/tree.rb
1091
+ - spec/app/models/augmentation.rb
1092
+ - spec/app/models/ordered_preference.rb
1093
+ - spec/app/models/mixed_drink.rb
1094
+ - spec/app/models/item.rb
1095
+ - spec/app/models/powerup.rb
1096
+ - spec/app/models/pizza.rb
1097
+ - spec/app/models/root_category.rb
1098
+ - spec/app/models/baby.rb
1099
+ - spec/app/models/dog.rb
1100
+ - spec/mongoid/scopable_spec.rb
1101
+ - spec/mongoid/atomic/paths/embedded/many_spec.rb
1102
+ - spec/mongoid/atomic/paths/embedded/one_spec.rb
1103
+ - spec/mongoid/atomic/paths/root_spec.rb
1104
+ - spec/mongoid/atomic/modifiers_spec.rb
1105
+ - spec/mongoid/atomic/paths_spec.rb
1106
+ - spec/mongoid/attributes/readonly_spec.rb
1107
+ - spec/mongoid/attributes/nested_spec.rb
888
1108
  - spec/mongoid/indexable_spec.rb
889
- - spec/mongoid/criteria_spec.rb
890
- - spec/mongoid/copyable_spec.rb
891
- - spec/mongoid/clients_spec.rb
1109
+ - spec/mongoid/serializable_spec.rb
1110
+ - spec/mongoid/timestamps/timeless_spec.rb
1111
+ - spec/mongoid/timestamps/updated/short_spec.rb
1112
+ - spec/mongoid/timestamps/created/short_spec.rb
1113
+ - spec/mongoid/timestamps/created_spec.rb
1114
+ - spec/mongoid/timestamps/updated_spec.rb
1115
+ - spec/mongoid/findable_spec.rb
892
1116
  - spec/mongoid/changeable_spec.rb
893
- - spec/mongoid/attributes/nested_spec.rb
894
- - spec/mongoid/attributes/readonly_spec.rb
1117
+ - spec/mongoid/matchable/size_spec.rb
1118
+ - spec/mongoid/matchable/all_spec.rb
1119
+ - spec/mongoid/matchable/or_spec.rb
1120
+ - spec/mongoid/matchable/lte_spec.rb
1121
+ - spec/mongoid/matchable/gt_spec.rb
1122
+ - spec/mongoid/matchable/lt_spec.rb
1123
+ - spec/mongoid/matchable/ne_spec.rb
1124
+ - spec/mongoid/matchable/exists_spec.rb
1125
+ - spec/mongoid/matchable/regexp_spec.rb
1126
+ - spec/mongoid/matchable/gte_spec.rb
1127
+ - spec/mongoid/matchable/in_spec.rb
1128
+ - spec/mongoid/matchable/nin_spec.rb
1129
+ - spec/mongoid/matchable/nor_spec.rb
1130
+ - spec/mongoid/matchable/elem_match_spec.rb
1131
+ - spec/mongoid/matchable/default_spec.rb
1132
+ - spec/mongoid/matchable/and_spec.rb
1133
+ - spec/mongoid/extensions/decimal128_spec.rb
1134
+ - spec/mongoid/extensions/date_spec.rb
1135
+ - spec/mongoid/extensions/object_spec.rb
1136
+ - spec/mongoid/extensions/object_id_spec.rb
1137
+ - spec/mongoid/extensions/hash_spec.rb
1138
+ - spec/mongoid/extensions/string_spec.rb
1139
+ - spec/mongoid/extensions/boolean_spec.rb
1140
+ - spec/mongoid/extensions/nil_class_spec.rb
1141
+ - spec/mongoid/extensions/regexp_spec.rb
1142
+ - spec/mongoid/extensions/time_with_zone_spec.rb
1143
+ - spec/mongoid/extensions/false_class_spec.rb
1144
+ - spec/mongoid/extensions/binary_spec.rb
1145
+ - spec/mongoid/extensions/array_spec.rb
1146
+ - spec/mongoid/extensions/range_spec.rb
1147
+ - spec/mongoid/extensions/symbol_spec.rb
1148
+ - spec/mongoid/extensions/float_spec.rb
1149
+ - spec/mongoid/extensions/true_class_spec.rb
1150
+ - spec/mongoid/extensions/integer_spec.rb
1151
+ - spec/mongoid/extensions/set_spec.rb
1152
+ - spec/mongoid/extensions/big_decimal_spec.rb
1153
+ - spec/mongoid/extensions/time_spec.rb
1154
+ - spec/mongoid/extensions/date_time_spec.rb
1155
+ - spec/mongoid/extensions/module_spec.rb
1156
+ - spec/mongoid/fields/internal/foreign_keys/object_spec.rb
1157
+ - spec/mongoid/fields/internal/foreign_keys/array_spec.rb
1158
+ - spec/mongoid/fields/foreign_key_spec.rb
1159
+ - spec/mongoid/fields/standard_spec.rb
1160
+ - spec/mongoid/fields/localized_spec.rb
1161
+ - spec/mongoid/stateful_spec.rb
1162
+ - spec/mongoid/composable_spec.rb
1163
+ - spec/mongoid/reloadable_spec.rb
1164
+ - spec/mongoid/tasks/database_rake_spec.rb
1165
+ - spec/mongoid/tasks/database_spec.rb
1166
+ - spec/mongoid/equality_spec.rb
1167
+ - spec/mongoid/cacheable_spec.rb
1168
+ - spec/mongoid/interceptable_spec.rb
1169
+ - spec/mongoid/inspectable_spec.rb
895
1170
  - spec/mongoid/config_spec.rb
896
- - spec/mongoid/relations/auto_save_spec.rb
897
- - spec/mongoid/relations/targets/enumerable_spec.rb
1171
+ - spec/mongoid/persistable/pullable_spec.rb
1172
+ - spec/mongoid/persistable/logical_spec.rb
1173
+ - spec/mongoid/persistable/destroyable_spec.rb
1174
+ - spec/mongoid/persistable/poppable_spec.rb
1175
+ - spec/mongoid/persistable/pushable_spec.rb
1176
+ - spec/mongoid/persistable/incrementable_spec.rb
1177
+ - spec/mongoid/persistable/upsertable_spec.rb
1178
+ - spec/mongoid/persistable/deletable_spec.rb
1179
+ - spec/mongoid/persistable/renamable_spec.rb
1180
+ - spec/mongoid/persistable/creatable_spec.rb
1181
+ - spec/mongoid/persistable/updatable_spec.rb
1182
+ - spec/mongoid/persistable/unsettable_spec.rb
1183
+ - spec/mongoid/persistable/savable_spec.rb
1184
+ - spec/mongoid/persistable/settable_spec.rb
1185
+ - spec/mongoid/indexable/specification_spec.rb
1186
+ - spec/mongoid/relations/eager_spec.rb
1187
+ - spec/mongoid/relations/counter_cache_spec.rb
1188
+ - spec/mongoid/relations/conversions_spec.rb
1189
+ - spec/mongoid/relations/proxy_spec.rb
1190
+ - spec/mongoid/relations/options_spec.rb
1191
+ - spec/mongoid/relations/cascading/destroy_spec.rb
1192
+ - spec/mongoid/relations/cascading/nullify_spec.rb
1193
+ - spec/mongoid/relations/cascading/restrict_spec.rb
1194
+ - spec/mongoid/relations/cascading/delete_spec.rb
898
1195
  - spec/mongoid/relations/synchronization_spec.rb
899
- - spec/mongoid/relations/constraint_spec.rb
900
- - spec/mongoid/relations/embedded/in_spec.rb
901
1196
  - spec/mongoid/relations/embedded/many_spec.rb
902
1197
  - spec/mongoid/relations/embedded/one_spec.rb
903
1198
  - spec/mongoid/relations/embedded/dirty_spec.rb
904
- - spec/mongoid/relations/cascading_spec.rb
905
- - spec/mongoid/relations/cyclic_spec.rb
906
- - spec/mongoid/relations/accessors_spec.rb
907
- - spec/mongoid/relations/touchable_spec.rb
908
- - spec/mongoid/relations/proxy_spec.rb
909
- - spec/mongoid/relations/eager/belongs_to_spec.rb
910
- - spec/mongoid/relations/eager/has_many_spec.rb
911
- - spec/mongoid/relations/eager/has_and_belongs_to_many_spec.rb
912
- - spec/mongoid/relations/eager/has_one_spec.rb
913
- - spec/mongoid/relations/options_spec.rb
914
- - spec/mongoid/relations/counter_cache_spec.rb
915
- - spec/mongoid/relations/metadata_spec.rb
916
- - spec/mongoid/relations/referenced/many_to_many_spec.rb
917
- - spec/mongoid/relations/referenced/in_spec.rb
918
- - spec/mongoid/relations/referenced/many_spec.rb
919
- - spec/mongoid/relations/referenced/one_spec.rb
920
- - spec/mongoid/relations/eager_spec.rb
921
- - spec/mongoid/relations/macros_spec.rb
922
- - spec/mongoid/relations/bindings/embedded/in_spec.rb
923
- - spec/mongoid/relations/bindings/embedded/many_spec.rb
924
- - spec/mongoid/relations/bindings/embedded/one_spec.rb
925
- - spec/mongoid/relations/bindings/referenced/many_to_many_spec.rb
926
- - spec/mongoid/relations/bindings/referenced/in_spec.rb
927
- - spec/mongoid/relations/bindings/referenced/many_spec.rb
928
- - spec/mongoid/relations/bindings/referenced/one_spec.rb
929
- - spec/mongoid/relations/conversions_spec.rb
1199
+ - spec/mongoid/relations/embedded/in_spec.rb
930
1200
  - spec/mongoid/relations/reflections_spec.rb
1201
+ - spec/mongoid/relations/constraint_spec.rb
1202
+ - spec/mongoid/relations/cyclic_spec.rb
931
1203
  - spec/mongoid/relations/polymorphic_spec.rb
932
- - spec/mongoid/relations/builders_spec.rb
933
- - spec/mongoid/relations/cascading/destroy_spec.rb
934
- - spec/mongoid/relations/cascading/delete_spec.rb
935
- - spec/mongoid/relations/cascading/nullify_spec.rb
936
- - spec/mongoid/relations/cascading/restrict_spec.rb
1204
+ - spec/mongoid/relations/builders_spec.rb
1205
+ - spec/mongoid/relations/cascading_spec.rb
937
1206
  - spec/mongoid/relations/builders/nested_attributes/many_spec.rb
938
1207
  - spec/mongoid/relations/builders/nested_attributes/one_spec.rb
939
- - spec/mongoid/relations/builders/embedded/in_spec.rb
940
1208
  - spec/mongoid/relations/builders/embedded/many_spec.rb
941
1209
  - spec/mongoid/relations/builders/embedded/one_spec.rb
942
- - spec/mongoid/relations/builders/referenced/many_to_many_spec.rb
943
- - spec/mongoid/relations/builders/referenced/in_spec.rb
1210
+ - spec/mongoid/relations/builders/embedded/in_spec.rb
944
1211
  - spec/mongoid/relations/builders/referenced/many_spec.rb
945
1212
  - spec/mongoid/relations/builders/referenced/one_spec.rb
946
- - spec/mongoid/matchable/elem_match_spec.rb
947
- - spec/mongoid/matchable/nor_spec.rb
948
- - spec/mongoid/matchable/all_spec.rb
949
- - spec/mongoid/matchable/ne_spec.rb
950
- - spec/mongoid/matchable/in_spec.rb
951
- - spec/mongoid/matchable/regexp_spec.rb
952
- - spec/mongoid/matchable/lte_spec.rb
953
- - spec/mongoid/matchable/lt_spec.rb
954
- - spec/mongoid/matchable/size_spec.rb
955
- - spec/mongoid/matchable/default_spec.rb
956
- - spec/mongoid/matchable/exists_spec.rb
957
- - spec/mongoid/matchable/and_spec.rb
958
- - spec/mongoid/matchable/gt_spec.rb
959
- - spec/mongoid/matchable/gte_spec.rb
960
- - spec/mongoid/matchable/nin_spec.rb
961
- - spec/mongoid/matchable/or_spec.rb
962
- - spec/mongoid/attributes_spec.rb
1213
+ - spec/mongoid/relations/builders/referenced/in_spec.rb
1214
+ - spec/mongoid/relations/builders/referenced/many_to_many_spec.rb
1215
+ - spec/mongoid/relations/eager/has_many_spec.rb
1216
+ - spec/mongoid/relations/eager/has_one_spec.rb
1217
+ - spec/mongoid/relations/eager/has_and_belongs_to_many_spec.rb
1218
+ - spec/mongoid/relations/eager/belongs_to_spec.rb
1219
+ - spec/mongoid/relations/referenced/many_spec.rb
1220
+ - spec/mongoid/relations/referenced/one_spec.rb
1221
+ - spec/mongoid/relations/referenced/in_spec.rb
1222
+ - spec/mongoid/relations/referenced/many_to_many_spec.rb
1223
+ - spec/mongoid/relations/auto_save_spec.rb
1224
+ - spec/mongoid/relations/accessors_spec.rb
1225
+ - spec/mongoid/relations/touchable_spec.rb
1226
+ - spec/mongoid/relations/targets/enumerable_spec.rb
1227
+ - spec/mongoid/relations/metadata_spec.rb
1228
+ - spec/mongoid/relations/bindings/embedded/many_spec.rb
1229
+ - spec/mongoid/relations/bindings/embedded/one_spec.rb
1230
+ - spec/mongoid/relations/bindings/embedded/in_spec.rb
1231
+ - spec/mongoid/relations/bindings/referenced/many_spec.rb
1232
+ - spec/mongoid/relations/bindings/referenced/one_spec.rb
1233
+ - spec/mongoid/relations/bindings/referenced/in_spec.rb
1234
+ - spec/mongoid/relations/bindings/referenced/many_to_many_spec.rb
1235
+ - spec/mongoid/relations/macros_spec.rb
1236
+ - spec/mongoid/copyable_spec.rb
1237
+ - spec/mongoid/shardable_spec.rb
963
1238
  - spec/mongoid/threaded_spec.rb
964
- - spec/mongoid/scopable_spec.rb
965
- - spec/mongoid/query_cache_spec.rb
966
- - spec/mongoid/errors/no_client_config_spec.rb
967
- - spec/mongoid/errors/no_metadata_spec.rb
968
- - spec/mongoid/errors/invalid_time_spec.rb
969
- - spec/mongoid/errors/unsupported_javascript_spec.rb
970
- - spec/mongoid/errors/invalid_field_spec.rb
971
- - spec/mongoid/errors/unsaved_document_spec.rb
1239
+ - spec/mongoid/atomic_spec.rb
1240
+ - spec/mongoid/persistence_context_spec.rb
1241
+ - spec/mongoid/errors/eager_load_spec.rb
1242
+ - spec/mongoid/errors/mixed_relations_spec.rb
1243
+ - spec/mongoid/errors/delete_restriction_spec.rb
1244
+ - spec/mongoid/errors/invalid_includes_spec.rb
1245
+ - spec/mongoid/errors/no_parent_spec.rb
972
1246
  - spec/mongoid/errors/readonly_attribute_spec.rb
1247
+ - spec/mongoid/errors/unsaved_document_spec.rb
1248
+ - spec/mongoid/errors/inverse_not_found_spec.rb
1249
+ - spec/mongoid/errors/unsupported_javascript_spec.rb
1250
+ - spec/mongoid/errors/no_client_hosts_spec.rb
973
1251
  - spec/mongoid/errors/invalid_relation_spec.rb
974
- - spec/mongoid/errors/mixed_client_configuration_spec.rb
1252
+ - spec/mongoid/errors/invalid_time_spec.rb
975
1253
  - spec/mongoid/errors/validations_spec.rb
976
- - spec/mongoid/errors/invalid_storage_options_spec.rb
977
- - spec/mongoid/errors/document_not_found_spec.rb
978
- - spec/mongoid/errors/readonly_document_spec.rb
979
- - spec/mongoid/errors/invalid_path_spec.rb
980
- - spec/mongoid/errors/no_clients_config_spec.rb
981
- - spec/mongoid/errors/no_client_hosts_spec.rb
982
- - spec/mongoid/errors/ambiguous_relationship_spec.rb
983
- - spec/mongoid/errors/scope_overwrite_spec.rb
1254
+ - spec/mongoid/errors/no_client_config_spec.rb
984
1255
  - spec/mongoid/errors/invalid_scope_spec.rb
985
- - spec/mongoid/errors/invalid_options_spec.rb
986
- - spec/mongoid/errors/mixed_relations_spec.rb
987
- - spec/mongoid/errors/eager_load_spec.rb
988
- - spec/mongoid/errors/no_environment_spec.rb
989
- - spec/mongoid/errors/mongoid_error_spec.rb
990
- - spec/mongoid/errors/no_map_reduce_output_spec.rb
991
- - spec/mongoid/errors/invalid_field_option_spec.rb
992
1256
  - spec/mongoid/errors/invalid_config_option_spec.rb
993
- - spec/mongoid/errors/invalid_includes_spec.rb
994
- - spec/mongoid/errors/delete_restriction_spec.rb
995
- - spec/mongoid/errors/invalid_set_polymorphic_relation_spec.rb
1257
+ - spec/mongoid/errors/document_not_found_spec.rb
1258
+ - spec/mongoid/errors/unknown_attribute_spec.rb
996
1259
  - spec/mongoid/errors/document_not_destroyed_spec.rb
997
- - spec/mongoid/errors/too_many_nested_attribute_records_spec.rb
998
- - spec/mongoid/errors/invalid_collection_spec.rb
999
- - spec/mongoid/errors/no_parent_spec.rb
1000
1260
  - spec/mongoid/errors/invalid_index_spec.rb
1001
- - spec/mongoid/errors/invalid_find_spec.rb
1002
- - spec/mongoid/errors/unknown_attribute_spec.rb
1003
- - spec/mongoid/errors/inverse_not_found_spec.rb
1261
+ - spec/mongoid/errors/readonly_document_spec.rb
1262
+ - spec/mongoid/errors/invalid_field_spec.rb
1263
+ - spec/mongoid/errors/mongoid_error_spec.rb
1264
+ - spec/mongoid/errors/invalid_collection_spec.rb
1265
+ - spec/mongoid/errors/no_metadata_spec.rb
1266
+ - spec/mongoid/errors/invalid_options_spec.rb
1267
+ - spec/mongoid/errors/scope_overwrite_spec.rb
1268
+ - spec/mongoid/errors/no_clients_config_spec.rb
1004
1269
  - spec/mongoid/errors/no_client_database_spec.rb
1005
- - spec/mongoid/errors/nested_attributes_metadata_not_found_spec.rb
1270
+ - spec/mongoid/errors/too_many_nested_attribute_records_spec.rb
1271
+ - spec/mongoid/errors/invalid_find_spec.rb
1272
+ - spec/mongoid/errors/invalid_field_option_spec.rb
1006
1273
  - spec/mongoid/errors/callback_spec.rb
1007
- - spec/mongoid/persistence_context_spec.rb
1008
- - spec/mongoid/inspectable_spec.rb
1009
- - spec/mongoid/selectable_spec.rb
1274
+ - spec/mongoid/errors/no_map_reduce_output_spec.rb
1275
+ - spec/mongoid/errors/ambiguous_relationship_spec.rb
1276
+ - spec/mongoid/errors/invalid_storage_options_spec.rb
1277
+ - spec/mongoid/errors/mixed_client_configuration_spec.rb
1278
+ - spec/mongoid/errors/nested_attributes_metadata_not_found_spec.rb
1279
+ - spec/mongoid/errors/invalid_path_spec.rb
1280
+ - spec/mongoid/errors/invalid_set_polymorphic_relation_spec.rb
1281
+ - spec/mongoid/errors/no_environment_spec.rb
1282
+ - spec/mongoid/clients_spec.rb
1283
+ - spec/mongoid/factory_spec.rb
1284
+ - spec/mongoid/config/environment_spec.rb
1285
+ - spec/mongoid/config/options_spec.rb
1286
+ - spec/mongoid/extensions_spec.rb
1287
+ - spec/mongoid/validatable_spec.rb
1010
1288
  - spec/mongoid/criteria/scopable_spec.rb
1289
+ - spec/mongoid/criteria/modifiable_spec.rb
1290
+ - spec/mongoid/criteria/findable_spec.rb
1011
1291
  - spec/mongoid/criteria/inspectable_spec.rb
1012
- - spec/mongoid/criteria/queryable/aggregable_spec.rb
1013
- - spec/mongoid/criteria/queryable/key_spec.rb
1014
- - spec/mongoid/criteria/queryable/smash_spec.rb
1015
- - spec/mongoid/criteria/queryable/forwardable_spec.rb
1016
- - spec/mongoid/criteria/queryable/selectable_spec.rb
1017
- - spec/mongoid/criteria/queryable/mergeable_spec.rb
1292
+ - spec/mongoid/criteria/options_spec.rb
1293
+ - spec/mongoid/criteria/queryable/optional_spec.rb
1294
+ - spec/mongoid/criteria/queryable/queryable_spec.rb
1295
+ - spec/mongoid/criteria/queryable/extensions/regexp_raw_spec.rb
1018
1296
  - spec/mongoid/criteria/queryable/extensions/date_spec.rb
1019
- - spec/mongoid/criteria/queryable/extensions/big_decimal_spec.rb
1020
1297
  - spec/mongoid/criteria/queryable/extensions/object_spec.rb
1021
- - spec/mongoid/criteria/queryable/extensions/date_time_spec.rb
1022
- - spec/mongoid/criteria/queryable/extensions/time_with_zone_spec.rb
1023
- - spec/mongoid/criteria/queryable/extensions/time_spec.rb
1298
+ - spec/mongoid/criteria/queryable/extensions/bignum_spec.rb
1024
1299
  - spec/mongoid/criteria/queryable/extensions/hash_spec.rb
1025
- - spec/mongoid/criteria/queryable/extensions/range_spec.rb
1026
- - spec/mongoid/criteria/queryable/extensions/fixnum_spec.rb
1027
- - spec/mongoid/criteria/queryable/extensions/regexp_spec.rb
1028
- - spec/mongoid/criteria/queryable/extensions/symbol_spec.rb
1029
1300
  - spec/mongoid/criteria/queryable/extensions/string_spec.rb
1030
1301
  - spec/mongoid/criteria/queryable/extensions/boolean_spec.rb
1031
- - spec/mongoid/criteria/queryable/extensions/bignum_spec.rb
1032
- - spec/mongoid/criteria/queryable/extensions/array_spec.rb
1033
1302
  - spec/mongoid/criteria/queryable/extensions/nil_class_spec.rb
1034
- - spec/mongoid/criteria/queryable/extensions/set_spec.rb
1035
- - spec/mongoid/criteria/queryable/extensions/integer_spec.rb
1036
- - spec/mongoid/criteria/queryable/extensions/regexp_raw_spec.rb
1303
+ - spec/mongoid/criteria/queryable/extensions/regexp_spec.rb
1304
+ - spec/mongoid/criteria/queryable/extensions/time_with_zone_spec.rb
1305
+ - spec/mongoid/criteria/queryable/extensions/fixnum_spec.rb
1306
+ - spec/mongoid/criteria/queryable/extensions/array_spec.rb
1307
+ - spec/mongoid/criteria/queryable/extensions/range_spec.rb
1308
+ - spec/mongoid/criteria/queryable/extensions/symbol_spec.rb
1037
1309
  - spec/mongoid/criteria/queryable/extensions/float_spec.rb
1038
- - spec/mongoid/criteria/queryable/selector_spec.rb
1039
- - spec/mongoid/criteria/queryable/options_spec.rb
1040
- - spec/mongoid/criteria/queryable/pipeline_spec.rb
1041
- - spec/mongoid/criteria/queryable/optional_spec.rb
1042
- - spec/mongoid/criteria/queryable/queryable_spec.rb
1043
- - spec/mongoid/criteria/findable_spec.rb
1044
- - spec/mongoid/criteria/options_spec.rb
1045
- - spec/mongoid/criteria/modifiable_spec.rb
1046
- - spec/mongoid/criteria/marshalable_spec.rb
1047
- - spec/mongoid/relations_spec.rb
1048
- - spec/mongoid/findable_spec.rb
1049
- - spec/mongoid/extensions/date_spec.rb
1050
- - spec/mongoid/extensions/big_decimal_spec.rb
1051
- - spec/mongoid/extensions/object_spec.rb
1052
- - spec/mongoid/extensions/date_time_spec.rb
1053
- - spec/mongoid/extensions/time_with_zone_spec.rb
1054
- - spec/mongoid/extensions/time_spec.rb
1055
- - spec/mongoid/extensions/hash_spec.rb
1056
- - spec/mongoid/extensions/range_spec.rb
1057
- - spec/mongoid/extensions/regexp_spec.rb
1058
- - spec/mongoid/extensions/symbol_spec.rb
1059
- - spec/mongoid/extensions/string_spec.rb
1060
- - spec/mongoid/extensions/boolean_spec.rb
1061
- - spec/mongoid/extensions/decimal128_spec.rb
1062
- - spec/mongoid/extensions/array_spec.rb
1063
- - spec/mongoid/extensions/module_spec.rb
1064
- - spec/mongoid/extensions/false_class_spec.rb
1065
- - spec/mongoid/extensions/true_class_spec.rb
1066
- - spec/mongoid/extensions/binary_spec.rb
1067
- - spec/mongoid/extensions/object_id_spec.rb
1068
- - spec/mongoid/extensions/nil_class_spec.rb
1069
- - spec/mongoid/extensions/set_spec.rb
1070
- - spec/mongoid/extensions/integer_spec.rb
1071
- - spec/mongoid/extensions/float_spec.rb
1072
- - spec/mongoid/composable_spec.rb
1073
- - spec/mongoid/atomic_spec.rb
1074
- - spec/mongoid/atomic/paths/embedded/many_spec.rb
1075
- - spec/mongoid/atomic/paths/embedded/one_spec.rb
1076
- - spec/mongoid/atomic/paths/root_spec.rb
1077
- - spec/mongoid/atomic/paths_spec.rb
1078
- - spec/mongoid/atomic/modifiers_spec.rb
1079
- - spec/mongoid/serializable_spec.rb
1080
- - spec/mongoid/cacheable_spec.rb
1081
- - spec/mongoid/traversable_spec.rb
1082
- - spec/mongoid/validatable_spec.rb
1083
- - spec/mongoid/reloadable_spec.rb
1084
- - spec/mongoid/persistable/settable_spec.rb
1085
- - spec/mongoid/persistable/destroyable_spec.rb
1086
- - spec/mongoid/persistable/upsertable_spec.rb
1087
- - spec/mongoid/persistable/savable_spec.rb
1088
- - spec/mongoid/persistable/logical_spec.rb
1089
- - spec/mongoid/persistable/pullable_spec.rb
1090
- - spec/mongoid/persistable/poppable_spec.rb
1091
- - spec/mongoid/persistable/incrementable_spec.rb
1092
- - spec/mongoid/persistable/updatable_spec.rb
1093
- - spec/mongoid/persistable/unsettable_spec.rb
1094
- - spec/mongoid/persistable/renamable_spec.rb
1095
- - spec/mongoid/persistable/deletable_spec.rb
1096
- - spec/mongoid/persistable/creatable_spec.rb
1097
- - spec/mongoid/persistable/pushable_spec.rb
1098
- - spec/mongoid/config/environment_spec.rb
1099
- - spec/mongoid/config/options_spec.rb
1100
- - spec/mongoid/factory_spec.rb
1101
- - spec/mongoid/clients/sessions_spec.rb
1102
- - spec/mongoid/clients/options_spec.rb
1103
- - spec/mongoid/clients/factory_spec.rb
1104
- - spec/mongoid/persistable_spec.rb
1105
- - spec/mongoid/matchable_spec.rb
1106
- - spec/mongoid/timestamps/created_spec.rb
1107
- - spec/mongoid/timestamps/created/short_spec.rb
1108
- - spec/mongoid/timestamps/timeless_spec.rb
1109
- - spec/mongoid/timestamps/updated_spec.rb
1110
- - spec/mongoid/timestamps/updated/short_spec.rb
1111
- - spec/mongoid/validatable/presence_spec.rb
1112
- - spec/mongoid/validatable/format_spec.rb
1113
- - spec/mongoid/validatable/numericality_spec.rb
1114
- - spec/mongoid/validatable/associated_spec.rb
1115
- - spec/mongoid/validatable/uniqueness_spec.rb
1116
- - spec/mongoid/validatable/length_spec.rb
1117
- - spec/mongoid/shardable_spec.rb
1118
- - spec/mongoid/interceptable_spec.rb
1119
- - spec/mongoid/fields/localized_spec.rb
1120
- - spec/mongoid/fields/standard_spec.rb
1121
- - spec/mongoid/fields/internal/foreign_keys/object_spec.rb
1122
- - spec/mongoid/fields/internal/foreign_keys/array_spec.rb
1123
- - spec/mongoid/fields/foreign_key_spec.rb
1124
- - spec/mongoid/equality_spec.rb
1125
- - spec/mongoid/stateful_spec.rb
1126
- - spec/mongoid/timestamps_spec.rb
1127
- - spec/mongoid/fields_spec.rb
1128
- - spec/mongoid/document_spec.rb
1129
- - spec/mongoid/contextual/map_reduce_spec.rb
1130
- - spec/mongoid/contextual/aggregable/memory_spec.rb
1131
- - spec/mongoid/contextual/aggregable/mongo_spec.rb
1310
+ - spec/mongoid/criteria/queryable/extensions/integer_spec.rb
1311
+ - spec/mongoid/criteria/queryable/extensions/set_spec.rb
1312
+ - spec/mongoid/criteria/queryable/extensions/big_decimal_spec.rb
1313
+ - spec/mongoid/criteria/queryable/extensions/time_spec.rb
1314
+ - spec/mongoid/criteria/queryable/extensions/date_time_spec.rb
1315
+ - spec/mongoid/criteria/queryable/aggregable_spec.rb
1316
+ - spec/mongoid/criteria/queryable/forwardable_spec.rb
1317
+ - spec/mongoid/criteria/queryable/options_spec.rb
1318
+ - spec/mongoid/criteria/queryable/smash_spec.rb
1319
+ - spec/mongoid/criteria/queryable/key_spec.rb
1320
+ - spec/mongoid/criteria/queryable/selector_spec.rb
1321
+ - spec/mongoid/criteria/queryable/pipeline_spec.rb
1322
+ - spec/mongoid/criteria/queryable/mergeable_spec.rb
1323
+ - spec/mongoid/criteria/queryable/selectable_spec.rb
1324
+ - spec/mongoid/criteria/marshalable_spec.rb
1132
1325
  - spec/mongoid/contextual/geo_near_spec.rb
1133
- - spec/mongoid/contextual/memory_spec.rb
1326
+ - spec/mongoid/contextual/mongo_spec.rb
1327
+ - spec/mongoid/contextual/aggregable/mongo_spec.rb
1328
+ - spec/mongoid/contextual/aggregable/memory_spec.rb
1134
1329
  - spec/mongoid/contextual/atomic_spec.rb
1330
+ - spec/mongoid/contextual/memory_spec.rb
1135
1331
  - spec/mongoid/contextual/none_spec.rb
1136
- - spec/mongoid/contextual/mongo_spec.rb
1137
- - spec/mongoid/indexable/specification_spec.rb
1332
+ - spec/mongoid/contextual/map_reduce_spec.rb
1333
+ - spec/mongoid/persistable_spec.rb
1334
+ - spec/mongoid/loggable_spec.rb
1335
+ - spec/mongoid/traversable_spec.rb
1336
+ - spec/mongoid/criteria_spec.rb
1337
+ - spec/mongoid/query_cache_spec.rb
1338
+ - spec/mongoid/matchable_spec.rb
1339
+ - spec/mongoid/document_spec.rb
1138
1340
  - spec/mongoid/positional_spec.rb
1139
- - spec/mongoid/tasks/database_rake_spec.rb
1140
- - spec/mongoid/tasks/database_spec.rb
1341
+ - spec/mongoid/clients/sessions_spec.rb
1342
+ - spec/mongoid/clients/options_spec.rb
1343
+ - spec/mongoid/clients/factory_spec.rb
1344
+ - spec/mongoid/timestamps_spec.rb
1345
+ - spec/mongoid/fields_spec.rb
1346
+ - spec/mongoid/validatable/presence_spec.rb
1347
+ - spec/mongoid/validatable/uniqueness_spec.rb
1348
+ - spec/mongoid/validatable/length_spec.rb
1349
+ - spec/mongoid/validatable/associated_spec.rb
1350
+ - spec/mongoid/validatable/numericality_spec.rb
1351
+ - spec/mongoid/validatable/format_spec.rb
1352
+ - spec/mongoid/relations_spec.rb
1353
+ - spec/mongoid/attributes_spec.rb
1354
+ - spec/mongoid/selectable_spec.rb
1355
+ - spec/support/authorization.rb
1356
+ - spec/support/cluster_config.rb
1357
+ - spec/support/macros.rb
1358
+ - spec/support/expectations.rb
1359
+ - spec/support/constraints.rb
1360
+ - spec/support/spec_config.rb
1361
+ - spec/mongoid_spec.rb
1141
1362
  - spec/config/mongoid.yml
1142
- - spec/spec_helper.rb
1143
- - spec/app/models/browser.rb
1144
- - spec/app/models/exhibitor.rb
1145
- - spec/app/models/simple.rb
1146
- - spec/app/models/shipment_address.rb
1147
- - spec/app/models/odd.rb
1148
- - spec/app/models/palette.rb
1149
- - spec/app/models/circle.rb
1150
- - spec/app/models/membership.rb
1151
- - spec/app/models/driver.rb
1152
- - spec/app/models/root_category.rb
1153
- - spec/app/models/company.rb
1154
- - spec/app/models/validation_callback.rb
1155
- - spec/app/models/event.rb
1156
- - spec/app/models/user.rb
1157
- - spec/app/models/symptom.rb
1158
- - spec/app/models/label.rb
1159
- - spec/app/models/cat.rb
1160
- - spec/app/models/email.rb
1161
- - spec/app/models/alert.rb
1162
- - spec/app/models/tree.rb
1163
- - spec/app/models/princess.rb
1164
- - spec/app/models/big_palette.rb
1165
- - spec/app/models/augmentation.rb
1166
- - spec/app/models/dungeon.rb
1167
- - spec/app/models/author.rb
1168
- - spec/app/models/appointment.rb
1169
- - spec/app/models/game.rb
1170
- - spec/app/models/ghost.rb
1171
- - spec/app/models/line_item.rb
1172
- - spec/app/models/question.rb
1173
- - spec/app/models/church.rb
1174
- - spec/app/models/short_quiz.rb
1175
- - spec/app/models/division.rb
1176
- - spec/app/models/sub_item.rb
1177
- - spec/app/models/subscription.rb
1178
- - spec/app/models/word.rb
1179
- - spec/app/models/kangaroo.rb
1180
- - spec/app/models/parent.rb
1181
- - spec/app/models/profile.rb
1182
- - spec/app/models/basic.rb
1183
- - spec/app/models/registry.rb
1184
- - spec/app/models/node.rb
1185
- - spec/app/models/id_key.rb
1186
- - spec/app/models/child_doc.rb
1187
- - spec/app/models/ownable.rb
1188
- - spec/app/models/pet.rb
1189
- - spec/app/models/preference.rb
1190
- - spec/app/models/artist.rb
1191
- - spec/app/models/my_hash.rb
1192
- - spec/app/models/post.rb
1193
- - spec/app/models/track.rb
1194
- - spec/app/models/tool.rb
1195
- - spec/app/models/movie.rb
1196
- - spec/app/models/truck.rb
1197
- - spec/app/models/child.rb
1198
- - spec/app/models/exhibition.rb
1199
- - spec/app/models/building.rb
1200
- - spec/app/models/pronunciation.rb
1201
- - spec/app/models/oscar.rb
1202
- - spec/app/models/player.rb
1203
- - spec/app/models/draft.rb
1204
- - spec/app/models/store_as_dup_test1.rb
1205
- - spec/app/models/fruits.rb
1206
- - spec/app/models/circuit.rb
1207
- - spec/app/models/owner.rb
1208
- - spec/app/models/bar.rb
1209
- - spec/app/models/answer.rb
1210
- - spec/app/models/mixed_drink.rb
1211
- - spec/app/models/filesystem.rb
1212
- - spec/app/models/entry.rb
1213
- - spec/app/models/service.rb
1214
- - spec/app/models/video_game.rb
1215
- - spec/app/models/category.rb
1216
- - spec/app/models/doctor.rb
1217
- - spec/app/models/shipping_pack.rb
1218
- - spec/app/models/language.rb
1219
- - spec/app/models/shop.rb
1220
- - spec/app/models/slave.rb
1221
- - spec/app/models/location.rb
1222
- - spec/app/models/firefox.rb
1223
- - spec/app/models/actor.rb
1224
- - spec/app/models/folder_item.rb
1225
- - spec/app/models/explosion.rb
1226
- - spec/app/models/page.rb
1227
- - spec/app/models/callback_test.rb
1228
- - spec/app/models/staff.rb
1229
- - spec/app/models/folder.rb
1230
- - spec/app/models/title.rb
1231
- - spec/app/models/lat_lng.rb
1232
- - spec/app/models/business.rb
1233
- - spec/app/models/artwork.rb
1234
- - spec/app/models/song.rb
1235
- - spec/app/models/record.rb
1236
- - spec/app/models/server.rb
1237
- - spec/app/models/drug.rb
1238
- - spec/app/models/quiz.rb
1239
- - spec/app/models/edit.rb
1240
- - spec/app/models/baby.rb
1241
- - spec/app/models/template.rb
1242
- - spec/app/models/band.rb
1243
- - spec/app/models/ordered_preference.rb
1244
- - spec/app/models/dog.rb
1245
- - spec/app/models/target.rb
1246
- - spec/app/models/fire_hydrant.rb
1247
- - spec/app/models/pub.rb
1248
- - spec/app/models/description.rb
1249
- - spec/app/models/eye_bowl.rb
1250
- - spec/app/models/bed.rb
1251
- - spec/app/models/shelf.rb
1252
- - spec/app/models/image.rb
1253
- - spec/app/models/shape.rb
1254
- - spec/app/models/dokument.rb
1255
- - spec/app/models/translation.rb
1256
- - spec/app/models/writer.rb
1257
- - spec/app/models/meat.rb
1258
- - spec/app/models/weapon.rb
1259
- - spec/app/models/sound.rb
1260
- - spec/app/models/rating.rb
1261
- - spec/app/models/consumption_period.rb
1262
- - spec/app/models/store_as_dup_test2.rb
1263
- - spec/app/models/tag.rb
1264
- - spec/app/models/manufacturer.rb
1265
- - spec/app/models/courier_job.rb
1266
- - spec/app/models/canvas.rb
1267
- - spec/app/models/strategy.rb
1268
- - spec/app/models/series.rb
1269
- - spec/app/models/building_address.rb
1270
- - spec/app/models/code.rb
1271
- - spec/app/models/thing.rb
1272
- - spec/app/models/dragon.rb
1273
- - spec/app/models/learner.rb
1274
- - spec/app/models/contextable_item.rb
1275
- - spec/app/models/circus.rb
1276
- - spec/app/models/role.rb
1277
- - spec/app/models/topping.rb
1278
- - spec/app/models/html_writer.rb
1279
- - spec/app/models/ordered_post.rb
1280
- - spec/app/models/parent_doc.rb
1281
- - spec/app/models/acolyte.rb
1282
- - spec/app/models/array_field.rb
1283
- - spec/app/models/product.rb
1284
- - spec/app/models/contractor.rb
1285
- - spec/app/models/purchase.rb
1286
- - spec/app/models/actress.rb
1287
- - spec/app/models/address.rb
1288
- - spec/app/models/pizza.rb
1289
- - spec/app/models/bomb.rb
1290
- - spec/app/models/house.rb
1291
- - spec/app/models/version.rb
1292
- - spec/app/models/definition.rb
1293
- - spec/app/models/sandwich.rb
1294
- - spec/app/models/user_account.rb
1295
- - spec/app/models/breed.rb
1296
- - spec/app/models/pdf_writer.rb
1297
- - spec/app/models/car.rb
1298
- - spec/app/models/implant.rb
1299
- - spec/app/models/pet_owner.rb
1300
- - spec/app/models/animal.rb
1301
- - spec/app/models/birthday.rb
1302
- - spec/app/models/agency.rb
1303
- - spec/app/models/scheduler.rb
1304
- - spec/app/models/face.rb
1305
- - spec/app/models/vet_visit.rb
1306
- - spec/app/models/dictionary.rb
1307
- - spec/app/models/seo.rb
1308
- - spec/app/models/word_origin.rb
1309
- - spec/app/models/book.rb
1310
- - spec/app/models/favorite.rb
1311
- - spec/app/models/name.rb
1312
- - spec/app/models/fish.rb
1313
- - spec/app/models/shipping_container.rb
1314
- - spec/app/models/vehicle.rb
1315
- - spec/app/models/override.rb
1316
- - spec/app/models/powerup.rb
1317
- - spec/app/models/cookie.rb
1318
- - spec/app/models/bus.rb
1319
- - spec/app/models/agent.rb
1320
- - spec/app/models/note.rb
1321
- - spec/app/models/eye.rb
1322
- - spec/app/models/passport.rb
1323
- - spec/app/models/video.rb
1324
- - spec/app/models/account.rb
1325
- - spec/app/models/pencil.rb
1326
- - spec/app/models/short_agent.rb
1327
- - spec/app/models/employer.rb
1328
- - spec/app/models/person.rb
1329
- - spec/app/models/jar.rb
1330
- - spec/app/models/login.rb
1331
- - spec/app/models/audio.rb
1332
- - spec/app/models/kaleidoscope.rb
1333
- - spec/app/models/pack.rb
1334
- - spec/app/models/page_question.rb
1335
- - spec/app/models/patient.rb
1336
- - spec/app/models/post_genre.rb
1337
- - spec/app/models/message.rb
1338
- - spec/app/models/address_number.rb
1339
- - spec/app/models/album.rb
1340
- - spec/app/models/survey.rb
1341
- - spec/app/models/item.rb
1342
- - spec/app/models/eraser.rb
1343
- - spec/app/models/home.rb
1344
- - spec/app/models/address_component.rb
1345
- - spec/app/models/wiki_page.rb
1346
- - spec/app/models/square.rb
1347
- - spec/app/models/article.rb
1348
- - spec/app/models/comment.rb
1349
- - spec/app/models/even.rb
1350
- - spec/app/models/phone.rb
1351
- - spec/app/models/country_code.rb
1352
- - spec/app/models/league.rb
1353
1363
  - spec/rails/controller_extension/controller_runtime_spec.rb
1354
1364
  - spec/rails/mongoid_spec.rb
1365
+ - spec/spec_helper.rb
1366
+ - spec/integration/document_spec.rb