mongoid 7.0.4 → 7.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+ # encoding: utf-8
3
+
4
+ require "spec_helper"
5
+
6
+ describe Mongoid::Criteria::Queryable::Extensions::Numeric::ClassMethods do
7
+
8
+ let(:host) do
9
+ Class.new do
10
+ include Mongoid::Criteria::Queryable::Extensions::Numeric::ClassMethods
11
+ end.new
12
+ end
13
+
14
+ describe "#__numeric__" do
15
+
16
+ let(:actual) { host.__numeric__(str) }
17
+
18
+ context "when the string is a whole number" do
19
+
20
+ let(:str) { '123' }
21
+
22
+ it "returns the value as integer" do
23
+ expect(actual).to eq(123)
24
+ end
25
+ end
26
+
27
+ context "when the string is a floating point number" do
28
+
29
+ let(:str) { '123.45' }
30
+
31
+ it "returns the value as a float" do
32
+ expect(actual).to eq(123.45)
33
+ end
34
+ end
35
+
36
+ context "when the string is a dot only" do
37
+
38
+ let(:str) { '.' }
39
+
40
+ it "returns zero" do
41
+ expect(actual).to eq(0)
42
+ end
43
+ end
44
+
45
+ context "when the string is a number with fractional part consisting of zeros" do
46
+
47
+ let(:str) { '12.000' }
48
+
49
+ it "returns the value as integer" do
50
+ expect(actual).to eq(12)
51
+ end
52
+ end
53
+ end
54
+ end
@@ -23,16 +23,58 @@ describe Mongoid::Criteria::Queryable::Key do
23
23
 
24
24
  describe "#__expr_part__" do
25
25
 
26
- let(:key) do
27
- described_class.new("field", :__union__, "$all")
26
+ context 'operator only' do
27
+ let(:key) do
28
+ described_class.new("field", :__union__, "$all")
29
+ end
30
+
31
+ let(:specified) do
32
+ key.__expr_part__([ 1, 2 ])
33
+ end
34
+
35
+ it "returns the name plus operator and value" do
36
+ expect(specified).to eq({ "field" => { "$all" => [ 1, 2 ] }})
37
+ end
28
38
  end
29
39
 
30
- let(:specified) do
31
- key.__expr_part__([ 1, 2 ])
40
+ context 'operator and expanded only' do
41
+ let(:key) do
42
+ described_class.new("field", :__override__, "$geoIntersects", '$geometry')
43
+ end
44
+
45
+ let(:specified) do
46
+ key.__expr_part__([ 1, 10 ])
47
+ end
48
+
49
+ it "returns the query expression" do
50
+ expect(specified).to eq({ "field" => {
51
+ '$geoIntersects' => {
52
+ '$geometry' => [1, 10],
53
+ },
54
+ }})
55
+ end
32
56
  end
33
57
 
34
- it "returns the name plus operator and value" do
35
- expect(specified).to eq({ "field" => { "$all" => [ 1, 2 ] }})
58
+ context 'operator, expanded and block' do
59
+ let(:key) do
60
+ described_class.new("field", :__override__, "$geoIntersects", '$geometry') do |value|
61
+ { "type" => 'Point', "coordinates" => value }
62
+ end
63
+ end
64
+
65
+ let(:specified) do
66
+ key.__expr_part__([ 1, 10 ])
67
+ end
68
+
69
+ it "returns the query expression" do
70
+ expect(specified).to eq({ "field" => {
71
+ '$geoIntersects' => {
72
+ '$geometry' => {
73
+ 'type' => 'Point', 'coordinates' => [1, 10],
74
+ },
75
+ },
76
+ }})
77
+ end
36
78
  end
37
79
  end
38
80
 
@@ -841,4 +841,41 @@ describe Mongoid::Criteria::Queryable::Selector do
841
841
  end
842
842
  end
843
843
  end
844
+
845
+ describe '#multi_selection?' do
846
+
847
+ let(:selector) do
848
+ described_class.new
849
+ end
850
+
851
+ context 'when key is $and' do
852
+ it 'returns true' do
853
+ expect(selector.send(:multi_selection?, '$and')).to be true
854
+ end
855
+ end
856
+
857
+ context 'when key is $or' do
858
+ it 'returns true' do
859
+ expect(selector.send(:multi_selection?, '$or')).to be true
860
+ end
861
+ end
862
+
863
+ context 'when key is $nor' do
864
+ it 'returns true' do
865
+ expect(selector.send(:multi_selection?, '$nor')).to be true
866
+ end
867
+ end
868
+
869
+ context 'when key includes $or but is not $or' do
870
+ it 'returns false' do
871
+ expect(selector.send(:multi_selection?, '$ore')).to be false
872
+ end
873
+ end
874
+
875
+ context 'when key is some other ey' do
876
+ it 'returns false' do
877
+ expect(selector.send(:multi_selection?, 'foo')).to be false
878
+ end
879
+ end
880
+ end
844
881
  end
@@ -990,6 +990,7 @@ describe Mongoid::Criteria do
990
990
  end
991
991
 
992
992
  describe "#geo_near" do
993
+ max_server_version '4.0'
993
994
 
994
995
  before do
995
996
  Bar.create_indexes
@@ -3336,6 +3337,8 @@ describe Mongoid::Criteria do
3336
3337
  end
3337
3338
 
3338
3339
  describe "#max_scan" do
3340
+ max_server_version '4.0'
3341
+
3339
3342
  let!(:band) do
3340
3343
  Band.create(name: "Depeche Mode")
3341
3344
  end
@@ -31,6 +31,7 @@ end
31
31
  require 'support/authorization'
32
32
  require 'support/expectations'
33
33
  require 'support/macros'
34
+ require 'support/cluster_config'
34
35
  require 'support/constraints'
35
36
 
36
37
  # Give MongoDB time to start up on the travis ci environment.
@@ -92,14 +93,9 @@ def array_filters_supported?
92
93
  end
93
94
  alias :sessions_supported? :array_filters_supported?
94
95
 
95
- def testing_geo_near?
96
- $geo_near_enabled ||= (Mongoid::Clients.default
97
- .command(serverStatus: 1)
98
- .first['version'] < '4.1')
99
- end
100
-
101
96
  def transactions_supported?
102
- Mongoid::Clients.default.cluster.next_primary.features.transactions_enabled?
97
+ features = Mongoid::Clients.default.cluster.next_primary.features
98
+ features.respond_to?(:transactions_enabled?) && features.transactions_enabled?
103
99
  end
104
100
 
105
101
  def testing_transactions?
@@ -164,7 +160,9 @@ RSpec.configure do |config|
164
160
 
165
161
  # Drop all collections and clear the identity map before each spec.
166
162
  config.before(:each) do
167
- unless Mongoid.default_client.cluster.connected?
163
+ cluster = Mongoid.default_client.cluster
164
+ # Older drivers do not have a #connected? method
165
+ if cluster.respond_to?(:connected?) && !cluster.connected?
168
166
  Mongoid.default_client.reconnect
169
167
  end
170
168
  Mongoid.default_client.collections.each do |coll|
@@ -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
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: 7.0.4
4
+ version: 7.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Durran Jordan
@@ -29,7 +29,7 @@ cert_chain:
29
29
  bMYVwXXhV8czdzgkQB/ZPWHSbEWXnmkze1mzvqWBCPOVXYrcnL9cnEl/RoxtS1hr
30
30
  Db6Ac6mCUSYfYHBWpWqxjc45n70i5Xi1
31
31
  -----END CERTIFICATE-----
32
- date: 2019-06-13 00:00:00.000000000 Z
32
+ date: 2019-09-18 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: activemodel
@@ -40,7 +40,7 @@ dependencies:
40
40
  version: '5.1'
41
41
  - - "<"
42
42
  - !ruby/object:Gem::Version
43
- version: 6.0.0
43
+ version: '6.1'
44
44
  type: :runtime
45
45
  prerelease: false
46
46
  version_requirements: !ruby/object:Gem::Requirement
@@ -50,7 +50,7 @@ dependencies:
50
50
  version: '5.1'
51
51
  - - "<"
52
52
  - !ruby/object:Gem::Version
53
- version: 6.0.0
53
+ version: '6.1'
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: mongo
56
56
  requirement: !ruby/object:Gem::Requirement
