dolly 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -85882,3 +85882,1389 @@ DocumentTest: test_will_have_only_set_properties
85882
85882
  ----------------------------------------------------------------
85883
85883
  DocumentTest: test_with_default_will_return_default_value_on_nil
85884
85884
  ----------------------------------------------------------------
85885
+ --------------------------------------------------
85886
+ BulkDocumentTest: test_adding_document_to_bulk_doc
85887
+ --------------------------------------------------
85888
+ -----------------------------------------------------------------
85889
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
85890
+ -----------------------------------------------------------------
85891
+ ------------------------------------------------------------------
85892
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
85893
+ ------------------------------------------------------------------
85894
+ ----------------------------------------------------------------------
85895
+ CollectionTest: test_count_returns_the_number_of_objects_in_collection
85896
+ ----------------------------------------------------------------------
85897
+ -------------------------------------
85898
+ CollectionTest: test_each_returns_nil
85899
+ -------------------------------------
85900
+ -----------------------------------------------------------------------
85901
+ CollectionTest: test_map_accepts_a_block_and_returns_the_correct_values
85902
+ -----------------------------------------------------------------------
85903
+ ----------------------------------------------
85904
+ CollectionTest: test_map_returns_an_enumerator
85905
+ ----------------------------------------------
85906
+ ------------------------------------------
85907
+ CollectionTest: test_to_a_returns_an_array
85908
+ ------------------------------------------
85909
+ -----------------------------------------------------
85910
+ CollectionTest: test_to_json_returns_a_string_of_json
85911
+ -----------------------------------------------------
85912
+ --------------------------------------------------------------
85913
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
85914
+ --------------------------------------------------------------
85915
+ -------------------------------------------
85916
+ DocumentTest: test_all_first_returns_FooBar
85917
+ -------------------------------------------
85918
+ ------------------------------------------
85919
+ DocumentTest: test_all_last_returns_FooBar
85920
+ ------------------------------------------
85921
+ --------------------------------------
85922
+ DocumentTest: test_all_will_get_2_docs
85923
+ --------------------------------------
85924
+ ------------------------------------------------
85925
+ DocumentTest: test_all_will_get_FooBar_documents
85926
+ ------------------------------------------------
85927
+ --------------------------------------------------------------------------------
85928
+ DocumentTest: test_attach_file!_will_add_a_standalone_attachment_to_the_document
85929
+ --------------------------------------------------------------------------------
85930
+ --------------------------------------------------------------------------
85931
+ DocumentTest: test_attach_file!_will_add_an_inline_attachment_if_specified
85932
+ --------------------------------------------------------------------------
85933
+ ------------------------------------------
85934
+ DocumentTest: test_can_find_with_fixnum_id
85935
+ ------------------------------------------
85936
+ ----------------------------------------------
85937
+ DocumentTest: test_can_save_without_timestamps
85938
+ ----------------------------------------------
85939
+ ---------------------------------------------
85940
+ DocumentTest: test_created_at_is_current_time
85941
+ ---------------------------------------------
85942
+ ------------------------------------
85943
+ DocumentTest: test_created_at_is_set
85944
+ ------------------------------------
85945
+ -------------------------------------------------------------
85946
+ DocumentTest: test_default_objects_are_not_the_same_in_memory
85947
+ -------------------------------------------------------------
85948
+ --------------------------------------------------------------------------------
85949
+ DocumentTest: test_default_properties_do_not_update_the_class_default_properties
85950
+ --------------------------------------------------------------------------------
85951
+ ---------------------------------------------------------
85952
+ DocumentTest: test_default_should_be_overridden_by_params
85953
+ ---------------------------------------------------------
85954
+ ------------------------------------------------------
85955
+ DocumentTest: test_default_should_populate_before_save
85956
+ ------------------------------------------------------
85957
+ ----------------------------------------------
85958
+ DocumentTest: test_default_will_be_avoerwriten
85959
+ ----------------------------------------------
85960
+ --------------------------------------------
85961
+ DocumentTest: test_delete_method_on_document
85962
+ --------------------------------------------
85963
+ ---------------------------------------------------------------
85964
+ DocumentTest: test_doc_and_method_and_instance_var_are_the_same
85965
+ ---------------------------------------------------------------
85966
+ ------------------------------------------------
85967
+ DocumentTest: test_empty_find_should_raise_error
85968
+ ------------------------------------------------
85969
+ ------------------------------------------------------------
85970
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
85971
+ ------------------------------------------------------------
85972
+ --------------------------------------------------
85973
+ DocumentTest: test_find_will_get_a_FooBar_document
85974
+ --------------------------------------------------
85975
+ ----------------------------------------------------------------
85976
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
85977
+ ----------------------------------------------------------------
85978
+ --------------------------------------------------------
85979
+ DocumentTest: test_first_class_method_returns_collection
85980
+ --------------------------------------------------------
85981
+ ---------------------------------------------------------
85982
+ DocumentTest: test_first_class_method_returns_single_item
85983
+ ---------------------------------------------------------
85984
+ ---------------------------------------------
85985
+ DocumentTest: test_getting_not_found_document
85986
+ ---------------------------------------------
85987
+ -------------------------------------------------------
85988
+ DocumentTest: test_last_class_method_returns_collection
85989
+ -------------------------------------------------------
85990
+ --------------------------------------------------------
85991
+ DocumentTest: test_last_class_method_returns_single_item
85992
+ --------------------------------------------------------
85993
+ -------------------------------------------------
85994
+ DocumentTest: test_multi_response_with_right_data
85995
+ -------------------------------------------------
85996
+ ---------------------------------------
85997
+ DocumentTest: test_new_document_have_id
85998
+ ---------------------------------------
85999
+ -------------------------------------------------------------------
86000
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_strings
86001
+ -------------------------------------------------------------------
86002
+ -------------------------------------------------------------------
86003
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
86004
+ -------------------------------------------------------------------
86005
+ ------------------------------------------
86006
+ DocumentTest: test_new_document_with_no_id
86007
+ ------------------------------------------
86008
+ -----------------------------------------
86009
+ DocumentTest: test_new_in_memory_document
86010
+ -----------------------------------------
86011
+ -----------------------------------------------------
86012
+ DocumentTest: test_new_object_from_inhereted_document
86013
+ -----------------------------------------------------
86014
+ ------------------------------
86015
+ DocumentTest: test_nil_default
86016
+ ------------------------------
86017
+ ------------------------------------------------------------------
86018
+ DocumentTest: test_persisted?_returns_false_if__rev_is_not_present
86019
+ ------------------------------------------------------------------
86020
+ -------------------------------------------------------------
86021
+ DocumentTest: test_persisted?_returns_true_if__rev_is_present
86022
+ -------------------------------------------------------------
86023
+ ------------------------------------------------------------------
86024
+ DocumentTest: test_property_writes_work_correctly_with_pipe_equals
86025
+ ------------------------------------------------------------------
86026
+ ------------------------------------
86027
+ DocumentTest: test_query_custom_view
86028
+ ------------------------------------
86029
+ ----------------------------------------------
86030
+ DocumentTest: test_query_custom_view_collation
86031
+ ----------------------------------------------
86032
+ --------------------------------------------------------------
86033
+ DocumentTest: test_reader_:bar_is_not_calling_the_writer_:bar=
86034
+ --------------------------------------------------------------
86035
+ ------------------------------------------------------------------
86036
+ DocumentTest: test_save_returns_false_for_invalid_document_on_save
86037
+ ------------------------------------------------------------------
86038
+ -----------------------------------------------------------------------------
86039
+ DocumentTest: test_save_succeeds_for_invalid_document_if_skipping_validations
86040
+ -----------------------------------------------------------------------------
86041
+ ---------------------------------
86042
+ DocumentTest: test_set_updated_at
86043
+ ---------------------------------
86044
+ ----------------------------------------------------------------------------
86045
+ DocumentTest: test_setting_on_instance_value_does_set_it_for_other_instances
86046
+ ----------------------------------------------------------------------------
86047
+ ------------------------------------------
86048
+ DocumentTest: test_soft_delete_on_document
86049
+ ------------------------------------------
86050
+ -----------------------------------------------------------------------
86051
+ DocumentTest: test_subclass_raises_DocumentInvalidError_if_valid?_fails
86052
+ -----------------------------------------------------------------------
86053
+ ----------------------------------------------------
86054
+ DocumentTest: test_trying_to_update_invalid_property
86055
+ ----------------------------------------------------
86056
+ ---------------------------------------------
86057
+ DocumentTest: test_update_document_properties
86058
+ ---------------------------------------------
86059
+ ------------------------------------------------------
86060
+ DocumentTest: test_update_document_propertys_with_bang
86061
+ ------------------------------------------------------
86062
+ -------------------------------------------
86063
+ DocumentTest: test_will_have_key_properties
86064
+ -------------------------------------------
86065
+ --------------------------------------------------------
86066
+ DocumentTest: test_will_have_object_with_DateTime_method
86067
+ --------------------------------------------------------
86068
+ ----------------------------------------------------
86069
+ DocumentTest: test_will_have_object_with_Date_method
86070
+ ----------------------------------------------------
86071
+ ----------------------------------------------------
86072
+ DocumentTest: test_will_have_object_with_Time_method
86073
+ ----------------------------------------------------
86074
+ --------------------------------------------------------
86075
+ DocumentTest: test_will_have_object_with_boolean?_method
86076
+ --------------------------------------------------------
86077
+ ------------------------------------------------
86078
+ DocumentTest: test_will_have_only_set_properties
86079
+ ------------------------------------------------
86080
+ ----------------------------------------------------------------
86081
+ DocumentTest: test_with_default_will_return_default_value_on_nil
86082
+ ----------------------------------------------------------------
86083
+ --------------------------------------------------
86084
+ BulkDocumentTest: test_adding_document_to_bulk_doc
86085
+ --------------------------------------------------
86086
+ -----------------------------------------------------------------
86087
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
86088
+ -----------------------------------------------------------------
86089
+ ------------------------------------------------------------------
86090
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
86091
+ ------------------------------------------------------------------
86092
+ ----------------------------------------------------------------------
86093
+ CollectionTest: test_count_returns_the_number_of_objects_in_collection
86094
+ ----------------------------------------------------------------------
86095
+ -------------------------------------
86096
+ CollectionTest: test_each_returns_nil
86097
+ -------------------------------------
86098
+ -----------------------------------------------------------------------
86099
+ CollectionTest: test_map_accepts_a_block_and_returns_the_correct_values
86100
+ -----------------------------------------------------------------------
86101
+ ----------------------------------------------
86102
+ CollectionTest: test_map_returns_an_enumerator
86103
+ ----------------------------------------------
86104
+ ------------------------------------------
86105
+ CollectionTest: test_to_a_returns_an_array
86106
+ ------------------------------------------
86107
+ -----------------------------------------------------
86108
+ CollectionTest: test_to_json_returns_a_string_of_json
86109
+ -----------------------------------------------------
86110
+ --------------------------------------------------------------
86111
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
86112
+ --------------------------------------------------------------
86113
+ -------------------------------------------
86114
+ DocumentTest: test_all_first_returns_FooBar
86115
+ -------------------------------------------
86116
+ ------------------------------------------
86117
+ DocumentTest: test_all_last_returns_FooBar
86118
+ ------------------------------------------
86119
+ --------------------------------------
86120
+ DocumentTest: test_all_will_get_2_docs
86121
+ --------------------------------------
86122
+ ------------------------------------------------
86123
+ DocumentTest: test_all_will_get_FooBar_documents
86124
+ ------------------------------------------------
86125
+ --------------------------------------------------------------------------------
86126
+ DocumentTest: test_attach_file!_will_add_a_standalone_attachment_to_the_document
86127
+ --------------------------------------------------------------------------------
86128
+ --------------------------------------------------------------------------
86129
+ DocumentTest: test_attach_file!_will_add_an_inline_attachment_if_specified
86130
+ --------------------------------------------------------------------------
86131
+ ------------------------------------------
86132
+ DocumentTest: test_can_find_with_fixnum_id
86133
+ ------------------------------------------
86134
+ ----------------------------------------------
86135
+ DocumentTest: test_can_save_without_timestamps
86136
+ ----------------------------------------------
86137
+ ---------------------------------------------
86138
+ DocumentTest: test_created_at_is_current_time
86139
+ ---------------------------------------------
86140
+ ------------------------------------
86141
+ DocumentTest: test_created_at_is_set
86142
+ ------------------------------------
86143
+ -------------------------------------------------------------
86144
+ DocumentTest: test_default_objects_are_not_the_same_in_memory
86145
+ -------------------------------------------------------------
86146
+ --------------------------------------------------------------------------------
86147
+ DocumentTest: test_default_properties_do_not_update_the_class_default_properties
86148
+ --------------------------------------------------------------------------------
86149
+ ---------------------------------------------------------
86150
+ DocumentTest: test_default_should_be_overridden_by_params
86151
+ ---------------------------------------------------------
86152
+ ------------------------------------------------------
86153
+ DocumentTest: test_default_should_populate_before_save
86154
+ ------------------------------------------------------
86155
+ ----------------------------------------------
86156
+ DocumentTest: test_default_will_be_avoerwriten
86157
+ ----------------------------------------------
86158
+ --------------------------------------------
86159
+ DocumentTest: test_delete_method_on_document
86160
+ --------------------------------------------
86161
+ ---------------------------------------------------------------
86162
+ DocumentTest: test_doc_and_method_and_instance_var_are_the_same
86163
+ ---------------------------------------------------------------
86164
+ ------------------------------------------------
86165
+ DocumentTest: test_empty_find_should_raise_error
86166
+ ------------------------------------------------
86167
+ ------------------------------------------------------------
86168
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
86169
+ ------------------------------------------------------------
86170
+ --------------------------------------------------
86171
+ DocumentTest: test_find_will_get_a_FooBar_document
86172
+ --------------------------------------------------
86173
+ ----------------------------------------------------------------
86174
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
86175
+ ----------------------------------------------------------------
86176
+ --------------------------------------------------------
86177
+ DocumentTest: test_first_class_method_returns_collection
86178
+ --------------------------------------------------------
86179
+ ---------------------------------------------------------
86180
+ DocumentTest: test_first_class_method_returns_single_item
86181
+ ---------------------------------------------------------
86182
+ ---------------------------------------------
86183
+ DocumentTest: test_getting_not_found_document
86184
+ ---------------------------------------------
86185
+ -------------------------------------------------------
86186
+ DocumentTest: test_last_class_method_returns_collection
86187
+ -------------------------------------------------------
86188
+ --------------------------------------------------------
86189
+ DocumentTest: test_last_class_method_returns_single_item
86190
+ --------------------------------------------------------
86191
+ -------------------------------------------------
86192
+ DocumentTest: test_multi_response_with_right_data
86193
+ -------------------------------------------------
86194
+ ---------------------------------------
86195
+ DocumentTest: test_new_document_have_id
86196
+ ---------------------------------------
86197
+ -------------------------------------------------------------------
86198
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_strings
86199
+ -------------------------------------------------------------------
86200
+ -------------------------------------------------------------------
86201
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
86202
+ -------------------------------------------------------------------
86203
+ ------------------------------------------
86204
+ DocumentTest: test_new_document_with_no_id
86205
+ ------------------------------------------
86206
+ -----------------------------------------
86207
+ DocumentTest: test_new_in_memory_document
86208
+ -----------------------------------------
86209
+ -----------------------------------------------------
86210
+ DocumentTest: test_new_object_from_inhereted_document
86211
+ -----------------------------------------------------
86212
+ ------------------------------
86213
+ DocumentTest: test_nil_default
86214
+ ------------------------------
86215
+ ------------------------------------------------------------------
86216
+ DocumentTest: test_persisted?_returns_false_if__rev_is_not_present
86217
+ ------------------------------------------------------------------
86218
+ -------------------------------------------------------------
86219
+ DocumentTest: test_persisted?_returns_true_if__rev_is_present
86220
+ -------------------------------------------------------------
86221
+ ------------------------------------------------------------------
86222
+ DocumentTest: test_property_writes_work_correctly_with_pipe_equals
86223
+ ------------------------------------------------------------------
86224
+ ------------------------------------
86225
+ DocumentTest: test_query_custom_view
86226
+ ------------------------------------
86227
+ ----------------------------------------------
86228
+ DocumentTest: test_query_custom_view_collation
86229
+ ----------------------------------------------
86230
+ --------------------------------------------------------------
86231
+ DocumentTest: test_reader_:bar_is_not_calling_the_writer_:bar=
86232
+ --------------------------------------------------------------
86233
+ ------------------------------------------------------------------
86234
+ DocumentTest: test_save_returns_false_for_invalid_document_on_save
86235
+ ------------------------------------------------------------------
86236
+ -----------------------------------------------------------------------------
86237
+ DocumentTest: test_save_succeeds_for_invalid_document_if_skipping_validations
86238
+ -----------------------------------------------------------------------------
86239
+ ---------------------------------
86240
+ DocumentTest: test_set_updated_at
86241
+ ---------------------------------
86242
+ ----------------------------------------------------------------------------
86243
+ DocumentTest: test_setting_on_instance_value_does_set_it_for_other_instances
86244
+ ----------------------------------------------------------------------------
86245
+ ------------------------------------------
86246
+ DocumentTest: test_soft_delete_on_document
86247
+ ------------------------------------------
86248
+ -----------------------------------------------------------------------
86249
+ DocumentTest: test_subclass_raises_DocumentInvalidError_if_valid?_fails
86250
+ -----------------------------------------------------------------------
86251
+ ----------------------------------------------------
86252
+ DocumentTest: test_trying_to_update_invalid_property
86253
+ ----------------------------------------------------
86254
+ ---------------------------------------------
86255
+ DocumentTest: test_update_document_properties
86256
+ ---------------------------------------------
86257
+ ------------------------------------------------------
86258
+ DocumentTest: test_update_document_propertys_with_bang
86259
+ ------------------------------------------------------
86260
+ -------------------------------------------
86261
+ DocumentTest: test_will_have_key_properties
86262
+ -------------------------------------------
86263
+ --------------------------------------------------------
86264
+ DocumentTest: test_will_have_object_with_DateTime_method
86265
+ --------------------------------------------------------
86266
+ ----------------------------------------------------
86267
+ DocumentTest: test_will_have_object_with_Date_method
86268
+ ----------------------------------------------------
86269
+ ----------------------------------------------------
86270
+ DocumentTest: test_will_have_object_with_Time_method
86271
+ ----------------------------------------------------
86272
+ --------------------------------------------------------
86273
+ DocumentTest: test_will_have_object_with_boolean?_method
86274
+ --------------------------------------------------------
86275
+ ------------------------------------------------
86276
+ DocumentTest: test_will_have_only_set_properties
86277
+ ------------------------------------------------
86278
+ ----------------------------------------------------------------
86279
+ DocumentTest: test_with_default_will_return_default_value_on_nil
86280
+ ----------------------------------------------------------------
86281
+ --------------------------------------------------
86282
+ BulkDocumentTest: test_adding_document_to_bulk_doc
86283
+ --------------------------------------------------
86284
+ -----------------------------------------------------------------
86285
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
86286
+ -----------------------------------------------------------------
86287
+ ------------------------------------------------------------------
86288
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
86289
+ ------------------------------------------------------------------
86290
+ ----------------------------------------------------------------------
86291
+ CollectionTest: test_count_returns_the_number_of_objects_in_collection
86292
+ ----------------------------------------------------------------------
86293
+ -------------------------------------
86294
+ CollectionTest: test_each_returns_nil
86295
+ -------------------------------------
86296
+ -----------------------------------------------------------------------
86297
+ CollectionTest: test_map_accepts_a_block_and_returns_the_correct_values
86298
+ -----------------------------------------------------------------------
86299
+ ----------------------------------------------
86300
+ CollectionTest: test_map_returns_an_enumerator
86301
+ ----------------------------------------------
86302
+ ------------------------------------------
86303
+ CollectionTest: test_to_a_returns_an_array
86304
+ ------------------------------------------
86305
+ -----------------------------------------------------
86306
+ CollectionTest: test_to_json_returns_a_string_of_json
86307
+ -----------------------------------------------------
86308
+ --------------------------------------------------------------
86309
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
86310
+ --------------------------------------------------------------
86311
+ -------------------------------------------
86312
+ DocumentTest: test_all_first_returns_FooBar
86313
+ -------------------------------------------
86314
+ ------------------------------------------
86315
+ DocumentTest: test_all_last_returns_FooBar
86316
+ ------------------------------------------
86317
+ --------------------------------------
86318
+ DocumentTest: test_all_will_get_2_docs
86319
+ --------------------------------------
86320
+ ------------------------------------------------
86321
+ DocumentTest: test_all_will_get_FooBar_documents
86322
+ ------------------------------------------------
86323
+ --------------------------------------------------------------------------------
86324
+ DocumentTest: test_attach_file!_will_add_a_standalone_attachment_to_the_document
86325
+ --------------------------------------------------------------------------------
86326
+ --------------------------------------------------------------------------
86327
+ DocumentTest: test_attach_file!_will_add_an_inline_attachment_if_specified
86328
+ --------------------------------------------------------------------------
86329
+ ------------------------------------------
86330
+ DocumentTest: test_can_find_with_fixnum_id
86331
+ ------------------------------------------
86332
+ ----------------------------------------------
86333
+ DocumentTest: test_can_save_without_timestamps
86334
+ ----------------------------------------------
86335
+ ---------------------------------------------
86336
+ DocumentTest: test_created_at_is_current_time
86337
+ ---------------------------------------------
86338
+ ------------------------------------
86339
+ DocumentTest: test_created_at_is_set
86340
+ ------------------------------------
86341
+ -------------------------------------------------------------
86342
+ DocumentTest: test_default_objects_are_not_the_same_in_memory
86343
+ -------------------------------------------------------------
86344
+ --------------------------------------------------------------------------------
86345
+ DocumentTest: test_default_properties_do_not_update_the_class_default_properties
86346
+ --------------------------------------------------------------------------------
86347
+ ---------------------------------------------------------
86348
+ DocumentTest: test_default_should_be_overridden_by_params
86349
+ ---------------------------------------------------------
86350
+ ------------------------------------------------------
86351
+ DocumentTest: test_default_should_populate_before_save
86352
+ ------------------------------------------------------
86353
+ ----------------------------------------------
86354
+ DocumentTest: test_default_will_be_avoerwriten
86355
+ ----------------------------------------------
86356
+ --------------------------------------------
86357
+ DocumentTest: test_delete_method_on_document
86358
+ --------------------------------------------
86359
+ ---------------------------------------------------------------
86360
+ DocumentTest: test_doc_and_method_and_instance_var_are_the_same
86361
+ ---------------------------------------------------------------
86362
+ ------------------------------------------------
86363
+ DocumentTest: test_empty_find_should_raise_error
86364
+ ------------------------------------------------
86365
+ ------------------------------------------------------------
86366
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
86367
+ ------------------------------------------------------------
86368
+ --------------------------------------------------
86369
+ DocumentTest: test_find_will_get_a_FooBar_document
86370
+ --------------------------------------------------
86371
+ ----------------------------------------------------------------
86372
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
86373
+ ----------------------------------------------------------------
86374
+ --------------------------------------------------------
86375
+ DocumentTest: test_first_class_method_returns_collection
86376
+ --------------------------------------------------------
86377
+ ---------------------------------------------------------
86378
+ DocumentTest: test_first_class_method_returns_single_item
86379
+ ---------------------------------------------------------
86380
+ ---------------------------------------------
86381
+ DocumentTest: test_getting_not_found_document
86382
+ ---------------------------------------------
86383
+ -------------------------------------------------------
86384
+ DocumentTest: test_last_class_method_returns_collection
86385
+ -------------------------------------------------------
86386
+ --------------------------------------------------------
86387
+ DocumentTest: test_last_class_method_returns_single_item
86388
+ --------------------------------------------------------
86389
+ -------------------------------------------------
86390
+ DocumentTest: test_multi_response_with_right_data
86391
+ -------------------------------------------------
86392
+ ---------------------------------------
86393
+ DocumentTest: test_new_document_have_id
86394
+ ---------------------------------------
86395
+ -------------------------------------------------------------------
86396
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_strings
86397
+ -------------------------------------------------------------------
86398
+ -------------------------------------------------------------------
86399
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
86400
+ -------------------------------------------------------------------
86401
+ ------------------------------------------
86402
+ DocumentTest: test_new_document_with_no_id
86403
+ ------------------------------------------
86404
+ -----------------------------------------
86405
+ DocumentTest: test_new_in_memory_document
86406
+ -----------------------------------------
86407
+ -----------------------------------------------------
86408
+ DocumentTest: test_new_object_from_inhereted_document
86409
+ -----------------------------------------------------
86410
+ ------------------------------
86411
+ DocumentTest: test_nil_default
86412
+ ------------------------------
86413
+ ------------------------------------------------------------------
86414
+ DocumentTest: test_persisted?_returns_false_if__rev_is_not_present
86415
+ ------------------------------------------------------------------
86416
+ -------------------------------------------------------------
86417
+ DocumentTest: test_persisted?_returns_true_if__rev_is_present
86418
+ -------------------------------------------------------------
86419
+ ------------------------------------------------------------------
86420
+ DocumentTest: test_property_writes_work_correctly_with_pipe_equals
86421
+ ------------------------------------------------------------------
86422
+ ------------------------------------
86423
+ DocumentTest: test_query_custom_view
86424
+ ------------------------------------
86425
+ ----------------------------------------------
86426
+ DocumentTest: test_query_custom_view_collation
86427
+ ----------------------------------------------
86428
+ --------------------------------------------------------------
86429
+ DocumentTest: test_reader_:bar_is_not_calling_the_writer_:bar=
86430
+ --------------------------------------------------------------
86431
+ ------------------------------------------------------------------
86432
+ DocumentTest: test_save_returns_false_for_invalid_document_on_save
86433
+ ------------------------------------------------------------------
86434
+ -----------------------------------------------------------------------------
86435
+ DocumentTest: test_save_succeeds_for_invalid_document_if_skipping_validations
86436
+ -----------------------------------------------------------------------------
86437
+ ---------------------------------
86438
+ DocumentTest: test_set_updated_at
86439
+ ---------------------------------
86440
+ ----------------------------------------------------------------------------
86441
+ DocumentTest: test_setting_on_instance_value_does_set_it_for_other_instances
86442
+ ----------------------------------------------------------------------------
86443
+ ------------------------------------------
86444
+ DocumentTest: test_soft_delete_on_document
86445
+ ------------------------------------------
86446
+ -----------------------------------------------------------------------
86447
+ DocumentTest: test_subclass_raises_DocumentInvalidError_if_valid?_fails
86448
+ -----------------------------------------------------------------------
86449
+ ----------------------------------------------------
86450
+ DocumentTest: test_trying_to_update_invalid_property
86451
+ ----------------------------------------------------
86452
+ ---------------------------------------------
86453
+ DocumentTest: test_update_document_properties
86454
+ ---------------------------------------------
86455
+ ------------------------------------------------------
86456
+ DocumentTest: test_update_document_propertys_with_bang
86457
+ ------------------------------------------------------
86458
+ -------------------------------------------
86459
+ DocumentTest: test_will_have_key_properties
86460
+ -------------------------------------------
86461
+ --------------------------------------------------------
86462
+ DocumentTest: test_will_have_object_with_DateTime_method
86463
+ --------------------------------------------------------
86464
+ ----------------------------------------------------
86465
+ DocumentTest: test_will_have_object_with_Date_method
86466
+ ----------------------------------------------------
86467
+ ----------------------------------------------------
86468
+ DocumentTest: test_will_have_object_with_Time_method
86469
+ ----------------------------------------------------
86470
+ --------------------------------------------------------
86471
+ DocumentTest: test_will_have_object_with_boolean?_method
86472
+ --------------------------------------------------------
86473
+ ------------------------------------------------
86474
+ DocumentTest: test_will_have_only_set_properties
86475
+ ------------------------------------------------
86476
+ ----------------------------------------------------------------
86477
+ DocumentTest: test_with_default_will_return_default_value_on_nil
86478
+ ----------------------------------------------------------------
86479
+ --------------------------------------------------
86480
+ BulkDocumentTest: test_adding_document_to_bulk_doc
86481
+ --------------------------------------------------
86482
+ -----------------------------------------------------------------
86483
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
86484
+ -----------------------------------------------------------------
86485
+ ------------------------------------------------------------------
86486
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
86487
+ ------------------------------------------------------------------
86488
+ ----------------------------------------------------------------------
86489
+ CollectionTest: test_count_returns_the_number_of_objects_in_collection
86490
+ ----------------------------------------------------------------------
86491
+ -------------------------------------
86492
+ CollectionTest: test_each_returns_nil
86493
+ -------------------------------------
86494
+ -----------------------------------------------------------------------
86495
+ CollectionTest: test_map_accepts_a_block_and_returns_the_correct_values
86496
+ -----------------------------------------------------------------------
86497
+ ----------------------------------------------
86498
+ CollectionTest: test_map_returns_an_enumerator
86499
+ ----------------------------------------------
86500
+ ------------------------------------------
86501
+ CollectionTest: test_to_a_returns_an_array
86502
+ ------------------------------------------
86503
+ -----------------------------------------------------
86504
+ CollectionTest: test_to_json_returns_a_string_of_json
86505
+ -----------------------------------------------------
86506
+ --------------------------------------------------------------
86507
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
86508
+ --------------------------------------------------------------
86509
+ -------------------------------------------
86510
+ DocumentTest: test_all_first_returns_FooBar
86511
+ -------------------------------------------
86512
+ ------------------------------------------
86513
+ DocumentTest: test_all_last_returns_FooBar
86514
+ ------------------------------------------
86515
+ --------------------------------------
86516
+ DocumentTest: test_all_will_get_2_docs
86517
+ --------------------------------------
86518
+ ------------------------------------------------
86519
+ DocumentTest: test_all_will_get_FooBar_documents
86520
+ ------------------------------------------------
86521
+ --------------------------------------------------------------------------------
86522
+ DocumentTest: test_attach_file!_will_add_a_standalone_attachment_to_the_document
86523
+ --------------------------------------------------------------------------------
86524
+ --------------------------------------------------------------------------
86525
+ DocumentTest: test_attach_file!_will_add_an_inline_attachment_if_specified
86526
+ --------------------------------------------------------------------------
86527
+ ------------------------------------------
86528
+ DocumentTest: test_can_find_with_fixnum_id
86529
+ ------------------------------------------
86530
+ ----------------------------------------------
86531
+ DocumentTest: test_can_save_without_timestamps
86532
+ ----------------------------------------------
86533
+ ---------------------------------------------
86534
+ DocumentTest: test_created_at_is_current_time
86535
+ ---------------------------------------------
86536
+ ------------------------------------
86537
+ DocumentTest: test_created_at_is_set
86538
+ ------------------------------------
86539
+ -------------------------------------------------------------
86540
+ DocumentTest: test_default_objects_are_not_the_same_in_memory
86541
+ -------------------------------------------------------------
86542
+ --------------------------------------------------------------------------------
86543
+ DocumentTest: test_default_properties_do_not_update_the_class_default_properties
86544
+ --------------------------------------------------------------------------------
86545
+ ---------------------------------------------------------
86546
+ DocumentTest: test_default_should_be_overridden_by_params
86547
+ ---------------------------------------------------------
86548
+ ------------------------------------------------------
86549
+ DocumentTest: test_default_should_populate_before_save
86550
+ ------------------------------------------------------
86551
+ ----------------------------------------------
86552
+ DocumentTest: test_default_will_be_avoerwriten
86553
+ ----------------------------------------------
86554
+ --------------------------------------------
86555
+ DocumentTest: test_delete_method_on_document
86556
+ --------------------------------------------
86557
+ ---------------------------------------------------------------
86558
+ DocumentTest: test_doc_and_method_and_instance_var_are_the_same
86559
+ ---------------------------------------------------------------
86560
+ ------------------------------------------------
86561
+ DocumentTest: test_empty_find_should_raise_error
86562
+ ------------------------------------------------
86563
+ ------------------------------------------------------------
86564
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
86565
+ ------------------------------------------------------------
86566
+ --------------------------------------------------
86567
+ DocumentTest: test_find_will_get_a_FooBar_document
86568
+ --------------------------------------------------
86569
+ ----------------------------------------------------------------
86570
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
86571
+ ----------------------------------------------------------------
86572
+ --------------------------------------------------------
86573
+ DocumentTest: test_first_class_method_returns_collection
86574
+ --------------------------------------------------------
86575
+ ---------------------------------------------------------
86576
+ DocumentTest: test_first_class_method_returns_single_item
86577
+ ---------------------------------------------------------
86578
+ ---------------------------------------------
86579
+ DocumentTest: test_getting_not_found_document
86580
+ ---------------------------------------------
86581
+ -------------------------------------------------------
86582
+ DocumentTest: test_last_class_method_returns_collection
86583
+ -------------------------------------------------------
86584
+ --------------------------------------------------------
86585
+ DocumentTest: test_last_class_method_returns_single_item
86586
+ --------------------------------------------------------
86587
+ -------------------------------------------------
86588
+ DocumentTest: test_multi_response_with_right_data
86589
+ -------------------------------------------------
86590
+ ---------------------------------------
86591
+ DocumentTest: test_new_document_have_id
86592
+ ---------------------------------------
86593
+ -------------------------------------------------------------------
86594
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_strings
86595
+ -------------------------------------------------------------------
86596
+ -------------------------------------------------------------------
86597
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
86598
+ -------------------------------------------------------------------
86599
+ ------------------------------------------
86600
+ DocumentTest: test_new_document_with_no_id
86601
+ ------------------------------------------
86602
+ -----------------------------------------
86603
+ DocumentTest: test_new_in_memory_document
86604
+ -----------------------------------------
86605
+ -----------------------------------------------------
86606
+ DocumentTest: test_new_object_from_inhereted_document
86607
+ -----------------------------------------------------
86608
+ ------------------------------
86609
+ DocumentTest: test_nil_default
86610
+ ------------------------------
86611
+ ------------------------------------------------------------------
86612
+ DocumentTest: test_persisted?_returns_false_if__rev_is_not_present
86613
+ ------------------------------------------------------------------
86614
+ -------------------------------------------------------------
86615
+ DocumentTest: test_persisted?_returns_true_if__rev_is_present
86616
+ -------------------------------------------------------------
86617
+ ------------------------------------------------------------------
86618
+ DocumentTest: test_property_writes_work_correctly_with_pipe_equals
86619
+ ------------------------------------------------------------------
86620
+ ------------------------------------
86621
+ DocumentTest: test_query_custom_view
86622
+ ------------------------------------
86623
+ ----------------------------------------------
86624
+ DocumentTest: test_query_custom_view_collation
86625
+ ----------------------------------------------
86626
+ --------------------------------------------------------------
86627
+ DocumentTest: test_reader_:bar_is_not_calling_the_writer_:bar=
86628
+ --------------------------------------------------------------
86629
+ ------------------------------------------------------------------
86630
+ DocumentTest: test_save_returns_false_for_invalid_document_on_save
86631
+ ------------------------------------------------------------------
86632
+ -----------------------------------------------------------------------------
86633
+ DocumentTest: test_save_succeeds_for_invalid_document_if_skipping_validations
86634
+ -----------------------------------------------------------------------------
86635
+ ---------------------------------
86636
+ DocumentTest: test_set_updated_at
86637
+ ---------------------------------
86638
+ ----------------------------------------------------------------------------
86639
+ DocumentTest: test_setting_on_instance_value_does_set_it_for_other_instances
86640
+ ----------------------------------------------------------------------------
86641
+ ------------------------------------------
86642
+ DocumentTest: test_soft_delete_on_document
86643
+ ------------------------------------------
86644
+ -----------------------------------------------------------------------
86645
+ DocumentTest: test_subclass_raises_DocumentInvalidError_if_valid?_fails
86646
+ -----------------------------------------------------------------------
86647
+ ----------------------------------------------------
86648
+ DocumentTest: test_trying_to_update_invalid_property
86649
+ ----------------------------------------------------
86650
+ ---------------------------------------------
86651
+ DocumentTest: test_update_document_properties
86652
+ ---------------------------------------------
86653
+ ------------------------------------------------------
86654
+ DocumentTest: test_update_document_propertys_with_bang
86655
+ ------------------------------------------------------
86656
+ -------------------------------------------
86657
+ DocumentTest: test_will_have_key_properties
86658
+ -------------------------------------------
86659
+ --------------------------------------------------------
86660
+ DocumentTest: test_will_have_object_with_DateTime_method
86661
+ --------------------------------------------------------
86662
+ ----------------------------------------------------
86663
+ DocumentTest: test_will_have_object_with_Date_method
86664
+ ----------------------------------------------------
86665
+ ----------------------------------------------------
86666
+ DocumentTest: test_will_have_object_with_Time_method
86667
+ ----------------------------------------------------
86668
+ --------------------------------------------------------
86669
+ DocumentTest: test_will_have_object_with_boolean?_method
86670
+ --------------------------------------------------------
86671
+ ------------------------------------------------
86672
+ DocumentTest: test_will_have_only_set_properties
86673
+ ------------------------------------------------
86674
+ ----------------------------------------------------------------
86675
+ DocumentTest: test_with_default_will_return_default_value_on_nil
86676
+ ----------------------------------------------------------------
86677
+ --------------------------------------------------
86678
+ BulkDocumentTest: test_adding_document_to_bulk_doc
86679
+ --------------------------------------------------
86680
+ -----------------------------------------------------------------
86681
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
86682
+ -----------------------------------------------------------------
86683
+ ------------------------------------------------------------------
86684
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
86685
+ ------------------------------------------------------------------
86686
+ ----------------------------------------------------------------------
86687
+ CollectionTest: test_count_returns_the_number_of_objects_in_collection
86688
+ ----------------------------------------------------------------------
86689
+ -------------------------------------
86690
+ CollectionTest: test_each_returns_nil
86691
+ -------------------------------------
86692
+ -----------------------------------------------------------------------
86693
+ CollectionTest: test_map_accepts_a_block_and_returns_the_correct_values
86694
+ -----------------------------------------------------------------------
86695
+ ----------------------------------------------
86696
+ CollectionTest: test_map_returns_an_enumerator
86697
+ ----------------------------------------------
86698
+ ------------------------------------------
86699
+ CollectionTest: test_to_a_returns_an_array
86700
+ ------------------------------------------
86701
+ -----------------------------------------------------
86702
+ CollectionTest: test_to_json_returns_a_string_of_json
86703
+ -----------------------------------------------------
86704
+ --------------------------------------------------------------
86705
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
86706
+ --------------------------------------------------------------
86707
+ -------------------------------------------
86708
+ DocumentTest: test_all_first_returns_FooBar
86709
+ -------------------------------------------
86710
+ ------------------------------------------
86711
+ DocumentTest: test_all_last_returns_FooBar
86712
+ ------------------------------------------
86713
+ --------------------------------------
86714
+ DocumentTest: test_all_will_get_2_docs
86715
+ --------------------------------------
86716
+ ------------------------------------------------
86717
+ DocumentTest: test_all_will_get_FooBar_documents
86718
+ ------------------------------------------------
86719
+ --------------------------------------------------------------------------------
86720
+ DocumentTest: test_attach_file!_will_add_a_standalone_attachment_to_the_document
86721
+ --------------------------------------------------------------------------------
86722
+ --------------------------------------------------------------------------
86723
+ DocumentTest: test_attach_file!_will_add_an_inline_attachment_if_specified
86724
+ --------------------------------------------------------------------------
86725
+ ------------------------------------------
86726
+ DocumentTest: test_can_find_with_fixnum_id
86727
+ ------------------------------------------
86728
+ ----------------------------------------------
86729
+ DocumentTest: test_can_save_without_timestamps
86730
+ ----------------------------------------------
86731
+ ---------------------------------------------
86732
+ DocumentTest: test_created_at_is_current_time
86733
+ ---------------------------------------------
86734
+ ------------------------------------
86735
+ DocumentTest: test_created_at_is_set
86736
+ ------------------------------------
86737
+ -------------------------------------------------------------
86738
+ DocumentTest: test_default_objects_are_not_the_same_in_memory
86739
+ -------------------------------------------------------------
86740
+ --------------------------------------------------------------------------------
86741
+ DocumentTest: test_default_properties_do_not_update_the_class_default_properties
86742
+ --------------------------------------------------------------------------------
86743
+ ---------------------------------------------------------
86744
+ DocumentTest: test_default_should_be_overridden_by_params
86745
+ ---------------------------------------------------------
86746
+ ------------------------------------------------------
86747
+ DocumentTest: test_default_should_populate_before_save
86748
+ ------------------------------------------------------
86749
+ ----------------------------------------------
86750
+ DocumentTest: test_default_will_be_avoerwriten
86751
+ ----------------------------------------------
86752
+ --------------------------------------------
86753
+ DocumentTest: test_delete_method_on_document
86754
+ --------------------------------------------
86755
+ ---------------------------------------------------------------
86756
+ DocumentTest: test_doc_and_method_and_instance_var_are_the_same
86757
+ ---------------------------------------------------------------
86758
+ ------------------------------------------------
86759
+ DocumentTest: test_empty_find_should_raise_error
86760
+ ------------------------------------------------
86761
+ ------------------------------------------------------------
86762
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
86763
+ ------------------------------------------------------------
86764
+ --------------------------------------------------
86765
+ DocumentTest: test_find_will_get_a_FooBar_document
86766
+ --------------------------------------------------
86767
+ ----------------------------------------------------------------
86768
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
86769
+ ----------------------------------------------------------------
86770
+ --------------------------------------------------------
86771
+ DocumentTest: test_first_class_method_returns_collection
86772
+ --------------------------------------------------------
86773
+ ---------------------------------------------------------
86774
+ DocumentTest: test_first_class_method_returns_single_item
86775
+ ---------------------------------------------------------
86776
+ ---------------------------------------------
86777
+ DocumentTest: test_getting_not_found_document
86778
+ ---------------------------------------------
86779
+ -------------------------------------------------------
86780
+ DocumentTest: test_last_class_method_returns_collection
86781
+ -------------------------------------------------------
86782
+ --------------------------------------------------------
86783
+ DocumentTest: test_last_class_method_returns_single_item
86784
+ --------------------------------------------------------
86785
+ -------------------------------------------------
86786
+ DocumentTest: test_multi_response_with_right_data
86787
+ -------------------------------------------------
86788
+ ---------------------------------------
86789
+ DocumentTest: test_new_document_have_id
86790
+ ---------------------------------------
86791
+ -------------------------------------------------------------------
86792
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_strings
86793
+ -------------------------------------------------------------------
86794
+ -------------------------------------------------------------------
86795
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
86796
+ -------------------------------------------------------------------
86797
+ ------------------------------------------
86798
+ DocumentTest: test_new_document_with_no_id
86799
+ ------------------------------------------
86800
+ -----------------------------------------
86801
+ DocumentTest: test_new_in_memory_document
86802
+ -----------------------------------------
86803
+ -----------------------------------------------------
86804
+ DocumentTest: test_new_object_from_inhereted_document
86805
+ -----------------------------------------------------
86806
+ ------------------------------
86807
+ DocumentTest: test_nil_default
86808
+ ------------------------------
86809
+ ------------------------------------------------------------------
86810
+ DocumentTest: test_persisted?_returns_false_if__rev_is_not_present
86811
+ ------------------------------------------------------------------
86812
+ -------------------------------------------------------------
86813
+ DocumentTest: test_persisted?_returns_true_if__rev_is_present
86814
+ -------------------------------------------------------------
86815
+ ------------------------------------------------------------------
86816
+ DocumentTest: test_property_writes_work_correctly_with_pipe_equals
86817
+ ------------------------------------------------------------------
86818
+ ------------------------------------
86819
+ DocumentTest: test_query_custom_view
86820
+ ------------------------------------
86821
+ ----------------------------------------------
86822
+ DocumentTest: test_query_custom_view_collation
86823
+ ----------------------------------------------
86824
+ --------------------------------------------------------------
86825
+ DocumentTest: test_reader_:bar_is_not_calling_the_writer_:bar=
86826
+ --------------------------------------------------------------
86827
+ ------------------------------------------------------------------
86828
+ DocumentTest: test_save_returns_false_for_invalid_document_on_save
86829
+ ------------------------------------------------------------------
86830
+ -----------------------------------------------------------------------------
86831
+ DocumentTest: test_save_succeeds_for_invalid_document_if_skipping_validations
86832
+ -----------------------------------------------------------------------------
86833
+ ---------------------------------
86834
+ DocumentTest: test_set_updated_at
86835
+ ---------------------------------
86836
+ ----------------------------------------------------------------------------
86837
+ DocumentTest: test_setting_on_instance_value_does_set_it_for_other_instances
86838
+ ----------------------------------------------------------------------------
86839
+ ------------------------------------------
86840
+ DocumentTest: test_soft_delete_on_document
86841
+ ------------------------------------------
86842
+ -----------------------------------------------------------------------
86843
+ DocumentTest: test_subclass_raises_DocumentInvalidError_if_valid?_fails
86844
+ -----------------------------------------------------------------------
86845
+ ----------------------------------------------------
86846
+ DocumentTest: test_trying_to_update_invalid_property
86847
+ ----------------------------------------------------
86848
+ ---------------------------------------------
86849
+ DocumentTest: test_update_document_properties
86850
+ ---------------------------------------------
86851
+ ------------------------------------------------------
86852
+ DocumentTest: test_update_document_propertys_with_bang
86853
+ ------------------------------------------------------
86854
+ -------------------------------------------
86855
+ DocumentTest: test_will_have_key_properties
86856
+ -------------------------------------------
86857
+ --------------------------------------------------------
86858
+ DocumentTest: test_will_have_object_with_DateTime_method
86859
+ --------------------------------------------------------
86860
+ ----------------------------------------------------
86861
+ DocumentTest: test_will_have_object_with_Date_method
86862
+ ----------------------------------------------------
86863
+ ----------------------------------------------------
86864
+ DocumentTest: test_will_have_object_with_Time_method
86865
+ ----------------------------------------------------
86866
+ --------------------------------------------------------
86867
+ DocumentTest: test_will_have_object_with_boolean?_method
86868
+ --------------------------------------------------------
86869
+ ------------------------------------------------
86870
+ DocumentTest: test_will_have_only_set_properties
86871
+ ------------------------------------------------
86872
+ ----------------------------------------------------------------
86873
+ DocumentTest: test_with_default_will_return_default_value_on_nil
86874
+ ----------------------------------------------------------------
86875
+ --------------------------------------------------
86876
+ BulkDocumentTest: test_adding_document_to_bulk_doc
86877
+ --------------------------------------------------
86878
+ -----------------------------------------------------------------
86879
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
86880
+ -----------------------------------------------------------------
86881
+ ------------------------------------------------------------------
86882
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
86883
+ ------------------------------------------------------------------
86884
+ ----------------------------------------------------------------------
86885
+ CollectionTest: test_count_returns_the_number_of_objects_in_collection
86886
+ ----------------------------------------------------------------------
86887
+ -------------------------------------
86888
+ CollectionTest: test_each_returns_nil
86889
+ -------------------------------------
86890
+ -----------------------------------------------------------------------
86891
+ CollectionTest: test_map_accepts_a_block_and_returns_the_correct_values
86892
+ -----------------------------------------------------------------------
86893
+ ----------------------------------------------
86894
+ CollectionTest: test_map_returns_an_enumerator
86895
+ ----------------------------------------------
86896
+ ------------------------------------------
86897
+ CollectionTest: test_to_a_returns_an_array
86898
+ ------------------------------------------
86899
+ -----------------------------------------------------
86900
+ CollectionTest: test_to_json_returns_a_string_of_json
86901
+ -----------------------------------------------------
86902
+ --------------------------------------------------------------
86903
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
86904
+ --------------------------------------------------------------
86905
+ -------------------------------------------
86906
+ DocumentTest: test_all_first_returns_FooBar
86907
+ -------------------------------------------
86908
+ ------------------------------------------
86909
+ DocumentTest: test_all_last_returns_FooBar
86910
+ ------------------------------------------
86911
+ --------------------------------------
86912
+ DocumentTest: test_all_will_get_2_docs
86913
+ --------------------------------------
86914
+ ------------------------------------------------
86915
+ DocumentTest: test_all_will_get_FooBar_documents
86916
+ ------------------------------------------------
86917
+ --------------------------------------------------------------------------------
86918
+ DocumentTest: test_attach_file!_will_add_a_standalone_attachment_to_the_document
86919
+ --------------------------------------------------------------------------------
86920
+ --------------------------------------------------------------------------
86921
+ DocumentTest: test_attach_file!_will_add_an_inline_attachment_if_specified
86922
+ --------------------------------------------------------------------------
86923
+ ------------------------------------------
86924
+ DocumentTest: test_can_find_with_fixnum_id
86925
+ ------------------------------------------
86926
+ ----------------------------------------------
86927
+ DocumentTest: test_can_save_without_timestamps
86928
+ ----------------------------------------------
86929
+ ---------------------------------------------
86930
+ DocumentTest: test_created_at_is_current_time
86931
+ ---------------------------------------------
86932
+ ------------------------------------
86933
+ DocumentTest: test_created_at_is_set
86934
+ ------------------------------------
86935
+ -------------------------------------------------------------
86936
+ DocumentTest: test_default_objects_are_not_the_same_in_memory
86937
+ -------------------------------------------------------------
86938
+ --------------------------------------------------------------------------------
86939
+ DocumentTest: test_default_properties_do_not_update_the_class_default_properties
86940
+ --------------------------------------------------------------------------------
86941
+ ---------------------------------------------------------
86942
+ DocumentTest: test_default_should_be_overridden_by_params
86943
+ ---------------------------------------------------------
86944
+ ------------------------------------------------------
86945
+ DocumentTest: test_default_should_populate_before_save
86946
+ ------------------------------------------------------
86947
+ ----------------------------------------------
86948
+ DocumentTest: test_default_will_be_avoerwriten
86949
+ ----------------------------------------------
86950
+ --------------------------------------------
86951
+ DocumentTest: test_delete_method_on_document
86952
+ --------------------------------------------
86953
+ ---------------------------------------------------------------
86954
+ DocumentTest: test_doc_and_method_and_instance_var_are_the_same
86955
+ ---------------------------------------------------------------
86956
+ ------------------------------------------------
86957
+ DocumentTest: test_empty_find_should_raise_error
86958
+ ------------------------------------------------
86959
+ ------------------------------------------------------------
86960
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
86961
+ ------------------------------------------------------------
86962
+ --------------------------------------------------
86963
+ DocumentTest: test_find_will_get_a_FooBar_document
86964
+ --------------------------------------------------
86965
+ ----------------------------------------------------------------
86966
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
86967
+ ----------------------------------------------------------------
86968
+ --------------------------------------------------------
86969
+ DocumentTest: test_first_class_method_returns_collection
86970
+ --------------------------------------------------------
86971
+ ---------------------------------------------------------
86972
+ DocumentTest: test_first_class_method_returns_single_item
86973
+ ---------------------------------------------------------
86974
+ ---------------------------------------------
86975
+ DocumentTest: test_getting_not_found_document
86976
+ ---------------------------------------------
86977
+ -------------------------------------------------------
86978
+ DocumentTest: test_last_class_method_returns_collection
86979
+ -------------------------------------------------------
86980
+ --------------------------------------------------------
86981
+ DocumentTest: test_last_class_method_returns_single_item
86982
+ --------------------------------------------------------
86983
+ -------------------------------------------------
86984
+ DocumentTest: test_multi_response_with_right_data
86985
+ -------------------------------------------------
86986
+ ---------------------------------------
86987
+ DocumentTest: test_new_document_have_id
86988
+ ---------------------------------------
86989
+ -------------------------------------------------------------------
86990
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_strings
86991
+ -------------------------------------------------------------------
86992
+ -------------------------------------------------------------------
86993
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
86994
+ -------------------------------------------------------------------
86995
+ ------------------------------------------
86996
+ DocumentTest: test_new_document_with_no_id
86997
+ ------------------------------------------
86998
+ -----------------------------------------
86999
+ DocumentTest: test_new_in_memory_document
87000
+ -----------------------------------------
87001
+ -----------------------------------------------------
87002
+ DocumentTest: test_new_object_from_inhereted_document
87003
+ -----------------------------------------------------
87004
+ ------------------------------
87005
+ DocumentTest: test_nil_default
87006
+ ------------------------------
87007
+ ------------------------------------------------------------------
87008
+ DocumentTest: test_persisted?_returns_false_if__rev_is_not_present
87009
+ ------------------------------------------------------------------
87010
+ -------------------------------------------------------------
87011
+ DocumentTest: test_persisted?_returns_true_if__rev_is_present
87012
+ -------------------------------------------------------------
87013
+ ------------------------------------------------------------------
87014
+ DocumentTest: test_property_writes_work_correctly_with_pipe_equals
87015
+ ------------------------------------------------------------------
87016
+ ------------------------------------
87017
+ DocumentTest: test_query_custom_view
87018
+ ------------------------------------
87019
+ ----------------------------------------------
87020
+ DocumentTest: test_query_custom_view_collation
87021
+ ----------------------------------------------
87022
+ --------------------------------------------------------------
87023
+ DocumentTest: test_reader_:bar_is_not_calling_the_writer_:bar=
87024
+ --------------------------------------------------------------
87025
+ ------------------------------------------------------------------
87026
+ DocumentTest: test_save_returns_false_for_invalid_document_on_save
87027
+ ------------------------------------------------------------------
87028
+ -----------------------------------------------------------------------------
87029
+ DocumentTest: test_save_succeeds_for_invalid_document_if_skipping_validations
87030
+ -----------------------------------------------------------------------------
87031
+ ---------------------------------
87032
+ DocumentTest: test_set_updated_at
87033
+ ---------------------------------
87034
+ ----------------------------------------------------------------------------
87035
+ DocumentTest: test_setting_on_instance_value_does_set_it_for_other_instances
87036
+ ----------------------------------------------------------------------------
87037
+ ------------------------------------------
87038
+ DocumentTest: test_soft_delete_on_document
87039
+ ------------------------------------------
87040
+ -----------------------------------------------------------------------
87041
+ DocumentTest: test_subclass_raises_DocumentInvalidError_if_valid?_fails
87042
+ -----------------------------------------------------------------------
87043
+ ----------------------------------------------------
87044
+ DocumentTest: test_trying_to_update_invalid_property
87045
+ ----------------------------------------------------
87046
+ ---------------------------------------------
87047
+ DocumentTest: test_update_document_properties
87048
+ ---------------------------------------------
87049
+ ------------------------------------------------------
87050
+ DocumentTest: test_update_document_propertys_with_bang
87051
+ ------------------------------------------------------
87052
+ -------------------------------------------
87053
+ DocumentTest: test_will_have_key_properties
87054
+ -------------------------------------------
87055
+ --------------------------------------------------------
87056
+ DocumentTest: test_will_have_object_with_DateTime_method
87057
+ --------------------------------------------------------
87058
+ ----------------------------------------------------
87059
+ DocumentTest: test_will_have_object_with_Date_method
87060
+ ----------------------------------------------------
87061
+ ----------------------------------------------------
87062
+ DocumentTest: test_will_have_object_with_Time_method
87063
+ ----------------------------------------------------
87064
+ --------------------------------------------------------
87065
+ DocumentTest: test_will_have_object_with_boolean?_method
87066
+ --------------------------------------------------------
87067
+ ------------------------------------------------
87068
+ DocumentTest: test_will_have_only_set_properties
87069
+ ------------------------------------------------
87070
+ ----------------------------------------------------------------
87071
+ DocumentTest: test_with_default_will_return_default_value_on_nil
87072
+ ----------------------------------------------------------------
87073
+ --------------------------------------------------
87074
+ BulkDocumentTest: test_adding_document_to_bulk_doc
87075
+ --------------------------------------------------
87076
+ -----------------------------------------------------------------
87077
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
87078
+ -----------------------------------------------------------------
87079
+ ------------------------------------------------------------------
87080
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
87081
+ ------------------------------------------------------------------
87082
+ ----------------------------------------------------------------------
87083
+ CollectionTest: test_count_returns_the_number_of_objects_in_collection
87084
+ ----------------------------------------------------------------------
87085
+ -------------------------------------
87086
+ CollectionTest: test_each_returns_nil
87087
+ -------------------------------------
87088
+ -----------------------------------------------------------------------
87089
+ CollectionTest: test_map_accepts_a_block_and_returns_the_correct_values
87090
+ -----------------------------------------------------------------------
87091
+ ----------------------------------------------
87092
+ CollectionTest: test_map_returns_an_enumerator
87093
+ ----------------------------------------------
87094
+ ------------------------------------------
87095
+ CollectionTest: test_to_a_returns_an_array
87096
+ ------------------------------------------
87097
+ -----------------------------------------------------
87098
+ CollectionTest: test_to_json_returns_a_string_of_json
87099
+ -----------------------------------------------------
87100
+ --------------------------------------------------------------
87101
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
87102
+ --------------------------------------------------------------
87103
+ -------------------------------------------
87104
+ DocumentTest: test_all_first_returns_FooBar
87105
+ -------------------------------------------
87106
+ ------------------------------------------
87107
+ DocumentTest: test_all_last_returns_FooBar
87108
+ ------------------------------------------
87109
+ --------------------------------------
87110
+ DocumentTest: test_all_will_get_2_docs
87111
+ --------------------------------------
87112
+ ------------------------------------------------
87113
+ DocumentTest: test_all_will_get_FooBar_documents
87114
+ ------------------------------------------------
87115
+ --------------------------------------------------------------------------------
87116
+ DocumentTest: test_attach_file!_will_add_a_standalone_attachment_to_the_document
87117
+ --------------------------------------------------------------------------------
87118
+ --------------------------------------------------------------------------
87119
+ DocumentTest: test_attach_file!_will_add_an_inline_attachment_if_specified
87120
+ --------------------------------------------------------------------------
87121
+ ------------------------------------------
87122
+ DocumentTest: test_can_find_with_fixnum_id
87123
+ ------------------------------------------
87124
+ ----------------------------------------------
87125
+ DocumentTest: test_can_save_without_timestamps
87126
+ ----------------------------------------------
87127
+ ---------------------------------------------
87128
+ DocumentTest: test_created_at_is_current_time
87129
+ ---------------------------------------------
87130
+ ------------------------------------
87131
+ DocumentTest: test_created_at_is_set
87132
+ ------------------------------------
87133
+ -------------------------------------------------------------
87134
+ DocumentTest: test_default_objects_are_not_the_same_in_memory
87135
+ -------------------------------------------------------------
87136
+ --------------------------------------------------------------------------------
87137
+ DocumentTest: test_default_properties_do_not_update_the_class_default_properties
87138
+ --------------------------------------------------------------------------------
87139
+ ---------------------------------------------------------
87140
+ DocumentTest: test_default_should_be_overridden_by_params
87141
+ ---------------------------------------------------------
87142
+ ------------------------------------------------------
87143
+ DocumentTest: test_default_should_populate_before_save
87144
+ ------------------------------------------------------
87145
+ ----------------------------------------------
87146
+ DocumentTest: test_default_will_be_avoerwriten
87147
+ ----------------------------------------------
87148
+ --------------------------------------------
87149
+ DocumentTest: test_delete_method_on_document
87150
+ --------------------------------------------
87151
+ ---------------------------------------------------------------
87152
+ DocumentTest: test_doc_and_method_and_instance_var_are_the_same
87153
+ ---------------------------------------------------------------
87154
+ ------------------------------------------------
87155
+ DocumentTest: test_empty_find_should_raise_error
87156
+ ------------------------------------------------
87157
+ ------------------------------------------------------------
87158
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
87159
+ ------------------------------------------------------------
87160
+ --------------------------------------------------
87161
+ DocumentTest: test_find_will_get_a_FooBar_document
87162
+ --------------------------------------------------
87163
+ ----------------------------------------------------------------
87164
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
87165
+ ----------------------------------------------------------------
87166
+ --------------------------------------------------------
87167
+ DocumentTest: test_first_class_method_returns_collection
87168
+ --------------------------------------------------------
87169
+ ---------------------------------------------------------
87170
+ DocumentTest: test_first_class_method_returns_single_item
87171
+ ---------------------------------------------------------
87172
+ ---------------------------------------------
87173
+ DocumentTest: test_getting_not_found_document
87174
+ ---------------------------------------------
87175
+ -------------------------------------------------------
87176
+ DocumentTest: test_last_class_method_returns_collection
87177
+ -------------------------------------------------------
87178
+ --------------------------------------------------------
87179
+ DocumentTest: test_last_class_method_returns_single_item
87180
+ --------------------------------------------------------
87181
+ -------------------------------------------------
87182
+ DocumentTest: test_multi_response_with_right_data
87183
+ -------------------------------------------------
87184
+ ---------------------------------------
87185
+ DocumentTest: test_new_document_have_id
87186
+ ---------------------------------------
87187
+ -------------------------------------------------------------------
87188
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_strings
87189
+ -------------------------------------------------------------------
87190
+ -------------------------------------------------------------------
87191
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
87192
+ -------------------------------------------------------------------
87193
+ ------------------------------------------
87194
+ DocumentTest: test_new_document_with_no_id
87195
+ ------------------------------------------
87196
+ -----------------------------------------
87197
+ DocumentTest: test_new_in_memory_document
87198
+ -----------------------------------------
87199
+ -----------------------------------------------------
87200
+ DocumentTest: test_new_object_from_inhereted_document
87201
+ -----------------------------------------------------
87202
+ ------------------------------
87203
+ DocumentTest: test_nil_default
87204
+ ------------------------------
87205
+ ------------------------------------------------------------------
87206
+ DocumentTest: test_persisted?_returns_false_if__rev_is_not_present
87207
+ ------------------------------------------------------------------
87208
+ -------------------------------------------------------------
87209
+ DocumentTest: test_persisted?_returns_true_if__rev_is_present
87210
+ -------------------------------------------------------------
87211
+ ------------------------------------------------------------------
87212
+ DocumentTest: test_property_writes_work_correctly_with_pipe_equals
87213
+ ------------------------------------------------------------------
87214
+ ------------------------------------
87215
+ DocumentTest: test_query_custom_view
87216
+ ------------------------------------
87217
+ ----------------------------------------------
87218
+ DocumentTest: test_query_custom_view_collation
87219
+ ----------------------------------------------
87220
+ --------------------------------------------------------------
87221
+ DocumentTest: test_reader_:bar_is_not_calling_the_writer_:bar=
87222
+ --------------------------------------------------------------
87223
+ ------------------------------------------------------------------
87224
+ DocumentTest: test_save_returns_false_for_invalid_document_on_save
87225
+ ------------------------------------------------------------------
87226
+ -----------------------------------------------------------------------------
87227
+ DocumentTest: test_save_succeeds_for_invalid_document_if_skipping_validations
87228
+ -----------------------------------------------------------------------------
87229
+ ---------------------------------
87230
+ DocumentTest: test_set_updated_at
87231
+ ---------------------------------
87232
+ ----------------------------------------------------------------------------
87233
+ DocumentTest: test_setting_on_instance_value_does_set_it_for_other_instances
87234
+ ----------------------------------------------------------------------------
87235
+ ------------------------------------------
87236
+ DocumentTest: test_soft_delete_on_document
87237
+ ------------------------------------------
87238
+ -----------------------------------------------------------------------
87239
+ DocumentTest: test_subclass_raises_DocumentInvalidError_if_valid?_fails
87240
+ -----------------------------------------------------------------------
87241
+ ----------------------------------------------------
87242
+ DocumentTest: test_trying_to_update_invalid_property
87243
+ ----------------------------------------------------
87244
+ ---------------------------------------------
87245
+ DocumentTest: test_update_document_properties
87246
+ ---------------------------------------------
87247
+ ------------------------------------------------------
87248
+ DocumentTest: test_update_document_propertys_with_bang
87249
+ ------------------------------------------------------
87250
+ -------------------------------------------
87251
+ DocumentTest: test_will_have_key_properties
87252
+ -------------------------------------------
87253
+ --------------------------------------------------------
87254
+ DocumentTest: test_will_have_object_with_DateTime_method
87255
+ --------------------------------------------------------
87256
+ ----------------------------------------------------
87257
+ DocumentTest: test_will_have_object_with_Date_method
87258
+ ----------------------------------------------------
87259
+ ----------------------------------------------------
87260
+ DocumentTest: test_will_have_object_with_Time_method
87261
+ ----------------------------------------------------
87262
+ --------------------------------------------------------
87263
+ DocumentTest: test_will_have_object_with_boolean?_method
87264
+ --------------------------------------------------------
87265
+ ------------------------------------------------
87266
+ DocumentTest: test_will_have_only_set_properties
87267
+ ------------------------------------------------
87268
+ ----------------------------------------------------------------
87269
+ DocumentTest: test_with_default_will_return_default_value_on_nil
87270
+ ----------------------------------------------------------------