dolly 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f29b5844c80c084b44198fb3f688846f452c73bf
4
- data.tar.gz: bc6a9d32ffec5173f0eae141bf58875171c1d103
3
+ metadata.gz: 45fa7180b3da598f09d522101ae72b4d35bff7d1
4
+ data.tar.gz: 3eceb48ee307b83c6b379e2bdacd7530cafbe0f5
5
5
  SHA512:
6
- metadata.gz: 64dfc271e9b7e345e6f80b04abee4a6c50908106a1c0db54cb8d0accd841d2fbe5834554018bfbd738a1aecae3f37a17966533a63ce13c607d40cad1f43072f4
7
- data.tar.gz: 963b38e968fd84228e8940d7f83ae188081eba84454c075e26d70b5608a31668b8dcd25b3b68472bde68f9c805347dd07ff96c4a9ac7d433669d02bed95385a0
6
+ metadata.gz: 2e3e721bce03f02a766d159950956ac4dff0394cf437f1fc06117ad5755ee9a0e8da0baa004c2c247710c9909fe36a5be2815ea78eb5c4371700e9376ea1b9e1
7
+ data.tar.gz: 3215f948add4eb9b8f7048bafcd0a98e01c91ce09c4c4601a0c58d4a9863f1d2aa96a88de65f62d70e32945493bc82c7b9d43a25726457308321a1022e3c65f5
data/lib/dolly/request.rb CHANGED
@@ -5,15 +5,17 @@ module Dolly
5
5
 
6
6
  class Request
7
7
  include HTTParty
8
- DEFAULT_HOST = 'localhost'
9
- DEFAULT_PORT = '5984'
8
+ REQUIRED_KEYS = %w/host port name/.freeze
10
9
 
11
10
  attr_accessor :database_name, :host, :port, :bulk_document
12
11
 
13
12
  def initialize options = {}
14
- @host = options["host"] || DEFAULT_HOST
15
- @port = options["port"] || DEFAULT_PORT
13
+ REQUIRED_KEYS.each do |key|
14
+ raise Dolly::MissingRequestConfigSettings.new(key) unless options[key]
15
+ end
16
16
 
17
+ @host = options["host"]
18
+ @port = options["port"]
17
19
  @database_name = options["name"]
18
20
  @username = options["username"]
19
21
  @password = options["password"]
@@ -50,7 +52,7 @@ module Dolly
50
52
  end
51
53
 
52
54
  def protocol
53
- @protocol || 'http'
55
+ @protocol ||= 'http'
54
56
  end
55
57
 
56
58
  def uuids opts = {}
data/lib/dolly/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dolly
2
- VERSION = "1.1.6"
2
+ VERSION = "1.1.7"
3
3
  end
@@ -35,4 +35,13 @@ module Dolly
35
35
  end
36
36
  class DocumentInvalidError < RuntimeError; end
37
37
  class MissingPropertyError < RuntimeError; end
38
+ class MissingRequestConfigSettings < RuntimeError
39
+ def initialize key
40
+ @key = key
41
+ end
42
+
43
+ def to_s
44
+ "Missing required #{@key} setting for Dolly::Request"
45
+ end
46
+ end
38
47
  end
@@ -110227,3 +110227,1560 @@ DocumentTest: test_will_have_only_set_properties
110227
110227
  ----------------------------------------------------------------
110228
110228
  DocumentTest: test_with_default_will_return_default_value_on_nil
110229
110229
  ----------------------------------------------------------------