@@ -390,6 +390,7 @@ files:
390
390
  - lib/rails/generators/mongoid_generator.rb
391
391
  - lib/rails/mongoid.rb
392
392
  - lib/support/ruby_version.rb
393
+ - spec/README.md
393
394
  - spec/app/models/account.rb
394
395
  - spec/app/models/acolyte.rb
395
396
  - spec/app/models/actor.rb
@@ -713,6 +714,7 @@ files:
713
714
  - spec/mongoid/criteria/queryable/extensions/hash_spec.rb
714
715
  - spec/mongoid/criteria/queryable/extensions/integer_spec.rb
715
716
  - spec/mongoid/criteria/queryable/extensions/nil_class_spec.rb
717
+ - spec/mongoid/criteria/queryable/extensions/numeric_spec.rb
716
718
  - spec/mongoid/criteria/queryable/extensions/object_spec.rb
717
719
  - spec/mongoid/criteria/queryable/extensions/range_spec.rb
718
720
  - spec/mongoid/criteria/queryable/extensions/regexp_raw_spec.rb
@@ -878,6 +880,7 @@ files:
878
880
  - spec/rails/mongoid_spec.rb
879
881
  - spec/spec_helper.rb
880
882
  - spec/support/authorization.rb
883
+ - spec/support/cluster_config.rb
881
884
  - spec/support/constraints.rb
882
885
  - spec/support/expectations.rb
883
886
  - spec/support/macros.rb
@@ -901,500 +904,504 @@ required_rubygems_version: !ruby/object:Gem::Requirement
901
904
  - !ruby/object:Gem::Version
902
905
  version: 1.3.6
903
906
  requirements: []
904
- rubygems_version: 3.0.1
907
+ rubyforge_project: mongoid
908
+ rubygems_version: 2.7.6
905
909
  signing_key:
906
910
  specification_version: 4
907
911
  summary: Elegant Persistence in Ruby for MongoDB.
908
912
  test_files:
909
- - spec/support/macros.rb
913
+ - spec/lite_spec_helper.rb
914
+ - spec/config/mongoid.yml
910
915
  - spec/support/expectations.rb
911
916
  - spec/support/constraints.rb
912
- - spec/support/authorization.rb
917
+ - spec/support/macros.rb
913
918
  - spec/support/spec_config.rb
919
+ - spec/support/authorization.rb
920
+ - spec/support/cluster_config.rb
921
+ - spec/spec_helper.rb
922
+ - spec/README.md
914
923
  - spec/mongoid_spec.rb
915
- - spec/integration/associations/belongs_to_spec.rb
916
- - spec/mongoid/extensions_spec.rb
917
- - spec/mongoid/loggable_spec.rb
918
- - spec/mongoid/indexable_spec.rb
919
- - spec/mongoid/criteria_spec.rb
920
- - spec/mongoid/copyable_spec.rb
921
- - spec/mongoid/clients_spec.rb
922
- - spec/mongoid/changeable_spec.rb
923
- - spec/mongoid/attributes/nested_spec.rb
924
- - spec/mongoid/attributes/readonly_spec.rb
925
- - spec/mongoid/config_spec.rb
926
- - spec/mongoid/relations/proxy_spec.rb
927
- - spec/mongoid/copyable_spec_models.rb
928
- - spec/mongoid/matchable/elem_match_spec.rb
929
- - spec/mongoid/matchable/nor_spec.rb
930
- - spec/mongoid/matchable/all_spec.rb
931
- - spec/mongoid/matchable/ne_spec.rb
932
- - spec/mongoid/matchable/eq_spec.rb
933
- - spec/mongoid/matchable/in_spec.rb
934
- - spec/mongoid/matchable/regexp_spec.rb
935
- - spec/mongoid/matchable/lte_spec.rb
936
- - spec/mongoid/matchable/lt_spec.rb
937
- - spec/mongoid/matchable/size_spec.rb
938
- - spec/mongoid/matchable/default_spec.rb
939
- - spec/mongoid/matchable/exists_spec.rb
940
- - spec/mongoid/matchable/and_spec.rb
941
- - spec/mongoid/matchable/gt_spec.rb
942
- - spec/mongoid/matchable/gte_spec.rb
943
- - spec/mongoid/matchable/nin_spec.rb
944
- - spec/mongoid/matchable/or_spec.rb
945
924
  - spec/mongoid/attributes_spec.rb
946
- - spec/mongoid/threaded_spec.rb
947
- - spec/mongoid/scopable_spec.rb
948
- - spec/mongoid/query_cache_spec.rb
949
- - spec/mongoid/errors/no_client_config_spec.rb
925
+ - spec/mongoid/errors/no_clients_config_spec.rb
926
+ - spec/mongoid/errors/invalid_config_option_spec.rb
927
+ - spec/mongoid/errors/no_parent_spec.rb
928
+ - spec/mongoid/errors/mixed_relations_spec.rb
950
929
  - spec/mongoid/errors/no_metadata_spec.rb
951
- - spec/mongoid/errors/invalid_time_spec.rb
952
- - spec/mongoid/errors/unsupported_javascript_spec.rb
953
- - spec/mongoid/errors/invalid_field_spec.rb
930
+ - spec/mongoid/errors/no_map_reduce_output_spec.rb
954
931
  - spec/mongoid/errors/unsaved_document_spec.rb
955
- - spec/mongoid/errors/readonly_attribute_spec.rb
956
- - spec/mongoid/errors/invalid_relation_spec.rb
932
+ - spec/mongoid/errors/scope_overwrite_spec.rb
957
933
  - spec/mongoid/errors/mixed_client_configuration_spec.rb
958
- - spec/mongoid/errors/validations_spec.rb
959
- - spec/mongoid/errors/invalid_storage_options_spec.rb
934
+ - spec/mongoid/errors/invalid_field_option_spec.rb
935
+ - spec/mongoid/errors/no_client_database_spec.rb
960
936
  - spec/mongoid/errors/document_not_found_spec.rb
961
- - spec/mongoid/errors/readonly_document_spec.rb
962
- - spec/mongoid/errors/invalid_path_spec.rb
963
- - spec/mongoid/errors/no_clients_config_spec.rb
964
- - spec/mongoid/errors/no_client_hosts_spec.rb
965
- - spec/mongoid/errors/ambiguous_relationship_spec.rb
966
- - spec/mongoid/errors/scope_overwrite_spec.rb
967
- - spec/mongoid/errors/invalid_scope_spec.rb
968
- - spec/mongoid/errors/invalid_options_spec.rb
969
- - spec/mongoid/errors/mixed_relations_spec.rb
970
- - spec/mongoid/errors/eager_load_spec.rb
971
- - spec/mongoid/errors/no_environment_spec.rb
937
+ - spec/mongoid/errors/validations_spec.rb
972
938
  - spec/mongoid/errors/mongoid_error_spec.rb
973
- - spec/mongoid/errors/no_map_reduce_output_spec.rb
974
- - spec/mongoid/errors/invalid_field_option_spec.rb
975
- - spec/mongoid/errors/invalid_config_option_spec.rb
976
- - spec/mongoid/errors/invalid_includes_spec.rb
977
- - spec/mongoid/errors/delete_restriction_spec.rb
978
- - spec/mongoid/errors/invalid_set_polymorphic_relation_spec.rb
939
+ - spec/mongoid/errors/invalid_find_spec.rb
940
+ - spec/mongoid/errors/no_environment_spec.rb
941
+ - spec/mongoid/errors/no_client_config_spec.rb
979
942
  - spec/mongoid/errors/document_not_destroyed_spec.rb
943
+ - spec/mongoid/errors/ambiguous_relationship_spec.rb
980
944
  - spec/mongoid/errors/too_many_nested_attribute_records_spec.rb
945
+ - spec/mongoid/errors/invalid_relation_spec.rb
946
+ - spec/mongoid/errors/inverse_not_found_spec.rb
981
947
  - spec/mongoid/errors/invalid_collection_spec.rb
982
- - spec/mongoid/errors/no_parent_spec.rb
948
+ - spec/mongoid/errors/invalid_time_spec.rb
949
+ - spec/mongoid/errors/invalid_path_spec.rb
950
+ - spec/mongoid/errors/readonly_document_spec.rb
951
+ - spec/mongoid/errors/delete_restriction_spec.rb
952
+ - spec/mongoid/errors/invalid_includes_spec.rb
983
953
  - spec/mongoid/errors/invalid_index_spec.rb
984
- - spec/mongoid/errors/invalid_find_spec.rb
954
+ - spec/mongoid/errors/invalid_storage_options_spec.rb
985
955
  - spec/mongoid/errors/unknown_attribute_spec.rb
986
- - spec/mongoid/errors/inverse_not_found_spec.rb
987
- - spec/mongoid/errors/no_client_database_spec.rb
988
- - spec/mongoid/errors/nested_attributes_metadata_not_found_spec.rb
989
956
  - spec/mongoid/errors/callback_spec.rb
990
- - spec/mongoid/persistence_context_spec.rb
991
- - spec/mongoid/inspectable_spec.rb
992
- - spec/mongoid/selectable_spec.rb
993
- - spec/mongoid/criteria/scopable_spec.rb
994
- - spec/mongoid/criteria/inspectable_spec.rb
995
- - spec/mongoid/criteria/queryable/aggregable_spec.rb
996
- - spec/mongoid/criteria/queryable/key_spec.rb
997
- - spec/mongoid/criteria/queryable/smash_spec.rb
998
- - spec/mongoid/criteria/queryable/forwardable_spec.rb
999
- - spec/mongoid/criteria/queryable/selectable_spec.rb
1000
- - spec/mongoid/criteria/queryable/mergeable_spec.rb
1001
- - spec/mongoid/criteria/queryable/extensions/date_spec.rb
1002
- - spec/mongoid/criteria/queryable/extensions/big_decimal_spec.rb
1003
- - spec/mongoid/criteria/queryable/extensions/object_spec.rb
1004
- - spec/mongoid/criteria/queryable/extensions/date_time_spec.rb
1005
- - spec/mongoid/criteria/queryable/extensions/time_with_zone_spec.rb
1006
- - spec/mongoid/criteria/queryable/extensions/time_spec.rb
1007
- - spec/mongoid/criteria/queryable/extensions/hash_spec.rb
1008
- - spec/mongoid/criteria/queryable/extensions/range_spec.rb
1009
- - spec/mongoid/criteria/queryable/extensions/fixnum_spec.rb
1010
- - spec/mongoid/criteria/queryable/extensions/regexp_spec.rb
1011
- - spec/mongoid/criteria/queryable/extensions/symbol_spec.rb
1012
- - spec/mongoid/criteria/queryable/extensions/string_spec.rb
1013
- - spec/mongoid/criteria/queryable/extensions/boolean_spec.rb
1014
- - spec/mongoid/criteria/queryable/extensions/bignum_spec.rb
1015
- - spec/mongoid/criteria/queryable/extensions/array_spec.rb
1016
- - spec/mongoid/criteria/queryable/extensions/nil_class_spec.rb
1017
- - spec/mongoid/criteria/queryable/extensions/set_spec.rb
1018
- - spec/mongoid/criteria/queryable/extensions/integer_spec.rb
1019
- - spec/mongoid/criteria/queryable/extensions/regexp_raw_spec.rb
1020
- - spec/mongoid/criteria/queryable/extensions/float_spec.rb
1021
- - spec/mongoid/criteria/queryable/selector_spec.rb
1022
- - spec/mongoid/criteria/queryable/options_spec.rb
1023
- - spec/mongoid/criteria/queryable/pipeline_spec.rb
1024
- - spec/mongoid/criteria/queryable/optional_spec.rb
1025
- - spec/mongoid/criteria/queryable/queryable_spec.rb
1026
- - spec/mongoid/criteria/findable_spec.rb
1027
- - spec/mongoid/criteria/options_spec.rb
1028
- - spec/mongoid/criteria/modifiable_spec.rb
1029
- - spec/mongoid/criteria/marshalable_spec.rb
957
+ - spec/mongoid/errors/readonly_attribute_spec.rb
958
+ - spec/mongoid/errors/invalid_options_spec.rb
959
+ - spec/mongoid/errors/unsupported_javascript_spec.rb
960
+ - spec/mongoid/errors/eager_load_spec.rb
961
+ - spec/mongoid/errors/no_client_hosts_spec.rb
962
+ - spec/mongoid/errors/invalid_set_polymorphic_relation_spec.rb
963
+ - spec/mongoid/errors/nested_attributes_metadata_not_found_spec.rb
964
+ - spec/mongoid/errors/invalid_field_spec.rb
965
+ - spec/mongoid/errors/invalid_scope_spec.rb
1030
966
  - spec/mongoid/touchable_spec.rb
1031
- - spec/mongoid/findable_spec.rb
1032
- - spec/mongoid/extensions/date_spec.rb
1033
- - spec/mongoid/extensions/big_decimal_spec.rb
1034
- - spec/mongoid/extensions/object_spec.rb
1035
- - spec/mongoid/extensions/date_time_spec.rb
1036
- - spec/mongoid/extensions/time_with_zone_spec.rb
1037
- - spec/mongoid/extensions/time_spec.rb
1038
- - spec/mongoid/extensions/hash_spec.rb
1039
- - spec/mongoid/extensions/range_spec.rb
1040
- - spec/mongoid/extensions/regexp_spec.rb
1041
- - spec/mongoid/extensions/symbol_spec.rb
1042
- - spec/mongoid/extensions/string_spec.rb
1043
- - spec/mongoid/extensions/boolean_spec.rb
1044
- - spec/mongoid/extensions/decimal128_spec.rb
1045
- - spec/mongoid/extensions/array_spec.rb
1046
- - spec/mongoid/extensions/module_spec.rb
1047
- - spec/mongoid/extensions/false_class_spec.rb
1048
- - spec/mongoid/extensions/true_class_spec.rb
1049
- - spec/mongoid/extensions/binary_spec.rb
1050
- - spec/mongoid/extensions/object_id_spec.rb
1051
- - spec/mongoid/extensions/nil_class_spec.rb
1052
- - spec/mongoid/extensions/set_spec.rb
1053
- - spec/mongoid/extensions/integer_spec.rb
1054
- - spec/mongoid/extensions/float_spec.rb
967
+ - spec/mongoid/matchable_spec.rb
968
+ - spec/mongoid/timestamps_spec.rb
969
+ - spec/mongoid/copyable_spec.rb
970
+ - spec/mongoid/config/options_spec.rb
971
+ - spec/mongoid/config/environment_spec.rb
972
+ - spec/mongoid/association/options_spec.rb
973
+ - spec/mongoid/association/builders_spec.rb
974
+ - spec/mongoid/association/constrainable_spec.rb
975
+ - spec/mongoid/association/nested/one_spec.rb
976
+ - spec/mongoid/association/nested/many_spec.rb
977
+ - spec/mongoid/association/reflections_spec.rb
1055
978
  - spec/mongoid/association/auto_save_spec.rb
1056
- - spec/mongoid/association/embedded/cyclic_spec.rb
1057
- - spec/mongoid/association/embedded/embeds_many/proxy_spec.rb
1058
- - spec/mongoid/association/embedded/embeds_many/buildable_spec.rb
1059
- - spec/mongoid/association/embedded/embeds_many/binding_spec.rb
1060
- - spec/mongoid/association/embedded/embeds_one/proxy_spec.rb
1061
- - spec/mongoid/association/embedded/embeds_one/buildable_spec.rb
1062
- - spec/mongoid/association/embedded/embeds_one/binding_spec.rb
1063
- - spec/mongoid/association/embedded/embeds_one_spec.rb
1064
- - spec/mongoid/association/embedded/embedded_in/proxy_spec.rb
1065
- - spec/mongoid/association/embedded/embedded_in/buildable_spec.rb
1066
- - spec/mongoid/association/embedded/embedded_in/binding_spec.rb
1067
- - spec/mongoid/association/embedded/embeds_many_spec.rb
1068
- - spec/mongoid/association/embedded/embeds_one_dnl_models.rb
1069
- - spec/mongoid/association/embedded/embeds_one_models.rb
1070
- - spec/mongoid/association/embedded/dirty_spec.rb
1071
- - spec/mongoid/association/embedded/embedded_in_spec.rb
1072
- - spec/mongoid/association/syncable_spec.rb
1073
979
  - spec/mongoid/association/accessors_spec.rb