110230
+ --------------------------------------------------
110231
+ BulkDocumentTest: test_adding_document_to_bulk_doc
110232
+ --------------------------------------------------
110233
+ -----------------------------------------------------------------
110234
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
110235
+ -----------------------------------------------------------------
110236
+ ------------------------------------------------------------------
110237
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
110238
+ ------------------------------------------------------------------
110239
+ ----------------------------------------------------------------------
110240
+ CollectionTest: test_count_returns_the_number_of_objects_in_collection
110241
+ ----------------------------------------------------------------------
110242
+ -------------------------------------
110243
+ CollectionTest: test_each_returns_nil
110244
+ -------------------------------------
110245
+ -----------------------------------------------------------------------
110246
+ CollectionTest: test_map_accepts_a_block_and_returns_the_correct_values
110247
+ -----------------------------------------------------------------------
110248
+ ----------------------------------------------
110249
+ CollectionTest: test_map_returns_an_enumerator
110250
+ ----------------------------------------------
110251
+ ------------------------------------------
110252
+ CollectionTest: test_to_a_returns_an_array
110253
+ ------------------------------------------
110254
+ -----------------------------------------------------
110255
+ CollectionTest: test_to_json_returns_a_string_of_json
110256
+ -----------------------------------------------------
110257
+ ----------------------------------------------------------------------
110258
+ CollectionTest: test_update_attributes_will_change_expected_attributes
110259
+ ----------------------------------------------------------------------
110260
+ ----------------------------------------------------------------------------------
110261
+ CollectionTest: test_update_attributes_will_raise_exception_if_property_is_missing
110262
+ ----------------------------------------------------------------------------------
110263
+ --------------------------------------------
110264
+ CollectionTest: test_update_empty_attributes
110265
+ --------------------------------------------
110266
+ ---------------------------------------------------------------------
110267
+ ConfigurationTest: test_configure_allows_for_changes_to_configuration
110268
+ ---------------------------------------------------------------------
110269
+ --------------------------------------------------------------
110270
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
110271
+ --------------------------------------------------------------
110272
+ ----------------------------------------------------------
110273
+ DocumentTest: test_accessors_work_as_expected_after_reload
110274
+ ----------------------------------------------------------
110275
+ -------------------------------------------
110276
+ DocumentTest: test_all_first_returns_FooBar
110277
+ -------------------------------------------
110278
+ ------------------------------------------
110279
+ DocumentTest: test_all_last_returns_FooBar
110280
+ ------------------------------------------
110281
+ --------------------------------------
110282
+ DocumentTest: test_all_will_get_2_docs
110283
+ --------------------------------------
110284
+ ------------------------------------------------
110285
+ DocumentTest: test_all_will_get_FooBar_documents
110286
+ ------------------------------------------------
110287
+ --------------------------------------------------------------------------------
110288
+ DocumentTest: test_attach_file!_will_add_a_standalone_attachment_to_the_document
110289
+ --------------------------------------------------------------------------------
110290
+ --------------------------------------------------------------------------
110291
+ DocumentTest: test_attach_file!_will_add_an_inline_attachment_if_specified
110292
+ --------------------------------------------------------------------------
110293
+ ------------------------------------------
110294
+ DocumentTest: test_can_find_with_fixnum_id
110295
+ ------------------------------------------
110296
+ ----------------------------------------------
110297
+ DocumentTest: test_can_save_without_timestamps
110298
+ ----------------------------------------------
110299
+ ---------------------------------------------
110300
+ DocumentTest: test_created_at_is_current_time
110301
+ ---------------------------------------------
110302
+ ------------------------------------
110303
+ DocumentTest: test_created_at_is_set
110304
+ ------------------------------------
110305
+ -------------------------------------------------------------
110306
+ DocumentTest: test_default_objects_are_not_the_same_in_memory
110307
+ -------------------------------------------------------------
110308
+ --------------------------------------------------------------------------------
110309
+ DocumentTest: test_default_properties_do_not_update_the_class_default_properties
110310
+ --------------------------------------------------------------------------------
110311
+ ---------------------------------------------------------
110312
+ DocumentTest: test_default_should_be_overridden_by_params
110313
+ ---------------------------------------------------------
110314
+ ------------------------------------------------------
110315
+ DocumentTest: test_default_should_populate_before_save
110316
+ ------------------------------------------------------
110317
+ ----------------------------------------------
110318
+ DocumentTest: test_default_will_be_avoerwriten
110319
+ ----------------------------------------------
110320
+ --------------------------------------------
110321
+ DocumentTest: test_delete_method_on_document
110322
+ --------------------------------------------
110323
+ ---------------------------------------------------------------
110324
+ DocumentTest: test_doc_and_method_and_instance_var_are_the_same
110325
+ ---------------------------------------------------------------
110326
+ ------------------------------------------------
110327
+ DocumentTest: test_empty_find_should_raise_error
110328
+ ------------------------------------------------
110329
+ ------------------------------------------------------------
110330
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
110331
+ ------------------------------------------------------------
110332
+ --------------------------------------------------
110333
+ DocumentTest: test_find_will_get_a_FooBar_document
110334
+ --------------------------------------------------
110335
+ ----------------------------------------------------------------
110336
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
110337
+ ----------------------------------------------------------------
110338
+ --------------------------------------------------------
110339
+ DocumentTest: test_first_class_method_returns_collection
110340
+ --------------------------------------------------------
110341
+ ---------------------------------------------------------
110342
+ DocumentTest: test_first_class_method_returns_single_item
110343
+ ---------------------------------------------------------
110344
+ ---------------------------------------------
110345
+ DocumentTest: test_getting_not_found_document
110346
+ ---------------------------------------------
110347
+ -------------------------------------------------------
110348
+ DocumentTest: test_last_class_method_returns_collection
110349
+ -------------------------------------------------------
110350
+ --------------------------------------------------------
110351
+ DocumentTest: test_last_class_method_returns_single_item
110352
+ --------------------------------------------------------
110353
+ -------------------------------------------------
110354
+ DocumentTest: test_multi_response_with_right_data
110355
+ -------------------------------------------------
110356
+ ---------------------------------------
110357
+ DocumentTest: test_new_document_have_id
110358
+ ---------------------------------------
110359
+ -------------------------------------------------------------------
110360
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_strings
110361
+ -------------------------------------------------------------------
110362
+ -------------------------------------------------------------------
110363
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
110364
+ -------------------------------------------------------------------
110365
+ ------------------------------------------
110366
+ DocumentTest: test_new_document_with_no_id
110367
+ ------------------------------------------
110368
+ -----------------------------------------
110369
+ DocumentTest: test_new_in_memory_document
110370
+ -----------------------------------------
110371
+ -----------------------------------------------------
110372
+ DocumentTest: test_new_object_from_inhereted_document
110373
+ -----------------------------------------------------
110374
+ ------------------------------
110375
+ DocumentTest: test_nil_default
110376
+ ------------------------------
110377
+ ------------------------------------------------------------------
110378
+ DocumentTest: test_persisted?_returns_false_if__rev_is_not_present
110379
+ ------------------------------------------------------------------
110380
+ -------------------------------------------------------------
110381
+ DocumentTest: test_persisted?_returns_true_if__rev_is_present
110382
+ -------------------------------------------------------------
110383
+ ------------------------------------------------------------------
110384
+ DocumentTest: test_property_writes_work_correctly_with_pipe_equals
110385
+ ------------------------------------------------------------------
110386
+ ------------------------------------
110387
+ DocumentTest: test_query_custom_view
110388
+ ------------------------------------
110389
+ ----------------------------------------------
110390
+ DocumentTest: test_query_custom_view_collation
110391
+ ----------------------------------------------
110392
+ --------------------------------------------------------------
110393
+ DocumentTest: test_reader_:bar_is_not_calling_the_writer_:bar=
110394
+ --------------------------------------------------------------
110395
+ -----------------------------------------------------------------
110396
+ DocumentTest: test_reload_reloads_the_doc_attribute_from_database
110397
+ -----------------------------------------------------------------
110398
+ ------------------------------------------------------------------
110399
+ DocumentTest: test_save_returns_false_for_invalid_document_on_save
110400
+ ------------------------------------------------------------------
110401
+ -----------------------------------------------------------------------------
110402
+ DocumentTest: test_save_succeeds_for_invalid_document_if_skipping_validations
110403
+ -----------------------------------------------------------------------------
110404
+ ---------------------------------
110405
+ DocumentTest: test_set_updated_at
110406
+ ---------------------------------
110407
+ ----------------------------------------------------------------------------
110408
+ DocumentTest: test_setting_on_instance_value_does_set_it_for_other_instances
110409
+ ----------------------------------------------------------------------------
110410
+ ------------------------------------------
110411
+ DocumentTest: test_soft_delete_on_document
110412
+ ------------------------------------------
110413
+ -----------------------------------------------------------------------
110414
+ DocumentTest: test_subclass_raises_DocumentInvalidError_if_valid?_fails
110415
+ -----------------------------------------------------------------------
110416
+ ----------------------------------------------------
110417
+ DocumentTest: test_trying_to_update_invalid_property
110418
+ ----------------------------------------------------
110419
+ ---------------------------------------------
110420
+ DocumentTest: test_update_document_properties
110421
+ ---------------------------------------------
110422
+ ------------------------------------------------------
110423
+ DocumentTest: test_update_document_propertys_with_bang
110424
+ ------------------------------------------------------
110425
+ -------------------------------------------
110426
+ DocumentTest: test_will_have_key_properties
110427
+ -------------------------------------------
110428
+ --------------------------------------------------------
110429
+ DocumentTest: test_will_have_object_with_DateTime_method
110430
+ --------------------------------------------------------
110431
+ ----------------------------------------------------
110432
+ DocumentTest: test_will_have_object_with_Date_method
110433
+ ----------------------------------------------------
110434
+ ----------------------------------------------------
110435
+ DocumentTest: test_will_have_object_with_Time_method
110436
+ ----------------------------------------------------
110437
+ --------------------------------------------------------
110438
+ DocumentTest: test_will_have_object_with_boolean?_method
110439
+ --------------------------------------------------------
110440
+ ------------------------------------------------
110441
+ DocumentTest: test_will_have_only_set_properties
110442
+ ------------------------------------------------
110443
+ ----------------------------------------------------------------
110444
+ DocumentTest: test_with_default_will_return_default_value_on_nil
110445
+ ----------------------------------------------------------------
110446
+ --------------------------------------------------
110447
+ BulkDocumentTest: test_adding_document_to_bulk_doc
110448
+ --------------------------------------------------
110449
+ -----------------------------------------------------------------
110450
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
110451
+ -----------------------------------------------------------------
110452
+ ------------------------------------------------------------------
110453
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
110454
+ ------------------------------------------------------------------
110455
+ ----------------------------------------------------------------------
110456
+ CollectionTest: test_count_returns_the_number_of_objects_in_collection
110457
+ ----------------------------------------------------------------------
110458
+ -------------------------------------
110459
+ CollectionTest: test_each_returns_nil
110460
+ -------------------------------------
110461
+ -----------------------------------------------------------------------
110462
+ CollectionTest: test_map_accepts_a_block_and_returns_the_correct_values
110463
+ -----------------------------------------------------------------------
110464
+ ----------------------------------------------
110465
+ CollectionTest: test_map_returns_an_enumerator
110466
+ ----------------------------------------------
110467
+ ------------------------------------------
110468
+ CollectionTest: test_to_a_returns_an_array
110469
+ ------------------------------------------
110470
+ -----------------------------------------------------
110471
+ CollectionTest: test_to_json_returns_a_string_of_json
110472
+ -----------------------------------------------------
110473
+ ----------------------------------------------------------------------
110474
+ CollectionTest: test_update_attributes_will_change_expected_attributes
110475
+ ----------------------------------------------------------------------
110476
+ ----------------------------------------------------------------------------------
110477
+ CollectionTest: test_update_attributes_will_raise_exception_if_property_is_missing
110478
+ ----------------------------------------------------------------------------------
110479
+ --------------------------------------------
110480
+ CollectionTest: test_update_empty_attributes
110481
+ --------------------------------------------
110482
+ ---------------------------------------------------------------------
110483
+ ConfigurationTest: test_configure_allows_for_changes_to_configuration
110484
+ ---------------------------------------------------------------------
110485
+ --------------------------------------------------------------
110486
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
110487
+ --------------------------------------------------------------
110488
+ ----------------------------------------------------------
110489
+ DocumentTest: test_accessors_work_as_expected_after_reload
110490
+ ----------------------------------------------------------
110491
+ -------------------------------------------
110492
+ DocumentTest: test_all_first_returns_FooBar
110493
+ -------------------------------------------
110494
+ ------------------------------------------
110495
+ DocumentTest: test_all_last_returns_FooBar
110496
+ ------------------------------------------
110497
+ --------------------------------------
110498
+ DocumentTest: test_all_will_get_2_docs
110499
+ --------------------------------------
110500
+ ------------------------------------------------
110501
+ DocumentTest: test_all_will_get_FooBar_documents
110502
+ ------------------------------------------------
110503
+ --------------------------------------------------------------------------------
110504
+ DocumentTest: test_attach_file!_will_add_a_standalone_attachment_to_the_document
110505
+ --------------------------------------------------------------------------------
110506
+ --------------------------------------------------------------------------
110507
+ DocumentTest: test_attach_file!_will_add_an_inline_attachment_if_specified
110508
+ --------------------------------------------------------------------------
110509
+ ------------------------------------------
110510
+ DocumentTest: test_can_find_with_fixnum_id
110511
+ ------------------------------------------
110512
+ ----------------------------------------------
110513
+ DocumentTest: test_can_save_without_timestamps
110514
+ ----------------------------------------------
110515
+ ---------------------------------------------
110516
+ DocumentTest: test_created_at_is_current_time
110517
+ ---------------------------------------------
110518
+ ------------------------------------
110519
+ DocumentTest: test_created_at_is_set
110520
+ ------------------------------------
110521
+ -------------------------------------------------------------
110522
+ DocumentTest: test_default_objects_are_not_the_same_in_memory
110523
+ -------------------------------------------------------------
110524
+ --------------------------------------------------------------------------------
110525
+ DocumentTest: test_default_properties_do_not_update_the_class_default_properties
110526
+ --------------------------------------------------------------------------------
110527
+ ---------------------------------------------------------
110528
+ DocumentTest: test_default_should_be_overridden_by_params
110529
+ ---------------------------------------------------------
110530
+ ------------------------------------------------------
110531
+ DocumentTest: test_default_should_populate_before_save
110532
+ ------------------------------------------------------
110533
+ ----------------------------------------------
110534
+ DocumentTest: test_default_will_be_avoerwriten
110535
+ ----------------------------------------------
110536
+ --------------------------------------------
110537
+ DocumentTest: test_delete_method_on_document
110538
+ --------------------------------------------
110539
+ ---------------------------------------------------------------
110540
+ DocumentTest: test_doc_and_method_and_instance_var_are_the_same
110541
+ ---------------------------------------------------------------
110542
+ ------------------------------------------------
110543
+ DocumentTest: test_empty_find_should_raise_error
110544
+ ------------------------------------------------
110545
+ ------------------------------------------------------------
110546
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
110547
+ ------------------------------------------------------------
110548
+ --------------------------------------------------
110549
+ DocumentTest: test_find_will_get_a_FooBar_document
110550
+ --------------------------------------------------
110551
+ ----------------------------------------------------------------
110552
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
110553
+ ----------------------------------------------------------------
110554
+ --------------------------------------------------------
110555
+ DocumentTest: test_first_class_method_returns_collection
110556
+ --------------------------------------------------------
110557
+ ---------------------------------------------------------
110558
+ DocumentTest: test_first_class_method_returns_single_item
110559
+ ---------------------------------------------------------
110560
+ ---------------------------------------------
110561
+ DocumentTest: test_getting_not_found_document
110562
+ ---------------------------------------------
110563
+ -------------------------------------------------------
110564
+ DocumentTest: test_last_class_method_returns_collection
110565
+ -------------------------------------------------------
110566
+ --------------------------------------------------------
110567
+ DocumentTest: test_last_class_method_returns_single_item
110568
+ --------------------------------------------------------
110569
+ -------------------------------------------------
110570
+ DocumentTest: test_multi_response_with_right_data
110571
+ -------------------------------------------------
110572
+ ---------------------------------------
110573
+ DocumentTest: test_new_document_have_id
110574
+ ---------------------------------------
110575
+ -------------------------------------------------------------------
110576
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_strings
110577
+ -------------------------------------------------------------------
110578
+ -------------------------------------------------------------------
110579
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
110580
+ -------------------------------------------------------------------
110581
+ ------------------------------------------
110582
+ DocumentTest: test_new_document_with_no_id
110583
+ ------------------------------------------
110584
+ -----------------------------------------
110585
+ DocumentTest: test_new_in_memory_document
110586
+ -----------------------------------------
110587
+ -----------------------------------------------------
110588
+ DocumentTest: test_new_object_from_inhereted_document
110589
+ -----------------------------------------------------
110590
+ ------------------------------
110591
+ DocumentTest: test_nil_default
110592
+ ------------------------------
110593
+ ------------------------------------------------------------------
110594
+ DocumentTest: test_persisted?_returns_false_if__rev_is_not_present
110595
+ ------------------------------------------------------------------
110596
+ -------------------------------------------------------------
110597
+ DocumentTest: test_persisted?_returns_true_if__rev_is_present
110598
+ -------------------------------------------------------------
110599
+ ------------------------------------------------------------------
110600
+ DocumentTest: test_property_writes_work_correctly_with_pipe_equals
110601
+ ------------------------------------------------------------------
110602
+ ------------------------------------
110603
+ DocumentTest: test_query_custom_view
110604
+ ------------------------------------
110605
+ ----------------------------------------------
110606
+ DocumentTest: test_query_custom_view_collation
110607
+ ----------------------------------------------
110608
+ --------------------------------------------------------------
110609
+ DocumentTest: test_reader_:bar_is_not_calling_the_writer_:bar=
110610
+ --------------------------------------------------------------
110611
+ -----------------------------------------------------------------
110612
+ DocumentTest: test_reload_reloads_the_doc_attribute_from_database
110613
+ -----------------------------------------------------------------
110614
+ ------------------------------------------------------------------
110615
+ DocumentTest: test_save_returns_false_for_invalid_document_on_save
110616
+ ------------------------------------------------------------------
110617
+ -----------------------------------------------------------------------------
110618
+ DocumentTest: test_save_succeeds_for_invalid_document_if_skipping_validations
110619
+ -----------------------------------------------------------------------------
110620
+ ---------------------------------
110621
+ DocumentTest: test_set_updated_at
110622
+ ---------------------------------
110623
+ ----------------------------------------------------------------------------
110624
+ DocumentTest: test_setting_on_instance_value_does_set_it_for_other_instances
110625
+ ----------------------------------------------------------------------------
110626
+ ------------------------------------------
110627
+ DocumentTest: test_soft_delete_on_document
110628
+ ------------------------------------------
110629
+ -----------------------------------------------------------------------
110630
+ DocumentTest: test_subclass_raises_DocumentInvalidError_if_valid?_fails
110631
+ -----------------------------------------------------------------------
110632
+ ----------------------------------------------------
110633
+ DocumentTest: test_trying_to_update_invalid_property
110634
+ ----------------------------------------------------
110635
+ ---------------------------------------------
110636
+ DocumentTest: test_update_document_properties
110637
+ ---------------------------------------------
110638
+ ------------------------------------------------------
110639
+ DocumentTest: test_update_document_propertys_with_bang
110640
+ ------------------------------------------------------
110641
+ -------------------------------------------
110642
+ DocumentTest: test_will_have_key_properties
110643
+ -------------------------------------------
110644
+ --------------------------------------------------------
110645
+ DocumentTest: test_will_have_object_with_DateTime_method
110646
+ --------------------------------------------------------
110647
+ ----------------------------------------------------
110648
+ DocumentTest: test_will_have_object_with_Date_method
110649
+ ----------------------------------------------------
110650
+ ----------------------------------------------------
110651
+ DocumentTest: test_will_have_object_with_Time_method
110652
+ ----------------------------------------------------
110653
+ --------------------------------------------------------
110654
+ DocumentTest: test_will_have_object_with_boolean?_method
110655
+ --------------------------------------------------------
110656
+ ------------------------------------------------
110657
+ DocumentTest: test_will_have_only_set_properties
110658
+ ------------------------------------------------
110659
+ ----------------------------------------------------------------
110660
+ DocumentTest: test_with_default_will_return_default_value_on_nil
110661
+ ----------------------------------------------------------------
110662
+ --------------------------------------------------
110663
+ BulkDocumentTest: test_adding_document_to_bulk_doc
110664
+ --------------------------------------------------
110665
+ -----------------------------------------------------------------
110666
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
110667
+ -----------------------------------------------------------------
110668
+ ------------------------------------------------------------------
110669
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
110670
+ ------------------------------------------------------------------
110671
+ ----------------------------------------------------------------------
110672
+ CollectionTest: test_count_returns_the_number_of_objects_in_collection
110673
+ ----------------------------------------------------------------------
110674
+ -------------------------------------
110675
+ CollectionTest: test_each_returns_nil
110676
+ -------------------------------------
110677
+ -----------------------------------------------------------------------
110678
+ CollectionTest: test_map_accepts_a_block_and_returns_the_correct_values
110679
+ -----------------------------------------------------------------------
110680
+ ----------------------------------------------
110681
+ CollectionTest: test_map_returns_an_enumerator
110682
+ ----------------------------------------------
110683
+ ------------------------------------------
110684
+ CollectionTest: test_to_a_returns_an_array
110685
+ ------------------------------------------
110686
+ -----------------------------------------------------
110687
+ CollectionTest: test_to_json_returns_a_string_of_json
110688
+ -----------------------------------------------------
110689
+ ----------------------------------------------------------------------
110690
+ CollectionTest: test_update_attributes_will_change_expected_attributes
110691
+ ----------------------------------------------------------------------
110692
+ ----------------------------------------------------------------------------------
110693
+ CollectionTest: test_update_attributes_will_raise_exception_if_property_is_missing
110694
+ ----------------------------------------------------------------------------------
110695
+ --------------------------------------------
110696
+ CollectionTest: test_update_empty_attributes
110697
+ --------------------------------------------
110698
+ ---------------------------------------------------------------------
110699
+ ConfigurationTest: test_configure_allows_for_changes_to_configuration
110700
+ ---------------------------------------------------------------------
110701
+ --------------------------------------------------------------
110702
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
110703
+ --------------------------------------------------------------
110704
+ ----------------------------------------------------------
110705
+ DocumentTest: test_accessors_work_as_expected_after_reload
110706
+ ----------------------------------------------------------
110707
+ -------------------------------------------
110708
+ DocumentTest: test_all_first_returns_FooBar
110709
+ -------------------------------------------
110710
+ ------------------------------------------
110711
+ DocumentTest: test_all_last_returns_FooBar
110712
+ ------------------------------------------
110713
+ --------------------------------------
110714
+ DocumentTest: test_all_will_get_2_docs
110715
+ --------------------------------------
110716
+ ------------------------------------------------
110717
+ DocumentTest: test_all_will_get_FooBar_documents
110718
+ ------------------------------------------------
110719
+ --------------------------------------------------------------------------------
110720
+ DocumentTest: test_attach_file!_will_add_a_standalone_attachment_to_the_document
110721
+ --------------------------------------------------------------------------------
110722
+ --------------------------------------------------------------------------
110723
+ DocumentTest: test_attach_file!_will_add_an_inline_attachment_if_specified
110724
+ --------------------------------------------------------------------------
110725
+ ------------------------------------------
110726
+ DocumentTest: test_can_find_with_fixnum_id
110727
+ ------------------------------------------
110728
+ ----------------------------------------------
110729
+ DocumentTest: test_can_save_without_timestamps
110730
+ ----------------------------------------------
110731
+ ---------------------------------------------
110732
+ DocumentTest: test_created_at_is_current_time
110733
+ ---------------------------------------------
110734
+ ------------------------------------
110735
+ DocumentTest: test_created_at_is_set
110736
+ ------------------------------------
110737
+ -------------------------------------------------------------
110738
+ DocumentTest: test_default_objects_are_not_the_same_in_memory
110739
+ -------------------------------------------------------------
110740
+ --------------------------------------------------------------------------------
110741
+ DocumentTest: test_default_properties_do_not_update_the_class_default_properties
110742
+ --------------------------------------------------------------------------------
110743
+ ---------------------------------------------------------
110744
+ DocumentTest: test_default_should_be_overridden_by_params
110745
+ ---------------------------------------------------------
110746
+ ------------------------------------------------------
110747
+ DocumentTest: test_default_should_populate_before_save
110748
+ ------------------------------------------------------
110749
+ ----------------------------------------------
110750
+ DocumentTest: test_default_will_be_avoerwriten
110751
+ ----------------------------------------------
110752
+ --------------------------------------------
110753
+ DocumentTest: test_delete_method_on_document
110754
+ --------------------------------------------
110755
+ ---------------------------------------------------------------
110756
+ DocumentTest: test_doc_and_method_and_instance_var_are_the_same
110757
+ ---------------------------------------------------------------
110758
+ ------------------------------------------------
110759
+ DocumentTest: test_empty_find_should_raise_error
110760
+ ------------------------------------------------
110761
+ ------------------------------------------------------------
110762
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
110763
+ ------------------------------------------------------------
110764
+ --------------------------------------------------
110765
+ DocumentTest: test_find_will_get_a_FooBar_document
110766
+ --------------------------------------------------
110767
+ ----------------------------------------------------------------
110768
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
110769
+ ----------------------------------------------------------------
110770
+ --------------------------------------------------------
110771
+ DocumentTest: test_first_class_method_returns_collection
110772
+ --------------------------------------------------------
110773
+ ---------------------------------------------------------
110774
+ DocumentTest: test_first_class_method_returns_single_item
110775
+ ---------------------------------------------------------
110776
+ ---------------------------------------------
110777
+ DocumentTest: test_getting_not_found_document
110778
+ ---------------------------------------------
110779
+ -------------------------------------------------------
110780
+ DocumentTest: test_last_class_method_returns_collection
110781
+ -------------------------------------------------------
110782
+ --------------------------------------------------------
110783
+ DocumentTest: test_last_class_method_returns_single_item
110784
+ --------------------------------------------------------
110785
+ -------------------------------------------------
110786
+ DocumentTest: test_multi_response_with_right_data
110787
+ -------------------------------------------------
110788
+ ---------------------------------------
110789
+ DocumentTest: test_new_document_have_id
110790
+ ---------------------------------------
110791
+ -------------------------------------------------------------------
110792
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_strings
110793
+ -------------------------------------------------------------------
110794
+ -------------------------------------------------------------------
110795
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
110796
+ -------------------------------------------------------------------
110797
+ ------------------------------------------
110798
+ DocumentTest: test_new_document_with_no_id
110799
+ ------------------------------------------
110800
+ -----------------------------------------
110801
+ DocumentTest: test_new_in_memory_document
110802
+ -----------------------------------------
110803
+ -----------------------------------------------------
110804
+ DocumentTest: test_new_object_from_inhereted_document
110805
+ -----------------------------------------------------
110806
+ ------------------------------
110807
+ DocumentTest: test_nil_default
110808
+ ------------------------------
110809
+ ------------------------------------------------------------------
110810
+ DocumentTest: test_persisted?_returns_false_if__rev_is_not_present
110811
+ ------------------------------------------------------------------
110812
+ -------------------------------------------------------------
110813
+ DocumentTest: test_persisted?_returns_true_if__rev_is_present
110814
+ -------------------------------------------------------------
110815
+ ------------------------------------------------------------------
110816
+ DocumentTest: test_property_writes_work_correctly_with_pipe_equals
110817
+ ------------------------------------------------------------------
110818
+ ------------------------------------
110819
+ DocumentTest: test_query_custom_view
110820
+ ------------------------------------
110821
+ ----------------------------------------------
110822
+ DocumentTest: test_query_custom_view_collation
110823
+ ----------------------------------------------
110824
+ --------------------------------------------------------------
110825
+ DocumentTest: test_reader_:bar_is_not_calling_the_writer_:bar=
110826
+ --------------------------------------------------------------
110827
+ -----------------------------------------------------------------
110828
+ DocumentTest: test_reload_reloads_the_doc_attribute_from_database
110829
+ -----------------------------------------------------------------
110830
+ ------------------------------------------------------------------
110831
+ DocumentTest: test_save_returns_false_for_invalid_document_on_save
110832
+ ------------------------------------------------------------------
110833
+ -----------------------------------------------------------------------------
110834
+ DocumentTest: test_save_succeeds_for_invalid_document_if_skipping_validations
110835
+ -----------------------------------------------------------------------------
110836
+ ---------------------------------
110837
+ DocumentTest: test_set_updated_at
110838
+ ---------------------------------
110839
+ ----------------------------------------------------------------------------
110840
+ DocumentTest: test_setting_on_instance_value_does_set_it_for_other_instances
110841
+ ----------------------------------------------------------------------------
110842
+ ------------------------------------------
110843
+ DocumentTest: test_soft_delete_on_document
110844
+ ------------------------------------------
110845
+ -----------------------------------------------------------------------
110846
+ DocumentTest: test_subclass_raises_DocumentInvalidError_if_valid?_fails
110847
+ -----------------------------------------------------------------------
110848
+ ----------------------------------------------------
110849
+ DocumentTest: test_trying_to_update_invalid_property
110850
+ ----------------------------------------------------
110851
+ ---------------------------------------------
110852
+ DocumentTest: test_update_document_properties
110853
+ ---------------------------------------------
110854
+ ------------------------------------------------------
110855
+ DocumentTest: test_update_document_propertys_with_bang
110856
+ ------------------------------------------------------
110857
+ -------------------------------------------
110858
+ DocumentTest: test_will_have_key_properties
110859
+ -------------------------------------------
110860
+ --------------------------------------------------------
110861
+ DocumentTest: test_will_have_object_with_DateTime_method
110862
+ --------------------------------------------------------
110863
+ ----------------------------------------------------
110864
+ DocumentTest: test_will_have_object_with_Date_method
110865
+ ----------------------------------------------------
110866
+ ----------------------------------------------------
110867
+ DocumentTest: test_will_have_object_with_Time_method
110868
+ ----------------------------------------------------
110869
+ --------------------------------------------------------
110870
+ DocumentTest: test_will_have_object_with_boolean?_method
110871
+ --------------------------------------------------------
110872
+ ------------------------------------------------
110873
+ DocumentTest: test_will_have_only_set_properties
110874
+ ------------------------------------------------
110875
+ ----------------------------------------------------------------
110876
+ DocumentTest: test_with_default_will_return_default_value_on_nil
110877
+ ----------------------------------------------------------------
110878
+ -------------------------------------------------------------
110879
+ RequestTest: test_raises_error_when_intialized_without_a_host
110880
+ -------------------------------------------------------------
110881
+ -------------------------------------------------------------
110882
+ RequestTest: test_raises_error_when_intialized_without_a_name
110883
+ -------------------------------------------------------------
110884
+ -------------------------------------------------------------
110885
+ RequestTest: test_raises_error_when_intialized_without_a_port
110886
+ -------------------------------------------------------------
110887
+ --------------------------------------------------
110888
+ BulkDocumentTest: test_adding_document_to_bulk_doc
110889
+ --------------------------------------------------
110890
+ -----------------------------------------------------------------
110891
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
110892
+ -----------------------------------------------------------------
110893
+ ------------------------------------------------------------------
110894
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
110895
+ ------------------------------------------------------------------
110896
+ ----------------------------------------------------------------------
110897
+ CollectionTest: test_count_returns_the_number_of_objects_in_collection
110898
+ ----------------------------------------------------------------------
110899
+ -------------------------------------
110900
+ CollectionTest: test_each_returns_nil
110901
+ -------------------------------------
110902
+ -----------------------------------------------------------------------
110903
+ CollectionTest: test_map_accepts_a_block_and_returns_the_correct_values
110904
+ -----------------------------------------------------------------------
110905
+ ----------------------------------------------
110906
+ CollectionTest: test_map_returns_an_enumerator
110907
+ ----------------------------------------------
110908
+ ------------------------------------------
110909
+ CollectionTest: test_to_a_returns_an_array
110910
+ ------------------------------------------
110911
+ -----------------------------------------------------
110912
+ CollectionTest: test_to_json_returns_a_string_of_json
110913
+ -----------------------------------------------------
110914
+ ----------------------------------------------------------------------
110915
+ CollectionTest: test_update_attributes_will_change_expected_attributes
110916
+ ----------------------------------------------------------------------
110917
+ ----------------------------------------------------------------------------------
110918
+ CollectionTest: test_update_attributes_will_raise_exception_if_property_is_missing
110919
+ ----------------------------------------------------------------------------------
110920
+ --------------------------------------------
110921
+ CollectionTest: test_update_empty_attributes
110922
+ --------------------------------------------
110923
+ ---------------------------------------------------------------------
110924
+ ConfigurationTest: test_configure_allows_for_changes_to_configuration
110925
+ ---------------------------------------------------------------------
110926
+ --------------------------------------------------------------
110927
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
110928
+ --------------------------------------------------------------
110929
+ ----------------------------------------------------------
110930
+ DocumentTest: test_accessors_work_as_expected_after_reload
110931
+ ----------------------------------------------------------
110932
+ -------------------------------------------
110933
+ DocumentTest: test_all_first_returns_FooBar
110934
+ -------------------------------------------
110935
+ ------------------------------------------
110936
+ DocumentTest: test_all_last_returns_FooBar
110937
+ ------------------------------------------
110938
+ --------------------------------------
110939
+ DocumentTest: test_all_will_get_2_docs
110940
+ --------------------------------------
110941
+ ------------------------------------------------
110942
+ DocumentTest: test_all_will_get_FooBar_documents
110943
+ ------------------------------------------------
110944
+ --------------------------------------------------------------------------------
110945
+ DocumentTest: test_attach_file!_will_add_a_standalone_attachment_to_the_document
110946
+ --------------------------------------------------------------------------------
110947
+ --------------------------------------------------------------------------
110948
+ DocumentTest: test_attach_file!_will_add_an_inline_attachment_if_specified
110949
+ --------------------------------------------------------------------------
110950
+ ------------------------------------------
110951
+ DocumentTest: test_can_find_with_fixnum_id
110952
+ ------------------------------------------
110953
+ ----------------------------------------------
110954
+ DocumentTest: test_can_save_without_timestamps
110955
+ ----------------------------------------------
110956
+ ---------------------------------------------
110957
+ DocumentTest: test_created_at_is_current_time
110958
+ ---------------------------------------------
110959
+ ------------------------------------
110960
+ DocumentTest: test_created_at_is_set
110961
+ ------------------------------------
110962
+ -------------------------------------------------------------
110963
+ DocumentTest: test_default_objects_are_not_the_same_in_memory
110964
+ -------------------------------------------------------------
110965
+ --------------------------------------------------------------------------------
110966
+ DocumentTest: test_default_properties_do_not_update_the_class_default_properties
110967
+ --------------------------------------------------------------------------------
110968
+ ---------------------------------------------------------
110969
+ DocumentTest: test_default_should_be_overridden_by_params
110970
+ ---------------------------------------------------------
110971
+ ------------------------------------------------------
110972
+ DocumentTest: test_default_should_populate_before_save
110973
+ ------------------------------------------------------
110974
+ ----------------------------------------------
110975
+ DocumentTest: test_default_will_be_avoerwriten
110976
+ ----------------------------------------------
110977
+ --------------------------------------------
110978
+ DocumentTest: test_delete_method_on_document
110979
+ --------------------------------------------
110980
+ ---------------------------------------------------------------
110981
+ DocumentTest: test_doc_and_method_and_instance_var_are_the_same
110982
+ ---------------------------------------------------------------
110983
+ ------------------------------------------------
110984
+ DocumentTest: test_empty_find_should_raise_error
110985
+ ------------------------------------------------
110986
+ ------------------------------------------------------------
110987
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
110988
+ ------------------------------------------------------------
110989
+ --------------------------------------------------
110990
+ DocumentTest: test_find_will_get_a_FooBar_document
110991
+ --------------------------------------------------
110992
+ ----------------------------------------------------------------
110993
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
110994
+ ----------------------------------------------------------------
110995
+ --------------------------------------------------------
110996
+ DocumentTest: test_first_class_method_returns_collection
110997
+ --------------------------------------------------------
110998
+ ---------------------------------------------------------
110999
+ DocumentTest: test_first_class_method_returns_single_item
111000
+ ---------------------------------------------------------
111001
+ ---------------------------------------------
111002
+ DocumentTest: test_getting_not_found_document
111003
+ ---------------------------------------------
111004
+ -------------------------------------------------------
111005
+ DocumentTest: test_last_class_method_returns_collection
111006
+ -------------------------------------------------------
111007
+ --------------------------------------------------------
111008
+ DocumentTest: test_last_class_method_returns_single_item
111009
+ --------------------------------------------------------
111010
+ -------------------------------------------------
111011
+ DocumentTest: test_multi_response_with_right_data
111012
+ -------------------------------------------------
111013
+ ---------------------------------------
111014
+ DocumentTest: test_new_document_have_id
111015
+ ---------------------------------------
111016
+ -------------------------------------------------------------------
111017
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_strings
111018
+ -------------------------------------------------------------------
111019
+ -------------------------------------------------------------------
111020
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
111021
+ -------------------------------------------------------------------
111022
+ ------------------------------------------
111023
+ DocumentTest: test_new_document_with_no_id
111024
+ ------------------------------------------
111025
+ -----------------------------------------
111026
+ DocumentTest: test_new_in_memory_document
111027
+ -----------------------------------------
111028
+ -----------------------------------------------------
111029
+ DocumentTest: test_new_object_from_inhereted_document
111030
+ -----------------------------------------------------
111031
+ ------------------------------
111032
+ DocumentTest: test_nil_default
111033
+ ------------------------------
111034
+ ------------------------------------------------------------------
111035
+ DocumentTest: test_persisted?_returns_false_if__rev_is_not_present
111036
+ ------------------------------------------------------------------
111037
+ -------------------------------------------------------------
111038
+ DocumentTest: test_persisted?_returns_true_if__rev_is_present
111039
+ -------------------------------------------------------------
111040
+ ------------------------------------------------------------------
111041
+ DocumentTest: test_property_writes_work_correctly_with_pipe_equals
111042
+ ------------------------------------------------------------------
111043
+ ------------------------------------
111044
+ DocumentTest: test_query_custom_view
111045
+ ------------------------------------
111046
+ ----------------------------------------------
111047
+ DocumentTest: test_query_custom_view_collation
111048
+ ----------------------------------------------
111049
+ --------------------------------------------------------------
111050
+ DocumentTest: test_reader_:bar_is_not_calling_the_writer_:bar=
111051
+ --------------------------------------------------------------
111052
+ -----------------------------------------------------------------
111053
+ DocumentTest: test_reload_reloads_the_doc_attribute_from_database
111054
+ -----------------------------------------------------------------
111055
+ ------------------------------------------------------------------
111056
+ DocumentTest: test_save_returns_false_for_invalid_document_on_save
111057
+ ------------------------------------------------------------------
111058
+ -----------------------------------------------------------------------------
111059
+ DocumentTest: test_save_succeeds_for_invalid_document_if_skipping_validations
111060
+ -----------------------------------------------------------------------------
111061
+ ---------------------------------
111062
+ DocumentTest: test_set_updated_at
111063
+ ---------------------------------
111064
+ ----------------------------------------------------------------------------
111065
+ DocumentTest: test_setting_on_instance_value_does_set_it_for_other_instances
111066
+ ----------------------------------------------------------------------------
111067
+ ------------------------------------------
111068
+ DocumentTest: test_soft_delete_on_document
111069
+ ------------------------------------------
111070
+ -----------------------------------------------------------------------
111071
+ DocumentTest: test_subclass_raises_DocumentInvalidError_if_valid?_fails
111072
+ -----------------------------------------------------------------------
111073
+ ----------------------------------------------------
111074
+ DocumentTest: test_trying_to_update_invalid_property
111075
+ ----------------------------------------------------
111076
+ ---------------------------------------------
111077
+ DocumentTest: test_update_document_properties
111078
+ ---------------------------------------------
111079
+ ------------------------------------------------------
111080
+ DocumentTest: test_update_document_propertys_with_bang
111081
+ ------------------------------------------------------
111082
+ -------------------------------------------
111083
+ DocumentTest: test_will_have_key_properties
111084
+ -------------------------------------------
111085
+ --------------------------------------------------------
111086
+ DocumentTest: test_will_have_object_with_DateTime_method
111087
+ --------------------------------------------------------
111088
+ ----------------------------------------------------
111089
+ DocumentTest: test_will_have_object_with_Date_method
111090
+ ----------------------------------------------------
111091
+ ----------------------------------------------------
111092
+ DocumentTest: test_will_have_object_with_Time_method
111093
+ ----------------------------------------------------
111094
+ --------------------------------------------------------
111095
+ DocumentTest: test_will_have_object_with_boolean?_method
111096
+ --------------------------------------------------------
111097
+ ------------------------------------------------
111098
+ DocumentTest: test_will_have_only_set_properties
111099
+ ------------------------------------------------
111100
+ ----------------------------------------------------------------
111101
+ DocumentTest: test_with_default_will_return_default_value_on_nil
111102
+ ----------------------------------------------------------------
111103
+ -------------------------------------------------------------
111104
+ RequestTest: test_raises_error_when_intialized_without_a_host
111105
+ -------------------------------------------------------------
111106
+ -------------------------------------------------------------
111107
+ RequestTest: test_raises_error_when_intialized_without_a_name
111108
+ -------------------------------------------------------------
111109
+ -------------------------------------------------------------
111110
+ RequestTest: test_raises_error_when_intialized_without_a_port
111111
+ -------------------------------------------------------------
111112
+ --------------------------------------------------
111113
+ BulkDocumentTest: test_adding_document_to_bulk_doc
111114
+ --------------------------------------------------
111115
+ -----------------------------------------------------------------
111116
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
111117
+ -----------------------------------------------------------------
111118
+ ------------------------------------------------------------------
111119
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
111120
+ ------------------------------------------------------------------
111121
+ ----------------------------------------------------------------------
111122
+ CollectionTest: test_count_returns_the_number_of_objects_in_collection
111123
+ ----------------------------------------------------------------------
111124
+ -------------------------------------
111125
+ CollectionTest: test_each_returns_nil
111126
+ -------------------------------------
111127
+ -----------------------------------------------------------------------
111128
+ CollectionTest: test_map_accepts_a_block_and_returns_the_correct_values
111129
+ -----------------------------------------------------------------------
111130
+ ----------------------------------------------
111131
+ CollectionTest: test_map_returns_an_enumerator
111132
+ ----------------------------------------------
111133
+ ------------------------------------------
111134
+ CollectionTest: test_to_a_returns_an_array
111135
+ ------------------------------------------
111136
+ -----------------------------------------------------
111137
+ CollectionTest: test_to_json_returns_a_string_of_json
111138
+ -----------------------------------------------------
111139
+ ----------------------------------------------------------------------
111140
+ CollectionTest: test_update_attributes_will_change_expected_attributes
111141
+ ----------------------------------------------------------------------
111142
+ ----------------------------------------------------------------------------------
111143
+ CollectionTest: test_update_attributes_will_raise_exception_if_property_is_missing
111144
+ ----------------------------------------------------------------------------------
111145
+ --------------------------------------------
111146
+ CollectionTest: test_update_empty_attributes
111147
+ --------------------------------------------
111148
+ ---------------------------------------------------------------------
111149
+ ConfigurationTest: test_configure_allows_for_changes_to_configuration
111150
+ ---------------------------------------------------------------------
111151
+ --------------------------------------------------------------
111152
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
111153
+ --------------------------------------------------------------
111154
+ ----------------------------------------------------------
111155
+ DocumentTest: test_accessors_work_as_expected_after_reload
111156
+ ----------------------------------------------------------
111157
+ -------------------------------------------
111158
+ DocumentTest: test_all_first_returns_FooBar
111159
+ -------------------------------------------
111160
+ ------------------------------------------
111161
+ DocumentTest: test_all_last_returns_FooBar
111162
+ ------------------------------------------
111163
+ --------------------------------------
111164
+ DocumentTest: test_all_will_get_2_docs
111165
+ --------------------------------------
111166
+ ------------------------------------------------
111167
+ DocumentTest: test_all_will_get_FooBar_documents
111168
+ ------------------------------------------------
111169
+ --------------------------------------------------------------------------------
111170
+ DocumentTest: test_attach_file!_will_add_a_standalone_attachment_to_the_document
111171
+ --------------------------------------------------------------------------------
111172
+ --------------------------------------------------------------------------
111173
+ DocumentTest: test_attach_file!_will_add_an_inline_attachment_if_specified
111174
+ --------------------------------------------------------------------------
111175
+ ------------------------------------------
111176
+ DocumentTest: test_can_find_with_fixnum_id
111177
+ ------------------------------------------
111178
+ ----------------------------------------------
111179
+ DocumentTest: test_can_save_without_timestamps
111180
+ ----------------------------------------------
111181
+ ---------------------------------------------
111182
+ DocumentTest: test_created_at_is_current_time
111183
+ ---------------------------------------------
111184
+ ------------------------------------
111185
+ DocumentTest: test_created_at_is_set
111186
+ ------------------------------------
111187
+ -------------------------------------------------------------
111188
+ DocumentTest: test_default_objects_are_not_the_same_in_memory
111189
+ -------------------------------------------------------------
111190
+ --------------------------------------------------------------------------------
111191
+ DocumentTest: test_default_properties_do_not_update_the_class_default_properties
111192
+ --------------------------------------------------------------------------------
111193
+ ---------------------------------------------------------
111194
+ DocumentTest: test_default_should_be_overridden_by_params
111195
+ ---------------------------------------------------------
111196
+ ------------------------------------------------------
111197
+ DocumentTest: test_default_should_populate_before_save
111198
+ ------------------------------------------------------
111199
+ ----------------------------------------------
111200
+ DocumentTest: test_default_will_be_avoerwriten
111201
+ ----------------------------------------------
111202
+ --------------------------------------------
111203
+ DocumentTest: test_delete_method_on_document
111204
+ --------------------------------------------
111205
+ ---------------------------------------------------------------
111206
+ DocumentTest: test_doc_and_method_and_instance_var_are_the_same
111207
+ ---------------------------------------------------------------
111208
+ ------------------------------------------------
111209
+ DocumentTest: test_empty_find_should_raise_error
111210
+ ------------------------------------------------
111211
+ ------------------------------------------------------------
111212
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
111213
+ ------------------------------------------------------------
111214
+ --------------------------------------------------
111215
+ DocumentTest: test_find_will_get_a_FooBar_document
111216
+ --------------------------------------------------
111217
+ ----------------------------------------------------------------
111218
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
111219
+ ----------------------------------------------------------------
111220
+ --------------------------------------------------------
111221
+ DocumentTest: test_first_class_method_returns_collection
111222
+ --------------------------------------------------------
111223
+ ---------------------------------------------------------
111224
+ DocumentTest: test_first_class_method_returns_single_item
111225
+ ---------------------------------------------------------
111226
+ ---------------------------------------------
111227
+ DocumentTest: test_getting_not_found_document
111228
+ ---------------------------------------------
111229
+ -------------------------------------------------------
111230
+ DocumentTest: test_last_class_method_returns_collection
111231
+ -------------------------------------------------------
111232
+ --------------------------------------------------------
111233
+ DocumentTest: test_last_class_method_returns_single_item
111234
+ --------------------------------------------------------
111235
+ -------------------------------------------------
111236
+ DocumentTest: test_multi_response_with_right_data
111237
+ -------------------------------------------------
111238
+ ---------------------------------------
111239
+ DocumentTest: test_new_document_have_id
111240
+ ---------------------------------------
111241
+ -------------------------------------------------------------------
111242
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_strings
111243
+ -------------------------------------------------------------------
111244
+ -------------------------------------------------------------------
111245
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
111246
+ -------------------------------------------------------------------
111247
+ ------------------------------------------
111248
+ DocumentTest: test_new_document_with_no_id
111249
+ ------------------------------------------
111250
+ -----------------------------------------
111251
+ DocumentTest: test_new_in_memory_document
111252
+ -----------------------------------------
111253
+ -----------------------------------------------------
111254
+ DocumentTest: test_new_object_from_inhereted_document
111255
+ -----------------------------------------------------
111256
+ ------------------------------
111257
+ DocumentTest: test_nil_default
111258
+ ------------------------------
111259
+ ------------------------------------------------------------------
111260
+ DocumentTest: test_persisted?_returns_false_if__rev_is_not_present
111261
+ ------------------------------------------------------------------
111262
+ -------------------------------------------------------------
111263
+ DocumentTest: test_persisted?_returns_true_if__rev_is_present
111264
+ -------------------------------------------------------------
111265
+ ------------------------------------------------------------------
111266
+ DocumentTest: test_property_writes_work_correctly_with_pipe_equals
111267
+ ------------------------------------------------------------------
111268
+ ------------------------------------
111269
+ DocumentTest: test_query_custom_view
111270
+ ------------------------------------
111271
+ ----------------------------------------------
111272
+ DocumentTest: test_query_custom_view_collation
111273
+ ----------------------------------------------
111274
+ --------------------------------------------------------------
111275
+ DocumentTest: test_reader_:bar_is_not_calling_the_writer_:bar=
111276
+ --------------------------------------------------------------
111277
+ -----------------------------------------------------------------
111278
+ DocumentTest: test_reload_reloads_the_doc_attribute_from_database
111279
+ -----------------------------------------------------------------
111280
+ ------------------------------------------------------------------
111281
+ DocumentTest: test_save_returns_false_for_invalid_document_on_save
111282
+ ------------------------------------------------------------------
111283
+ -----------------------------------------------------------------------------
111284
+ DocumentTest: test_save_succeeds_for_invalid_document_if_skipping_validations
111285
+ -----------------------------------------------------------------------------
111286
+ ---------------------------------
111287
+ DocumentTest: test_set_updated_at
111288
+ ---------------------------------
111289
+ ----------------------------------------------------------------------------
111290
+ DocumentTest: test_setting_on_instance_value_does_set_it_for_other_instances
111291
+ ----------------------------------------------------------------------------
111292
+ ------------------------------------------
111293
+ DocumentTest: test_soft_delete_on_document
111294
+ ------------------------------------------
111295
+ -----------------------------------------------------------------------
111296
+ DocumentTest: test_subclass_raises_DocumentInvalidError_if_valid?_fails
111297
+ -----------------------------------------------------------------------
111298
+ ----------------------------------------------------
111299
+ DocumentTest: test_trying_to_update_invalid_property
111300
+ ----------------------------------------------------
111301
+ ---------------------------------------------
111302
+ DocumentTest: test_update_document_properties
111303
+ ---------------------------------------------
111304
+ ------------------------------------------------------
111305
+ DocumentTest: test_update_document_propertys_with_bang
111306
+ ------------------------------------------------------
111307
+ -------------------------------------------
111308
+ DocumentTest: test_will_have_key_properties
111309
+ -------------------------------------------
111310
+ --------------------------------------------------------
111311
+ DocumentTest: test_will_have_object_with_DateTime_method
111312
+ --------------------------------------------------------
111313
+ ----------------------------------------------------
111314
+ DocumentTest: test_will_have_object_with_Date_method
111315
+ ----------------------------------------------------
111316
+ ----------------------------------------------------
111317
+ DocumentTest: test_will_have_object_with_Time_method
111318
+ ----------------------------------------------------
111319
+ --------------------------------------------------------
111320
+ DocumentTest: test_will_have_object_with_boolean?_method
111321
+ --------------------------------------------------------
111322
+ ------------------------------------------------
111323
+ DocumentTest: test_will_have_only_set_properties
111324
+ ------------------------------------------------
111325
+ ----------------------------------------------------------------
111326
+ DocumentTest: test_with_default_will_return_default_value_on_nil
111327
+ ----------------------------------------------------------------
111328
+ -------------------------------------------------------------
111329
+ RequestTest: test_raises_error_when_intialized_without_a_host
111330
+ -------------------------------------------------------------
111331
+ -------------------------------------------------------------
111332
+ RequestTest: test_raises_error_when_intialized_without_a_name
111333
+ -------------------------------------------------------------
111334
+ -------------------------------------------------------------
111335
+ RequestTest: test_raises_error_when_intialized_without_a_port
111336
+ -------------------------------------------------------------
111337
+ --------------------------------------------------
111338
+ BulkDocumentTest: test_adding_document_to_bulk_doc
111339
+ --------------------------------------------------
111340
+ -----------------------------------------------------------------
111341
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
111342
+ -----------------------------------------------------------------
111343
+ ------------------------------------------------------------------
111344
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
111345
+ ------------------------------------------------------------------
111346
+ ----------------------------------------------------------------------
111347
+ CollectionTest: test_count_returns_the_number_of_objects_in_collection
111348
+ ----------------------------------------------------------------------
111349
+ -------------------------------------
111350
+ CollectionTest: test_each_returns_nil
111351
+ -------------------------------------
111352
+ -----------------------------------------------------------------------
111353
+ CollectionTest: test_map_accepts_a_block_and_returns_the_correct_values
111354
+ -----------------------------------------------------------------------
111355
+ ----------------------------------------------
111356
+ CollectionTest: test_map_returns_an_enumerator
111357
+ ----------------------------------------------
111358
+ ------------------------------------------
111359
+ CollectionTest: test_to_a_returns_an_array
111360
+ ------------------------------------------
111361
+ -----------------------------------------------------
111362
+ CollectionTest: test_to_json_returns_a_string_of_json
111363
+ -----------------------------------------------------
111364
+ ----------------------------------------------------------------------
111365
+ CollectionTest: test_update_attributes_will_change_expected_attributes
111366
+ ----------------------------------------------------------------------
111367
+ ----------------------------------------------------------------------------------
111368
+ CollectionTest: test_update_attributes_will_raise_exception_if_property_is_missing
111369
+ ----------------------------------------------------------------------------------
111370
+ --------------------------------------------
111371
+ CollectionTest: test_update_empty_attributes
111372
+ --------------------------------------------
111373
+ ---------------------------------------------------------------------
111374
+ ConfigurationTest: test_configure_allows_for_changes_to_configuration
111375
+ ---------------------------------------------------------------------
111376
+ --------------------------------------------------------------
111377
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
111378
+ --------------------------------------------------------------
111379
+ ----------------------------------------------------------
111380
+ DocumentTest: test_accessors_work_as_expected_after_reload
111381
+ ----------------------------------------------------------
111382
+ -------------------------------------------
111383
+ DocumentTest: test_all_first_returns_FooBar
111384
+ -------------------------------------------
111385
+ ------------------------------------------
111386
+ DocumentTest: test_all_last_returns_FooBar
111387
+ ------------------------------------------
111388
+ --------------------------------------
111389
+ DocumentTest: test_all_will_get_2_docs
111390
+ --------------------------------------
111391
+ ------------------------------------------------
111392
+ DocumentTest: test_all_will_get_FooBar_documents
111393
+ ------------------------------------------------
111394
+ --------------------------------------------------------------------------------
111395
+ DocumentTest: test_attach_file!_will_add_a_standalone_attachment_to_the_document
111396
+ --------------------------------------------------------------------------------
111397
+ --------------------------------------------------------------------------
111398
+ DocumentTest: test_attach_file!_will_add_an_inline_attachment_if_specified
111399
+ --------------------------------------------------------------------------
111400
+ ------------------------------------------
111401
+ DocumentTest: test_can_find_with_fixnum_id
111402
+ ------------------------------------------
111403
+ ----------------------------------------------
111404
+ DocumentTest: test_can_save_without_timestamps
111405
+ ----------------------------------------------
111406
+ ---------------------------------------------
111407
+ DocumentTest: test_created_at_is_current_time
111408
+ ---------------------------------------------
111409
+ ------------------------------------
111410
+ DocumentTest: test_created_at_is_set
111411
+ ------------------------------------
111412
+ -------------------------------------------------------------
111413
+ DocumentTest: test_default_objects_are_not_the_same_in_memory
111414
+ -------------------------------------------------------------
111415
+ --------------------------------------------------------------------------------
111416
+ DocumentTest: test_default_properties_do_not_update_the_class_default_properties
111417
+ --------------------------------------------------------------------------------
111418
+ ---------------------------------------------------------
111419
+ DocumentTest: test_default_should_be_overridden_by_params
111420
+ ---------------------------------------------------------
111421
+ ------------------------------------------------------
111422
+ DocumentTest: test_default_should_populate_before_save
111423
+ ------------------------------------------------------
111424
+ ----------------------------------------------
111425
+ DocumentTest: test_default_will_be_avoerwriten
111426
+ ----------------------------------------------
111427
+ --------------------------------------------
111428
+ DocumentTest: test_delete_method_on_document
111429
+ --------------------------------------------
111430
+ ---------------------------------------------------------------
111431
+ DocumentTest: test_doc_and_method_and_instance_var_are_the_same
111432
+ ---------------------------------------------------------------
111433
+ ------------------------------------------------
111434
+ DocumentTest: test_empty_find_should_raise_error
111435
+ ------------------------------------------------
111436
+ ------------------------------------------------------------
111437
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
111438
+ ------------------------------------------------------------
111439
+ --------------------------------------------------
111440
+ DocumentTest: test_find_will_get_a_FooBar_document
111441
+ --------------------------------------------------
111442
+ ----------------------------------------------------------------
111443
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
111444
+ ----------------------------------------------------------------
111445
+ --------------------------------------------------------
111446
+ DocumentTest: test_first_class_method_returns_collection
111447
+ --------------------------------------------------------
111448
+ ---------------------------------------------------------
111449
+ DocumentTest: test_first_class_method_returns_single_item
111450
+ ---------------------------------------------------------
111451
+ ---------------------------------------------
111452
+ DocumentTest: test_getting_not_found_document
111453
+ ---------------------------------------------
111454
+ -------------------------------------------------------
111455
+ DocumentTest: test_last_class_method_returns_collection
111456
+ -------------------------------------------------------
111457
+ --------------------------------------------------------
111458
+ DocumentTest: test_last_class_method_returns_single_item
111459
+ --------------------------------------------------------
111460
+ -------------------------------------------------
111461
+ DocumentTest: test_multi_response_with_right_data
111462
+ -------------------------------------------------
111463
+ ---------------------------------------
111464
+ DocumentTest: test_new_document_have_id
111465
+ ---------------------------------------
111466
+ -------------------------------------------------------------------
111467
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_strings
111468
+ -------------------------------------------------------------------
111469
+ -------------------------------------------------------------------
111470
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
111471
+ -------------------------------------------------------------------
111472
+ ------------------------------------------
111473
+ DocumentTest: test_new_document_with_no_id
111474
+ ------------------------------------------
111475
+ -----------------------------------------
111476
+ DocumentTest: test_new_in_memory_document
111477
+ -----------------------------------------
111478
+ -----------------------------------------------------
111479
+ DocumentTest: test_new_object_from_inhereted_document
111480
+ -----------------------------------------------------
111481
+ ------------------------------
111482
+ DocumentTest: test_nil_default
111483
+ ------------------------------
111484
+ ------------------------------------------------------------------
111485
+ DocumentTest: test_persisted?_returns_false_if__rev_is_not_present
111486
+ ------------------------------------------------------------------
111487
+ -------------------------------------------------------------
111488
+ DocumentTest: test_persisted?_returns_true_if__rev_is_present
111489
+ -------------------------------------------------------------
111490
+ ------------------------------------------------------------------
111491
+ DocumentTest: test_property_writes_work_correctly_with_pipe_equals
111492
+ ------------------------------------------------------------------
111493
+ ------------------------------------
111494
+ DocumentTest: test_query_custom_view
111495
+ ------------------------------------
111496
+ ----------------------------------------------
111497
+ DocumentTest: test_query_custom_view_collation
111498
+ ----------------------------------------------
111499
+ --------------------------------------------------------------
111500
+ DocumentTest: test_reader_:bar_is_not_calling_the_writer_:bar=
111501
+ --------------------------------------------------------------
111502
+ -----------------------------------------------------------------
111503
+ DocumentTest: test_reload_reloads_the_doc_attribute_from_database
111504
+ -----------------------------------------------------------------
111505
+ ------------------------------------------------------------------
111506
+ DocumentTest: test_save_returns_false_for_invalid_document_on_save
111507
+ ------------------------------------------------------------------
111508
+ -----------------------------------------------------------------------------
111509
+ DocumentTest: test_save_succeeds_for_invalid_document_if_skipping_validations
111510
+ -----------------------------------------------------------------------------
111511
+ ---------------------------------
111512
+ DocumentTest: test_set_updated_at
111513
+ ---------------------------------
111514
+ ----------------------------------------------------------------------------
111515
+ DocumentTest: test_setting_on_instance_value_does_set_it_for_other_instances
111516
+ ----------------------------------------------------------------------------
111517
+ ------------------------------------------
111518
+ DocumentTest: test_soft_delete_on_document
111519
+ ------------------------------------------
111520
+ -----------------------------------------------------------------------
111521
+ DocumentTest: test_subclass_raises_DocumentInvalidError_if_valid?_fails
111522
+ -----------------------------------------------------------------------
111523
+ ----------------------------------------------------
111524
+ DocumentTest: test_trying_to_update_invalid_property
111525
+ ----------------------------------------------------
111526
+ ---------------------------------------------
111527
+ DocumentTest: test_update_document_properties
111528
+ ---------------------------------------------
111529
+ ------------------------------------------------------
111530
+ DocumentTest: test_update_document_propertys_with_bang
111531
+ ------------------------------------------------------
111532
+ -------------------------------------------
111533
+ DocumentTest: test_will_have_key_properties
111534
+ -------------------------------------------
111535
+ --------------------------------------------------------
111536
+ DocumentTest: test_will_have_object_with_DateTime_method
111537
+ --------------------------------------------------------
111538
+ ----------------------------------------------------
111539
+ DocumentTest: test_will_have_object_with_Date_method
111540
+ ----------------------------------------------------
111541
+ ----------------------------------------------------
111542
+ DocumentTest: test_will_have_object_with_Time_method
111543
+ ----------------------------------------------------
111544
+ --------------------------------------------------------
111545
+ DocumentTest: test_will_have_object_with_boolean?_method
111546
+ --------------------------------------------------------
111547
+ ------------------------------------------------
111548
+ DocumentTest: test_will_have_only_set_properties
111549
+ ------------------------------------------------
111550
+ ----------------------------------------------------------------
111551
+ DocumentTest: test_with_default_will_return_default_value_on_nil
111552
+ ----------------------------------------------------------------
111553
+ -------------------------------------------------------------
111554
+ RequestTest: test_raises_error_when_intialized_without_a_host
111555
+ -------------------------------------------------------------
111556
+ -------------------------------------------------------------
111557
+ RequestTest: test_raises_error_when_intialized_without_a_name
111558
+ -------------------------------------------------------------
111559
+ -------------------------------------------------------------
111560
+ RequestTest: test_raises_error_when_intialized_without_a_port
111561
+ -------------------------------------------------------------
111562
+ --------------------------------------------------
111563
+ BulkDocumentTest: test_adding_document_to_bulk_doc
111564
+ --------------------------------------------------
111565
+ -----------------------------------------------------------------
111566
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
111567
+ -----------------------------------------------------------------
111568
+ ------------------------------------------------------------------
111569
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
111570
+ ------------------------------------------------------------------
111571
+ ----------------------------------------------------------------------
111572
+ CollectionTest: test_count_returns_the_number_of_objects_in_collection
111573
+ ----------------------------------------------------------------------
111574
+ -------------------------------------
111575
+ CollectionTest: test_each_returns_nil
111576
+ -------------------------------------
111577
+ -----------------------------------------------------------------------
111578
+ CollectionTest: test_map_accepts_a_block_and_returns_the_correct_values
111579
+ -----------------------------------------------------------------------
111580
+ ----------------------------------------------
111581
+ CollectionTest: test_map_returns_an_enumerator
111582
+ ----------------------------------------------
111583
+ ------------------------------------------
111584
+ CollectionTest: test_to_a_returns_an_array
111585
+ ------------------------------------------
111586
+ -----------------------------------------------------
111587
+ CollectionTest: test_to_json_returns_a_string_of_json
111588
+ -----------------------------------------------------
111589
+ ----------------------------------------------------------------------
111590
+ CollectionTest: test_update_attributes_will_change_expected_attributes
111591
+ ----------------------------------------------------------------------
111592
+ ----------------------------------------------------------------------------------
111593
+ CollectionTest: test_update_attributes_will_raise_exception_if_property_is_missing
111594
+ ----------------------------------------------------------------------------------
111595
+ --------------------------------------------
111596
+ CollectionTest: test_update_empty_attributes
111597
+ --------------------------------------------
111598
+ ---------------------------------------------------------------------
111599
+ ConfigurationTest: test_configure_allows_for_changes_to_configuration
111600
+ ---------------------------------------------------------------------
111601
+ --------------------------------------------------------------
111602
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
111603
+ --------------------------------------------------------------
111604
+ ----------------------------------------------------------
111605
+ DocumentTest: test_accessors_work_as_expected_after_reload
111606
+ ----------------------------------------------------------
111607
+ -------------------------------------------
111608
+ DocumentTest: test_all_first_returns_FooBar
111609
+ -------------------------------------------
111610
+ ------------------------------------------
111611
+ DocumentTest: test_all_last_returns_FooBar
111612
+ ------------------------------------------
111613
+ --------------------------------------
111614
+ DocumentTest: test_all_will_get_2_docs
111615
+ --------------------------------------
111616
+ ------------------------------------------------
111617
+ DocumentTest: test_all_will_get_FooBar_documents
111618
+ ------------------------------------------------
111619
+ --------------------------------------------------------------------------------
111620
+ DocumentTest: test_attach_file!_will_add_a_standalone_attachment_to_the_document
111621
+ --------------------------------------------------------------------------------
111622
+ --------------------------------------------------------------------------
111623
+ DocumentTest: test_attach_file!_will_add_an_inline_attachment_if_specified
111624
+ --------------------------------------------------------------------------
111625
+ ------------------------------------------
111626
+ DocumentTest: test_can_find_with_fixnum_id
111627
+ ------------------------------------------
111628
+ ----------------------------------------------
111629
+ DocumentTest: test_can_save_without_timestamps
111630
+ ----------------------------------------------
111631
+ ---------------------------------------------
111632
+ DocumentTest: test_created_at_is_current_time
111633
+ ---------------------------------------------
111634
+ ------------------------------------
111635
+ DocumentTest: test_created_at_is_set
111636
+ ------------------------------------
111637
+ -------------------------------------------------------------
111638
+ DocumentTest: test_default_objects_are_not_the_same_in_memory
111639
+ -------------------------------------------------------------
111640
+ --------------------------------------------------------------------------------
111641
+ DocumentTest: test_default_properties_do_not_update_the_class_default_properties
111642
+ --------------------------------------------------------------------------------
111643
+ ---------------------------------------------------------
111644
+ DocumentTest: test_default_should_be_overridden_by_params
111645
+ ---------------------------------------------------------
111646
+ ------------------------------------------------------
111647
+ DocumentTest: test_default_should_populate_before_save
111648
+ ------------------------------------------------------
111649
+ ----------------------------------------------
111650
+ DocumentTest: test_default_will_be_avoerwriten
111651
+ ----------------------------------------------
111652
+ --------------------------------------------
111653
+ DocumentTest: test_delete_method_on_document
111654
+ --------------------------------------------
111655
+ ---------------------------------------------------------------
111656
+ DocumentTest: test_doc_and_method_and_instance_var_are_the_same
111657
+ ---------------------------------------------------------------
111658
+ ------------------------------------------------
111659
+ DocumentTest: test_empty_find_should_raise_error
111660
+ ------------------------------------------------
111661
+ ------------------------------------------------------------
111662
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
111663
+ ------------------------------------------------------------
111664
+ --------------------------------------------------
111665
+ DocumentTest: test_find_will_get_a_FooBar_document
111666
+ --------------------------------------------------
111667
+ ----------------------------------------------------------------
111668
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
111669
+ ----------------------------------------------------------------
111670
+ --------------------------------------------------------
111671
+ DocumentTest: test_first_class_method_returns_collection
111672
+ --------------------------------------------------------
111673
+ ---------------------------------------------------------
111674
+ DocumentTest: test_first_class_method_returns_single_item
111675
+ ---------------------------------------------------------
111676
+ ---------------------------------------------
111677
+ DocumentTest: test_getting_not_found_document
111678
+ ---------------------------------------------
111679
+ -------------------------------------------------------
111680
+ DocumentTest: test_last_class_method_returns_collection
111681
+ -------------------------------------------------------
111682
+ --------------------------------------------------------
111683
+ DocumentTest: test_last_class_method_returns_single_item
111684
+ --------------------------------------------------------
111685
+ -------------------------------------------------
111686
+ DocumentTest: test_multi_response_with_right_data
111687
+ -------------------------------------------------
111688
+ ---------------------------------------
111689
+ DocumentTest: test_new_document_have_id
111690
+ ---------------------------------------
111691
+ -------------------------------------------------------------------
111692
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_strings
111693
+ -------------------------------------------------------------------
111694
+ -------------------------------------------------------------------
111695
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
111696
+ -------------------------------------------------------------------
111697
+ ------------------------------------------
111698
+ DocumentTest: test_new_document_with_no_id
111699
+ ------------------------------------------
111700
+ -----------------------------------------
111701
+ DocumentTest: test_new_in_memory_document
111702
+ -----------------------------------------
111703
+ -----------------------------------------------------
111704
+ DocumentTest: test_new_object_from_inhereted_document
111705
+ -----------------------------------------------------
111706
+ ------------------------------
111707
+ DocumentTest: test_nil_default
111708
+ ------------------------------
111709
+ ------------------------------------------------------------------
111710
+ DocumentTest: test_persisted?_returns_false_if__rev_is_not_present
111711
+ ------------------------------------------------------------------
111712
+ -------------------------------------------------------------
111713
+ DocumentTest: test_persisted?_returns_true_if__rev_is_present
111714
+ -------------------------------------------------------------
111715
+ ------------------------------------------------------------------
111716
+ DocumentTest: test_property_writes_work_correctly_with_pipe_equals
111717
+ ------------------------------------------------------------------
111718
+ ------------------------------------
111719
+ DocumentTest: test_query_custom_view
111720
+ ------------------------------------
111721
+ ----------------------------------------------
111722
+ DocumentTest: test_query_custom_view_collation
111723
+ ----------------------------------------------
111724
+ --------------------------------------------------------------
111725
+ DocumentTest: test_reader_:bar_is_not_calling_the_writer_:bar=
111726
+ --------------------------------------------------------------
111727
+ -----------------------------------------------------------------
111728
+ DocumentTest: test_reload_reloads_the_doc_attribute_from_database
111729
+ -----------------------------------------------------------------
111730
+ ------------------------------------------------------------------
111731
+ DocumentTest: test_save_returns_false_for_invalid_document_on_save
111732
+ ------------------------------------------------------------------
111733
+ -----------------------------------------------------------------------------
111734
+ DocumentTest: test_save_succeeds_for_invalid_document_if_skipping_validations
111735
+ -----------------------------------------------------------------------------
111736
+ ---------------------------------
111737
+ DocumentTest: test_set_updated_at
111738
+ ---------------------------------
111739
+ ----------------------------------------------------------------------------
111740
+ DocumentTest: test_setting_on_instance_value_does_set_it_for_other_instances
111741
+ ----------------------------------------------------------------------------
111742
+ ------------------------------------------
111743
+ DocumentTest: test_soft_delete_on_document
111744
+ ------------------------------------------
111745
+ -----------------------------------------------------------------------
111746
+ DocumentTest: test_subclass_raises_DocumentInvalidError_if_valid?_fails
111747
+ -----------------------------------------------------------------------
111748
+ ----------------------------------------------------
111749
+ DocumentTest: test_trying_to_update_invalid_property
111750
+ ----------------------------------------------------
111751
+ ---------------------------------------------
111752
+ DocumentTest: test_update_document_properties
111753
+ ---------------------------------------------
111754
+ ------------------------------------------------------
111755
+ DocumentTest: test_update_document_propertys_with_bang
111756
+ ------------------------------------------------------
111757
+ -------------------------------------------
111758
+ DocumentTest: test_will_have_key_properties
111759
+ -------------------------------------------
111760
+ --------------------------------------------------------
111761
+ DocumentTest: test_will_have_object_with_DateTime_method
111762
+ --------------------------------------------------------
111763
+ ----------------------------------------------------
111764
+ DocumentTest: test_will_have_object_with_Date_method
111765
+ ----------------------------------------------------
111766
+ ----------------------------------------------------
111767
+ DocumentTest: test_will_have_object_with_Time_method
111768
+ ----------------------------------------------------
111769
+ --------------------------------------------------------
111770
+ DocumentTest: test_will_have_object_with_boolean?_method
111771
+ --------------------------------------------------------
111772
+ ------------------------------------------------
111773
+ DocumentTest: test_will_have_only_set_properties
111774
+ ------------------------------------------------
111775
+ ----------------------------------------------------------------
111776
+ DocumentTest: test_with_default_will_return_default_value_on_nil
111777
+ ----------------------------------------------------------------
111778
+ -------------------------------------------------------------
111779
+ RequestTest: test_raises_error_when_intialized_without_a_host
111780
+ -------------------------------------------------------------
111781
+ -------------------------------------------------------------
111782
+ RequestTest: test_raises_error_when_intialized_without_a_name
111783
+ -------------------------------------------------------------
111784
+ -------------------------------------------------------------
111785
+ RequestTest: test_raises_error_when_intialized_without_a_port
111786
+ -------------------------------------------------------------