980
+ - spec/mongoid/association/macros_spec.rb
1074
981
  - spec/mongoid/association/depending_spec.rb
1075
- - spec/mongoid/association/options_spec.rb
1076
- - spec/mongoid/association/counter_cache_spec.rb
1077
- - spec/mongoid/association/referenced/has_many/proxy_query_spec.rb
1078
- - spec/mongoid/association/referenced/has_many/proxy_spec.rb
1079
- - spec/mongoid/association/referenced/has_many/buildable_spec.rb
1080
- - spec/mongoid/association/referenced/has_many/eager_spec.rb
1081
- - spec/mongoid/association/referenced/has_many/enumerable_spec.rb
1082
- - spec/mongoid/association/referenced/has_many/binding_spec.rb
1083
- - spec/mongoid/association/referenced/belongs_to_spec.rb
1084
- - spec/mongoid/association/referenced/has_and_belongs_to_many_models.rb
1085
- - spec/mongoid/association/referenced/has_and_belongs_to_many/proxy_spec.rb
982
+ - spec/mongoid/association/polymorphic_spec.rb
1086
983
  - spec/mongoid/association/referenced/has_and_belongs_to_many/buildable_spec.rb
984
+ - spec/mongoid/association/referenced/has_and_belongs_to_many/proxy_spec.rb
1087
985
  - spec/mongoid/association/referenced/has_and_belongs_to_many/proxy_persistence_spec.rb
1088
- - spec/mongoid/association/referenced/has_and_belongs_to_many/eager_spec.rb
1089
986
  - spec/mongoid/association/referenced/has_and_belongs_to_many/binding_spec.rb
987
+ - spec/mongoid/association/referenced/has_and_belongs_to_many/eager_spec.rb
1090
988
  - spec/mongoid/association/referenced/has_many_spec.rb
1091
- - spec/mongoid/association/referenced/belongs_to/proxy_spec.rb
1092
- - spec/mongoid/association/referenced/belongs_to/buildable_spec.rb
1093
- - spec/mongoid/association/referenced/belongs_to/eager_spec.rb
1094
- - spec/mongoid/association/referenced/belongs_to/binding_spec.rb
1095
- - spec/mongoid/association/referenced/has_and_belongs_to_many_spec.rb
1096
- - spec/mongoid/association/referenced/has_one/proxy_spec.rb
1097
989
  - spec/mongoid/association/referenced/has_one/buildable_spec.rb
1098
- - spec/mongoid/association/referenced/has_one/eager_spec.rb
990
+ - spec/mongoid/association/referenced/has_one/proxy_spec.rb
1099
991
  - spec/mongoid/association/referenced/has_one/binding_spec.rb
1100
- - spec/mongoid/association/referenced/has_one_models.rb
992
+ - spec/mongoid/association/referenced/has_one/eager_spec.rb
993
+ - spec/mongoid/association/referenced/has_many/proxy_query_spec.rb
994
+ - spec/mongoid/association/referenced/has_many/buildable_spec.rb
995
+ - spec/mongoid/association/referenced/has_many/proxy_spec.rb
996
+ - spec/mongoid/association/referenced/has_many/binding_spec.rb
997
+ - spec/mongoid/association/referenced/has_many/eager_spec.rb
998
+ - spec/mongoid/association/referenced/has_many/enumerable_spec.rb
1101
999
  - spec/mongoid/association/referenced/has_many_models.rb
1000
+ - spec/mongoid/association/referenced/has_one_models.rb
1001
+ - spec/mongoid/association/referenced/belongs_to/buildable_spec.rb
1002
+ - spec/mongoid/association/referenced/belongs_to/proxy_spec.rb
1003
+ - spec/mongoid/association/referenced/belongs_to/binding_spec.rb
1004
+ - spec/mongoid/association/referenced/belongs_to/eager_spec.rb
1102
1005
  - spec/mongoid/association/referenced/has_one_spec.rb
1006
+ - spec/mongoid/association/referenced/belongs_to_spec.rb
1007
+ - spec/mongoid/association/referenced/has_and_belongs_to_many_models.rb
1008
+ - spec/mongoid/association/referenced/has_and_belongs_to_many_spec.rb
1009
+ - spec/mongoid/association/syncable_spec.rb
1010
+ - spec/mongoid/association/counter_cache_spec.rb
1011
+ - spec/mongoid/association/embedded/embedded_in/buildable_spec.rb
1012
+ - spec/mongoid/association/embedded/embedded_in/proxy_spec.rb
1013
+ - spec/mongoid/association/embedded/embedded_in/binding_spec.rb
1014
+ - spec/mongoid/association/embedded/embeds_many_spec.rb
1015
+ - spec/mongoid/association/embedded/embeds_many/buildable_spec.rb
1016
+ - spec/mongoid/association/embedded/embeds_many/proxy_spec.rb
1017
+ - spec/mongoid/association/embedded/embeds_many/binding_spec.rb
1018
+ - spec/mongoid/association/embedded/embeds_one_models.rb
1019
+ - spec/mongoid/association/embedded/cyclic_spec.rb
1020
+ - spec/mongoid/association/embedded/embeds_one_dnl_models.rb
1021
+ - spec/mongoid/association/embedded/dirty_spec.rb
1022
+ - spec/mongoid/association/embedded/embedded_in_spec.rb
1023
+ - spec/mongoid/association/embedded/embeds_one_spec.rb
1024
+ - spec/mongoid/association/embedded/embeds_one/buildable_spec.rb
1025
+ - spec/mongoid/association/embedded/embeds_one/proxy_spec.rb
1026
+ - spec/mongoid/association/embedded/embeds_one/binding_spec.rb
1103
1027
  - spec/mongoid/association/eager_spec.rb
1104
- - spec/mongoid/association/nested/many_spec.rb
1105
- - spec/mongoid/association/nested/one_spec.rb
1106
- - spec/mongoid/association/macros_spec.rb
1107
- - spec/mongoid/association/constrainable_spec.rb
1108
- - spec/mongoid/association/reflections_spec.rb
1109
- - spec/mongoid/association/polymorphic_spec.rb
1110
- - spec/mongoid/association/builders_spec.rb
1111
- - spec/mongoid/composable_spec.rb
1112
- - spec/mongoid/atomic_spec.rb
1113
- - spec/mongoid/atomic/paths/embedded/many_spec.rb
1114
- - spec/mongoid/atomic/paths/embedded/one_spec.rb
1115
- - spec/mongoid/atomic/paths/root_spec.rb
1116
- - spec/mongoid/atomic/paths_spec.rb
1117
- - spec/mongoid/atomic/modifiers_spec.rb
1118
- - spec/mongoid/serializable_spec.rb
1119
- - spec/mongoid/cacheable_spec.rb
1120
- - spec/mongoid/traversable_spec.rb
1121
- - spec/mongoid/validatable_spec.rb
1122
- - spec/mongoid/reloadable_spec.rb
1123
- - spec/mongoid/persistable/settable_spec.rb
1124
- - spec/mongoid/persistable/destroyable_spec.rb
1125
- - spec/mongoid/persistable/upsertable_spec.rb
1126
- - spec/mongoid/persistable/savable_spec.rb
1127
- - spec/mongoid/persistable/logical_spec.rb
1128
- - spec/mongoid/persistable/pullable_spec.rb
1129
- - spec/mongoid/persistable/poppable_spec.rb
1130
- - spec/mongoid/persistable/incrementable_spec.rb
1028
+ - spec/mongoid/loggable_spec.rb
1029
+ - spec/mongoid/association_spec.rb
1030
+ - spec/mongoid/persistable/deletable_spec.rb
1131
1031
  - spec/mongoid/persistable/updatable_spec.rb
1032
+ - spec/mongoid/persistable/upsertable_spec.rb
1033
+ - spec/mongoid/persistable/creatable_spec.rb
1132
1034
  - spec/mongoid/persistable/unsettable_spec.rb
1133
1035
  - spec/mongoid/persistable/renamable_spec.rb
1134
- - spec/mongoid/persistable/deletable_spec.rb
1135
- - spec/mongoid/persistable/creatable_spec.rb
1036
+ - spec/mongoid/persistable/destroyable_spec.rb
1037
+ - spec/mongoid/persistable/poppable_spec.rb
1038
+ - spec/mongoid/persistable/pullable_spec.rb
1039
+ - spec/mongoid/persistable/savable_spec.rb
1040
+ - spec/mongoid/persistable/logical_spec.rb
1136
1041
  - spec/mongoid/persistable/pushable_spec.rb
1137
- - spec/mongoid/config/environment_spec.rb
1138
- - spec/mongoid/config/options_spec.rb
1139
- - spec/mongoid/factory_spec.rb
1140
- - spec/mongoid/clients/sessions_spec.rb
1042
+ - spec/mongoid/persistable/settable_spec.rb
1043
+ - spec/mongoid/persistable/incrementable_spec.rb
1044
+ - spec/mongoid/persistence_context_spec.rb
1045
+ - spec/mongoid/scopable_spec.rb
1141
1046
  - spec/mongoid/clients/options_spec.rb
1142
- - spec/mongoid/clients/factory_spec.rb
1143
1047
  - spec/mongoid/clients/transactions_spec.rb
1144
- - spec/mongoid/persistable_spec.rb
1145
- - spec/mongoid/matchable_spec.rb
1146
- - spec/mongoid/timestamps/created_spec.rb
1147
- - spec/mongoid/timestamps/created/short_spec.rb
1148
- - spec/mongoid/timestamps/timeless_spec.rb
1149
- - spec/mongoid/timestamps/updated_spec.rb
1150
- - spec/mongoid/timestamps/updated/short_spec.rb
1151
- - spec/mongoid/validatable/presence_spec.rb
1152
- - spec/mongoid/validatable/format_spec.rb
1153
- - spec/mongoid/validatable/numericality_spec.rb
1154
- - spec/mongoid/validatable/associated_spec.rb
1155
- - spec/mongoid/validatable/uniqueness_spec.rb
1156
- - spec/mongoid/validatable/length_spec.rb
1157
- - spec/mongoid/shardable_spec.rb
1048
+ - spec/mongoid/clients/sessions_spec.rb
1049
+ - spec/mongoid/clients/factory_spec.rb
1050
+ - spec/mongoid/traversable_spec.rb
1051
+ - spec/mongoid/contextual/none_spec.rb
1052
+ - spec/mongoid/contextual/memory_spec.rb
1053
+ - spec/mongoid/contextual/mongo_spec.rb
1054
+ - spec/mongoid/contextual/aggregable/memory_spec.rb
1055
+ - spec/mongoid/contextual/aggregable/mongo_spec.rb
1056
+ - spec/mongoid/contextual/atomic_spec.rb
1057
+ - spec/mongoid/contextual/geo_near_spec.rb
1058
+ - spec/mongoid/contextual/map_reduce_spec.rb
1059
+ - spec/mongoid/stateful_spec.rb
1060
+ - spec/mongoid/config_spec.rb
1061
+ - spec/mongoid/query_cache_spec.rb
1158
1062
  - spec/mongoid/interceptable_spec.rb
1159
- - spec/mongoid/fields/localized_spec.rb
1063
+ - spec/mongoid/composable_spec.rb
1064
+ - spec/mongoid/clients_spec.rb
1065
+ - spec/mongoid/findable_spec.rb
1066
+ - spec/mongoid/indexable_spec.rb
1067
+ - spec/mongoid/criteria_spec.rb
1068
+ - spec/mongoid/attributes/readonly_spec.rb
1069
+ - spec/mongoid/attributes/nested_spec.rb
1070
+ - spec/mongoid/fields_spec.rb
1160
1071
  - spec/mongoid/fields/standard_spec.rb
1161
1072
  - spec/mongoid/fields/foreign_key_spec.rb
1162
- - spec/mongoid/equality_spec.rb
1163
- - spec/mongoid/stateful_spec.rb
1164
- - spec/mongoid/timestamps_spec.rb
1165
- - spec/mongoid/association_spec.rb
1166
- - spec/mongoid/fields_spec.rb
1073
+ - spec/mongoid/fields/localized_spec.rb
1074
+ - spec/mongoid/extensions/date_time_spec.rb
1075
+ - spec/mongoid/extensions/time_with_zone_spec.rb
1076
+ - spec/mongoid/extensions/integer_spec.rb
1077
+ - spec/mongoid/extensions/object_spec.rb
1078
+ - spec/mongoid/extensions/date_spec.rb
1079
+ - spec/mongoid/extensions/true_class_spec.rb
1080
+ - spec/mongoid/extensions/binary_spec.rb
1081
+ - spec/mongoid/extensions/hash_spec.rb
1082
+ - spec/mongoid/extensions/boolean_spec.rb
1083
+ - spec/mongoid/extensions/false_class_spec.rb
1084
+ - spec/mongoid/extensions/decimal128_spec.rb
1085
+ - spec/mongoid/extensions/object_id_spec.rb
1086
+ - spec/mongoid/extensions/big_decimal_spec.rb
1087
+ - spec/mongoid/extensions/string_spec.rb
1088
+ - spec/mongoid/extensions/float_spec.rb
1089
+ - spec/mongoid/extensions/range_spec.rb
1090
+ - spec/mongoid/extensions/nil_class_spec.rb
1091
+ - spec/mongoid/extensions/time_spec.rb
1092
+ - spec/mongoid/extensions/regexp_spec.rb
1093
+ - spec/mongoid/extensions/set_spec.rb
1094
+ - spec/mongoid/extensions/symbol_spec.rb
1095
+ - spec/mongoid/extensions/module_spec.rb
1096
+ - spec/mongoid/extensions/array_spec.rb
1167
1097
  - spec/mongoid/document_spec.rb
1168
- - spec/mongoid/contextual/map_reduce_spec.rb
1169
- - spec/mongoid/contextual/aggregable/memory_spec.rb
1170
- - spec/mongoid/contextual/aggregable/mongo_spec.rb
1171
- - spec/mongoid/contextual/geo_near_spec.rb
1172
- - spec/mongoid/contextual/memory_spec.rb
1173
- - spec/mongoid/contextual/atomic_spec.rb
1174
- - spec/mongoid/contextual/none_spec.rb
1175
- - spec/mongoid/contextual/mongo_spec.rb
1176
- - spec/mongoid/indexable/specification_spec.rb
1098
+ - spec/mongoid/reloadable_spec.rb
1099
+ - spec/mongoid/extensions_spec.rb
1100
+ - spec/mongoid/relations/proxy_spec.rb
1101
+ - spec/mongoid/matchable/all_spec.rb
1102
+ - spec/mongoid/matchable/size_spec.rb
1103
+ - spec/mongoid/matchable/and_spec.rb
1104
+ - spec/mongoid/matchable/nin_spec.rb
1105
+ - spec/mongoid/matchable/ne_spec.rb
1106
+ - spec/mongoid/matchable/eq_spec.rb
1107
+ - spec/mongoid/matchable/lte_spec.rb
1108
+ - spec/mongoid/matchable/gt_spec.rb
1109
+ - spec/mongoid/matchable/default_spec.rb
1110
+ - spec/mongoid/matchable/exists_spec.rb
1111
+ - spec/mongoid/matchable/or_spec.rb
1112
+ - spec/mongoid/matchable/gte_spec.rb
1113
+ - spec/mongoid/matchable/in_spec.rb
1114
+ - spec/mongoid/matchable/elem_match_spec.rb
1115
+ - spec/mongoid/matchable/regexp_spec.rb
1116
+ - spec/mongoid/matchable/lt_spec.rb
1117
+ - spec/mongoid/matchable/nor_spec.rb
1118
+ - spec/mongoid/changeable_spec.rb
1177
1119
  - spec/mongoid/positional_spec.rb
1120
+ - spec/mongoid/serializable_spec.rb
1121
+ - spec/mongoid/threaded_spec.rb
1122
+ - spec/mongoid/atomic/modifiers_spec.rb
1123
+ - spec/mongoid/atomic/paths_spec.rb
1124
+ - spec/mongoid/atomic/paths/root_spec.rb
1125
+ - spec/mongoid/atomic/paths/embedded/one_spec.rb
1126
+ - spec/mongoid/atomic/paths/embedded/many_spec.rb
1127
+ - spec/mongoid/validatable/numericality_spec.rb
1128
+ - spec/mongoid/validatable/associated_spec.rb
1129
+ - spec/mongoid/validatable/length_spec.rb
1130
+ - spec/mongoid/validatable/uniqueness_spec.rb
1131
+ - spec/mongoid/validatable/presence_spec.rb
1132
+ - spec/mongoid/validatable/format_spec.rb
1133
+ - spec/mongoid/selectable_spec.rb
1134
+ - spec/mongoid/cacheable_spec.rb
1135
+ - spec/mongoid/timestamps/created_spec.rb
1136
+ - spec/mongoid/timestamps/updated/short_spec.rb
1137
+ - spec/mongoid/timestamps/created/short_spec.rb
1138
+ - spec/mongoid/timestamps/timeless_spec.rb
1139
+ - spec/mongoid/timestamps/updated_spec.rb
1140
+ - spec/mongoid/criteria/options_spec.rb
1141
+ - spec/mongoid/criteria/scopable_spec.rb
1142
+ - spec/mongoid/criteria/findable_spec.rb
1143
+ - spec/mongoid/criteria/queryable/options_spec.rb
1144
+ - spec/mongoid/criteria/queryable/pipeline_spec.rb
1145
+ - spec/mongoid/criteria/queryable/optional_spec.rb
1146
+ - spec/mongoid/criteria/queryable/aggregable_spec.rb
1147
+ - spec/mongoid/criteria/queryable/selector_spec.rb
1148
+ - spec/mongoid/criteria/queryable/extensions/date_time_spec.rb
1149
+ - spec/mongoid/criteria/queryable/extensions/time_with_zone_spec.rb
1150
+ - spec/mongoid/criteria/queryable/extensions/integer_spec.rb
1151
+ - spec/mongoid/criteria/queryable/extensions/object_spec.rb
1152
+ - spec/mongoid/criteria/queryable/extensions/date_spec.rb
1153
+ - spec/mongoid/criteria/queryable/extensions/bignum_spec.rb
1154
+ - spec/mongoid/criteria/queryable/extensions/regexp_raw_spec.rb
1155
+ - spec/mongoid/criteria/queryable/extensions/numeric_spec.rb
1156
+ - spec/mongoid/criteria/queryable/extensions/hash_spec.rb
1157
+ - spec/mongoid/criteria/queryable/extensions/boolean_spec.rb
1158
+ - spec/mongoid/criteria/queryable/extensions/fixnum_spec.rb
1159
+ - spec/mongoid/criteria/queryable/extensions/big_decimal_spec.rb
1160
+ - spec/mongoid/criteria/queryable/extensions/string_spec.rb
1161
+ - spec/mongoid/criteria/queryable/extensions/float_spec.rb
1162
+ - spec/mongoid/criteria/queryable/extensions/range_spec.rb
1163
+ - spec/mongoid/criteria/queryable/extensions/nil_class_spec.rb
1164
+ - spec/mongoid/criteria/queryable/extensions/time_spec.rb
1165
+ - spec/mongoid/criteria/queryable/extensions/regexp_spec.rb
1166
+ - spec/mongoid/criteria/queryable/extensions/set_spec.rb
1167
+ - spec/mongoid/criteria/queryable/extensions/symbol_spec.rb
1168
+ - spec/mongoid/criteria/queryable/extensions/array_spec.rb
1169
+ - spec/mongoid/criteria/queryable/selectable_spec.rb
1170
+ - spec/mongoid/criteria/queryable/forwardable_spec.rb
1171
+ - spec/mongoid/criteria/queryable/smash_spec.rb
1172
+ - spec/mongoid/criteria/queryable/key_spec.rb
1173
+ - spec/mongoid/criteria/queryable/mergeable_spec.rb
1174
+ - spec/mongoid/criteria/queryable/queryable_spec.rb
1175
+ - spec/mongoid/criteria/marshalable_spec.rb
1176
+ - spec/mongoid/criteria/inspectable_spec.rb
1177
+ - spec/mongoid/criteria/modifiable_spec.rb
1178
+ - spec/mongoid/validatable_spec.rb
1179
+ - spec/mongoid/inspectable_spec.rb
1180
+ - spec/mongoid/equality_spec.rb
1178
1181
  - spec/mongoid/tasks/database_rake_spec.rb
1179
1182
  - spec/mongoid/tasks/database_spec.rb
1180
- - spec/config/mongoid.yml
1181
- - spec/lite_spec_helper.rb
1182
- - spec/spec_helper.rb
1183
- - spec/app/models/browser.rb
1184
- - spec/app/models/exhibitor.rb
1183
+ - spec/mongoid/persistable_spec.rb
1184
+ - spec/mongoid/copyable_spec_models.rb
1185
+ - spec/mongoid/atomic_spec.rb
1186
+ - spec/mongoid/shardable_spec.rb
1187
+ - spec/mongoid/factory_spec.rb
1188
+ - spec/mongoid/indexable/specification_spec.rb
1189
+ - spec/app/models/profile.rb
1190
+ - spec/app/models/contractor.rb
1191
+ - spec/app/models/ownable.rb
1192
+ - spec/app/models/sound.rb
1193
+ - spec/app/models/rating.rb
1194
+ - spec/app/models/manufacturer.rb
1195
+ - spec/app/models/video.rb
1196
+ - spec/app/models/message.rb
1197
+ - spec/app/models/shop.rb
1198
+ - spec/app/models/address_number.rb
1199
+ - spec/app/models/product.rb
1185
1200
  - spec/app/models/simple.rb
1186
- - spec/app/models/shipment_address.rb
1187
- - spec/app/models/odd.rb
1188
- - spec/app/models/palette.rb
1189
- - spec/app/models/circle.rb
1190
- - spec/app/models/membership.rb
1191
- - spec/app/models/driver.rb
1201
+ - spec/app/models/author.rb
1202
+ - spec/app/models/my_hash.rb
1203
+ - spec/app/models/dokument.rb
1204
+ - spec/app/models/artwork.rb
1192
1205
  - spec/app/models/root_category.rb
1193
- - spec/app/models/company.rb
1194
- - spec/app/models/validation_callback.rb
1195
- - spec/app/models/event.rb
1196
- - spec/app/models/user.rb
1197
- - spec/app/models/symptom.rb
1198
- - spec/app/models/label.rb
1199
- - spec/app/models/cat.rb
1200
- - spec/app/models/email.rb
1206
+ - spec/app/models/face.rb
1207
+ - spec/app/models/definition.rb
1208
+ - spec/app/models/artist.rb
1209
+ - spec/app/models/agency.rb
1210
+ - spec/app/models/weapon.rb
1211
+ - spec/app/models/topping.rb
1212
+ - spec/app/models/fruits.rb
1213
+ - spec/app/models/role.rb
1214
+ - spec/app/models/image.rb
1215
+ - spec/app/models/dog.rb
1216
+ - spec/app/models/store_as_dup_test3.rb
1217
+ - spec/app/models/fish.rb
1218
+ - spec/app/models/tag.rb
1219
+ - spec/app/models/building_address.rb
1220
+ - spec/app/models/person.rb
1221
+ - spec/app/models/pack.rb
1222
+ - spec/app/models/title.rb
1223
+ - spec/app/models/vehicle.rb
1224
+ - spec/app/models/breed.rb
1201
1225
  - spec/app/models/alert.rb
1202
- - spec/app/models/tree.rb
1203
- - spec/app/models/princess.rb
1204
- - spec/app/models/big_palette.rb
1205
- - spec/app/models/augmentation.rb
1206
- - spec/app/models/dungeon.rb
1207
- - spec/app/models/author.rb
1208
- - spec/app/models/appointment.rb
1209
- - spec/app/models/game.rb
1210
- - spec/app/models/ghost.rb
1226
+ - spec/app/models/category.rb
1227
+ - spec/app/models/canvas.rb
1211
1228
  - spec/app/models/line_item.rb
1212
- - spec/app/models/question.rb
1213
- - spec/app/models/church.rb
1214
- - spec/app/models/updatable.rb
1215
- - spec/app/models/short_quiz.rb
1216
- - spec/app/models/division.rb
1217
- - spec/app/models/sub_item.rb
1218
- - spec/app/models/subscription.rb
1219
- - spec/app/models/word.rb
1220
- - spec/app/models/kangaroo.rb
1221
1229
  - spec/app/models/parent.rb
1222
- - spec/app/models/profile.rb
1223
- - spec/app/models/basic.rb
1224
- - spec/app/models/registry.rb
1225
- - spec/app/models/node.rb
1226
- - spec/app/models/id_key.rb
1227
- - spec/app/models/child_doc.rb
1228
- - spec/app/models/ownable.rb
1229
- - spec/app/models/pet.rb
1230
+ - spec/app/models/odd.rb
1231
+ - spec/app/models/princess.rb
1232
+ - spec/app/models/song.rb
1233
+ - spec/app/models/cat.rb
1234
+ - spec/app/models/staff.rb
1235
+ - spec/app/models/circuit.rb
1236
+ - spec/app/models/pet_owner.rb
1237
+ - spec/app/models/learner.rb
1238
+ - spec/app/models/video_game.rb
1239
+ - spec/app/models/validation_callback.rb
1240
+ - spec/app/models/service.rb
1241
+ - spec/app/models/account.rb
1242
+ - spec/app/models/shipment_address.rb
1230
1243
  - spec/app/models/preference.rb
1231
- - spec/app/models/artist.rb
1232
- - spec/app/models/my_hash.rb
1233
- - spec/app/models/post.rb
1234
- - spec/app/models/other_owner_object.rb
1235
- - spec/app/models/track.rb
1236
- - spec/app/models/tool.rb
1237
- - spec/app/models/movie.rb
1238
- - spec/app/models/truck.rb
1244
+ - spec/app/models/series.rb
1245
+ - spec/app/models/seo.rb
1246
+ - spec/app/models/short_agent.rb
1247
+ - spec/app/models/pet.rb
1248
+ - spec/app/models/version.rb
1249
+ - spec/app/models/node.rb
1250
+ - spec/app/models/owner.rb
1251
+ - spec/app/models/folder_item.rb
1252
+ - spec/app/models/record.rb
1253
+ - spec/app/models/survey.rb
1254
+ - spec/app/models/implant.rb
1255
+ - spec/app/models/agent.rb
1256
+ - spec/app/models/label.rb
1257
+ - spec/app/models/phone.rb
1258
+ - spec/app/models/writer.rb
1259
+ - spec/app/models/league.rb
1260
+ - spec/app/models/circle.rb
1261
+ - spec/app/models/description.rb
1262
+ - spec/app/models/thing.rb
1263
+ - spec/app/models/word_origin.rb
1264
+ - spec/app/models/meat.rb
1265
+ - spec/app/models/server.rb
1239
1266
  - spec/app/models/child.rb
1267
+ - spec/app/models/country_code.rb
1268
+ - spec/app/models/bed.rb
1269
+ - spec/app/models/sandwich.rb
1270
+ - spec/app/models/augmentation.rb
1271
+ - spec/app/models/store_as_dup_test1.rb
1272
+ - spec/app/models/registry.rb
1273
+ - spec/app/models/business.rb
1274
+ - spec/app/models/church.rb
1275
+ - spec/app/models/even.rb
1276
+ - spec/app/models/parent_doc.rb
1277
+ - spec/app/models/patient.rb
1278
+ - spec/app/models/audio.rb
1279
+ - spec/app/models/callback_test.rb
1280
+ - spec/app/models/consumption_period.rb
1281
+ - spec/app/models/updatable.rb
1282
+ - spec/app/models/game.rb
1283
+ - spec/app/models/eye.rb
1284
+ - spec/app/models/bus.rb
1285
+ - spec/app/models/strategy.rb
1286
+ - spec/app/models/html_writer.rb
1287
+ - spec/app/models/purchase.rb
1240
1288
  - spec/app/models/exhibition.rb
1241
- - spec/app/models/building.rb
1242
- - spec/app/models/pronunciation.rb
1289
+ - spec/app/models/fire_hydrant.rb
1290
+ - spec/app/models/answer.rb
1243
1291
  - spec/app/models/oscar.rb
1244
- - spec/app/models/minim.rb
1245
- - spec/app/models/player.rb
1292
+ - spec/app/models/truck.rb
1293
+ - spec/app/models/template.rb
1294
+ - spec/app/models/driver.rb
1295
+ - spec/app/models/employer.rb
1296
+ - spec/app/models/subscription.rb
1297
+ - spec/app/models/baby.rb
1298
+ - spec/app/models/bomb.rb
1299
+ - spec/app/models/car.rb
1300
+ - spec/app/models/division.rb
1301
+ - spec/app/models/eye_bowl.rb
1302
+ - spec/app/models/wiki_page.rb
1303
+ - spec/app/models/tree.rb
1246
1304
  - spec/app/models/draft.rb
1247
- - spec/app/models/store_as_dup_test1.rb
1248
- - spec/app/models/fruits.rb
1249
- - spec/app/models/circuit.rb
1250
- - spec/app/models/owner.rb
1251
- - spec/app/models/bar.rb
1252
- - spec/app/models/answer.rb
1253
- - spec/app/models/mixed_drink.rb
1305
+ - spec/app/models/word.rb
1306
+ - spec/app/models/vet_visit.rb
1307
+ - spec/app/models/post_genre.rb
1308
+ - spec/app/models/address_component.rb
1254
1309
  - spec/app/models/filesystem.rb
1255
- - spec/app/models/entry.rb
1256
- - spec/app/models/service.rb
1257
- - spec/app/models/video_game.rb
1258
- - spec/app/models/category.rb
1259
- - spec/app/models/doctor.rb
1260
- - spec/app/models/shipping_pack.rb
1261
- - spec/app/models/language.rb
1262
- - spec/app/models/shop.rb
1263
- - spec/app/models/slave.rb
1264
1310
  - spec/app/models/location.rb
1265
- - spec/app/models/firefox.rb
1266
- - spec/app/models/actor.rb
1267
- - spec/app/models/folder_item.rb
1268
- - spec/app/models/explosion.rb
1269
- - spec/app/models/page.rb
1270
- - spec/app/models/callback_test.rb
1271
- - spec/app/models/staff.rb
1272
- - spec/app/models/folder.rb
1273
- - spec/app/models/title.rb
1274
- - spec/app/models/lat_lng.rb
1275
- - spec/app/models/business.rb
1276
- - spec/app/models/artwork.rb
1277
- - spec/app/models/song.rb
1278
- - spec/app/models/record.rb
1279
- - spec/app/models/server.rb
1280
1311
  - spec/app/models/drug.rb
1281
- - spec/app/models/quiz.rb
1282
- - spec/app/models/edit.rb
1283
- - spec/app/models/baby.rb
1284
- - spec/app/models/template.rb
1285
- - spec/app/models/band.rb
1286
- - spec/app/models/ordered_preference.rb
1287
- - spec/app/models/dog.rb
1288
- - spec/app/models/target.rb
1289
- - spec/app/models/fire_hydrant.rb
1290
- - spec/app/models/pub.rb
1291
- - spec/app/models/description.rb
1292
- - spec/app/models/eye_bowl.rb
1293
- - spec/app/models/bed.rb
1294
- - spec/app/models/shelf.rb
1295
- - spec/app/models/image.rb
1296
- - spec/app/models/shape.rb
1297
- - spec/app/models/dokument.rb
1312
+ - spec/app/models/vertex.rb
1313
+ - spec/app/models/appointment.rb
1314
+ - spec/app/models/bar.rb
1315
+ - spec/app/models/player.rb
1316
+ - spec/app/models/folder.rb
1317
+ - spec/app/models/passport.rb
1298
1318
  - spec/app/models/translation.rb
1299
- - spec/app/models/writer.rb
1300
- - spec/app/models/meat.rb
1301
- - spec/app/models/weapon.rb
1302
- - spec/app/models/sound.rb
1303
- - spec/app/models/rating.rb
1304
- - spec/app/models/consumption_period.rb
1305
- - spec/app/models/store_as_dup_test2.rb
1306
- - spec/app/models/tag.rb
1307
- - spec/app/models/manufacturer.rb
1319
+ - spec/app/models/big_palette.rb
1308
1320
  - spec/app/models/courier_job.rb
1309
- - spec/app/models/canvas.rb
1310
- - spec/app/models/strategy.rb
1311
- - spec/app/models/series.rb
1312
- - spec/app/models/building_address.rb
1313
- - spec/app/models/code.rb
1314
- - spec/app/models/thing.rb
1321
+ - spec/app/models/membership.rb
1322
+ - spec/app/models/kangaroo.rb
1323
+ - spec/app/models/lat_lng.rb
1324
+ - spec/app/models/album.rb
1325
+ - spec/app/models/exhibitor.rb
1326
+ - spec/app/models/page_question.rb
1327
+ - spec/app/models/basic.rb
1328
+ - spec/app/models/powerup.rb
1329
+ - spec/app/models/edit.rb
1330
+ - spec/app/models/user_account.rb
1331
+ - spec/app/models/post.rb
1332
+ - spec/app/models/browser.rb
1333
+ - spec/app/models/jar.rb
1334
+ - spec/app/models/kaleidoscope.rb
1335
+ - spec/app/models/firefox.rb
1336
+ - spec/app/models/actor.rb
1315
1337
  - spec/app/models/dragon.rb
1316
- - spec/app/models/learner.rb
1317
- - spec/app/models/contextable_item.rb
1338
+ - spec/app/models/cookie.rb
1339
+ - spec/app/models/short_quiz.rb
1340
+ - spec/app/models/note.rb
1341
+ - spec/app/models/comment.rb
1342
+ - spec/app/models/band.rb
1318
1343
  - spec/app/models/circus.rb
1319
- - spec/app/models/role.rb
1320
- - spec/app/models/topping.rb
1321
- - spec/app/models/html_writer.rb
1322
1344
  - spec/app/models/ordered_post.rb
1323
- - spec/app/models/parent_doc.rb
1324
- - spec/app/models/store_as_dup_test4.rb
1345
+ - spec/app/models/code.rb
1346
+ - spec/app/models/track.rb
1347
+ - spec/app/models/user.rb
1348
+ - spec/app/models/store_as_dup_test2.rb
1349
+ - spec/app/models/eraser.rb
1350
+ - spec/app/models/building.rb
1351
+ - spec/app/models/shelf.rb
1352
+ - spec/app/models/address.rb
1353
+ - spec/app/models/animal.rb
1354
+ - spec/app/models/pronunciation.rb
1355
+ - spec/app/models/shipping_pack.rb
1356
+ - spec/app/models/symptom.rb
1357
+ - spec/app/models/entry.rb
1358
+ - spec/app/models/square.rb
1359
+ - spec/app/models/shape.rb
1360
+ - spec/app/models/language.rb
1361
+ - spec/app/models/question.rb
1362
+ - spec/app/models/pencil.rb
1363
+ - spec/app/models/pub.rb
1364
+ - spec/app/models/pdf_writer.rb
1365
+ - spec/app/models/page.rb
1325
1366
  - spec/app/models/acolyte.rb
1367
+ - spec/app/models/article.rb
1368
+ - spec/app/models/home.rb
1369
+ - spec/app/models/login.rb
1370
+ - spec/app/models/slave.rb
1371
+ - spec/app/models/ordered_preference.rb
1372
+ - spec/app/models/item.rb
1373
+ - spec/app/models/book.rb
1374
+ - spec/app/models/explosion.rb
1375
+ - spec/app/models/name.rb
1376
+ - spec/app/models/dungeon.rb
1377
+ - spec/app/models/ghost.rb
1378
+ - spec/app/models/other_owner_object.rb
1379
+ - spec/app/models/doctor.rb
1380
+ - spec/app/models/sub_item.rb
1381
+ - spec/app/models/scheduler.rb
1382
+ - spec/app/models/child_doc.rb
1326
1383
  - spec/app/models/array_field.rb
1327
- - spec/app/models/product.rb
1328
- - spec/app/models/contractor.rb
1329
- - spec/app/models/purchase.rb
1384
+ - spec/app/models/email.rb
1385
+ - spec/app/models/tool.rb
1386
+ - spec/app/models/house.rb
1387
+ - spec/app/models/id_key.rb
1388
+ - spec/app/models/store_as_dup_test4.rb
1389
+ - spec/app/models/shipping_container.rb
1330
1390
  - spec/app/models/actress.rb
1331
- - spec/app/models/address.rb
1391
+ - spec/app/models/target.rb
1392
+ - spec/app/models/mixed_drink.rb
1393
+ - spec/app/models/company.rb
1394
+ - spec/app/models/override.rb
1332
1395
  - spec/app/models/pizza.rb
1333
- - spec/app/models/bomb.rb
1334
- - spec/app/models/house.rb
1335
- - spec/app/models/version.rb
1336
- - spec/app/models/definition.rb
1337
- - spec/app/models/sandwich.rb
1338
- - spec/app/models/user_account.rb
1339
- - spec/app/models/breed.rb
1340
- - spec/app/models/pdf_writer.rb
1341
- - spec/app/models/car.rb
1342
- - spec/app/models/implant.rb
1343
- - spec/app/models/pet_owner.rb
1344
- - spec/app/models/animal.rb
1396
+ - spec/app/models/movie.rb
1345
1397
  - spec/app/models/birthday.rb
1346
- - spec/app/models/vertex.rb
1347
- - spec/app/models/agency.rb
1348
- - spec/app/models/scheduler.rb
1349
- - spec/app/models/face.rb
1350
- - spec/app/models/vet_visit.rb
1398
+ - spec/app/models/minim.rb
1351
1399
  - spec/app/models/dictionary.rb
1352
- - spec/app/models/seo.rb
1353
- - spec/app/models/word_origin.rb
1354
- - spec/app/models/book.rb
1400
+ - spec/app/models/quiz.rb
1401
+ - spec/app/models/contextable_item.rb
1355
1402
  - spec/app/models/favorite.rb
1356
- - spec/app/models/name.rb
1357
- - spec/app/models/fish.rb
1358
- - spec/app/models/shipping_container.rb
1359
- - spec/app/models/vehicle.rb
1360
- - spec/app/models/override.rb
1361
- - spec/app/models/store_as_dup_test3.rb
1362
- - spec/app/models/powerup.rb
1363
- - spec/app/models/cookie.rb
1364
- - spec/app/models/bus.rb
1365
- - spec/app/models/agent.rb
1366
- - spec/app/models/note.rb
1367
- - spec/app/models/eye.rb
1368
- - spec/app/models/passport.rb
1369
- - spec/app/models/video.rb
1370
- - spec/app/models/account.rb
1371
- - spec/app/models/pencil.rb
1372
- - spec/app/models/short_agent.rb
1373
- - spec/app/models/employer.rb
1374
- - spec/app/models/person.rb
1375
- - spec/app/models/jar.rb
1376
- - spec/app/models/login.rb
1377
- - spec/app/models/audio.rb
1378
- - spec/app/models/kaleidoscope.rb
1379
- - spec/app/models/pack.rb
1380
- - spec/app/models/page_question.rb
1381
- - spec/app/models/patient.rb
1382
- - spec/app/models/post_genre.rb
1383
- - spec/app/models/message.rb
1384
- - spec/app/models/address_number.rb
1385
- - spec/app/models/album.rb
1386
- - spec/app/models/survey.rb
1387
- - spec/app/models/item.rb
1388
- - spec/app/models/eraser.rb
1389
- - spec/app/models/home.rb
1390
- - spec/app/models/address_component.rb
1391
- - spec/app/models/wiki_page.rb
1392
- - spec/app/models/square.rb
1393
- - spec/app/models/article.rb
1394
- - spec/app/models/comment.rb
1395
- - spec/app/models/even.rb
1396
- - spec/app/models/phone.rb
1397
- - spec/app/models/country_code.rb
1398
- - spec/app/models/league.rb
1403
+ - spec/app/models/event.rb
1404
+ - spec/app/models/palette.rb
1399
1405
  - spec/rails/controller_extension/controller_runtime_spec.rb
1400
1406
  - spec/rails/mongoid_spec.rb
1407
+ - spec/integration/associations/belongs_to_spec.rb