dolly 0.8.0 → 0.8.1

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: 75e177d7633ab5a9fe9326d82fcc0504a05b402f
4
- data.tar.gz: 30f98ac5d4a153ae3d7a43c7be233ec64fe00770
3
+ metadata.gz: ec31e28ba3ea993fcc77368790c27de2eb72ed47
4
+ data.tar.gz: a0acd3b7ff6a58acc555ee5eb37788fd580aebb0
5
5
  SHA512:
6
- metadata.gz: 744afd34a3b806da45aa9ec54a6e89254424fc87a6f12b6f33f3484e068d558c1cea2821dbc751941bb0408a9e3deee91435a0383ad3c1c4f8f7ec00f6e6e07c
7
- data.tar.gz: 6cd25ce0b42fbb3ad89bea451958d9d847ce0d24a65f33ed81bfcc07f4f707bc0bbf60c6a64da984623f59e2bef150c81bf2965198d70bc37e7e10bd2a1c0062
6
+ metadata.gz: 9b9aec49a44695f4e080e8ec88c1631c11f34d767b6f91daa9fda0b9049c8298c350b24d59f2b6edb80a570154da37bbec5d1308f05f92ca161c14d3e04f8668
7
+ data.tar.gz: c30dd5b88024142efdc7b4faaab1815d5083a858e5e2cfb84913f8cae98c18646511f74a0a6a0aac6126862755349b4bc8a592fe35c560e7313449f43c3cc9ab
@@ -53,8 +53,8 @@ module Dolly
53
53
  def save
54
54
  self.doc['_id'] = self.id if self.id.present?
55
55
  self.doc['_id'] = self.class.next_id if self.doc['_id'].blank?
56
- set_created_at if respond_to? :set_created_at
57
- set_updated_at if respond_to? :set_updated_at
56
+ set_created_at if respond_to? :created_at
57
+ set_updated_at if respond_to? :updated_at
58
58
  response = database.put(id_as_resource, self.doc.to_json)
59
59
  obj = JSON::parse response.parsed_response
60
60
  doc['_rev'] = obj['rev'] if obj['rev']
@@ -128,7 +128,7 @@ module Dolly
128
128
  end
129
129
 
130
130
  def read_property name
131
- self.properties[name].value
131
+ doc[name.to_s] || self.properties[name].value
132
132
  end
133
133
 
134
134
  def _properties
data/lib/dolly/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dolly
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
@@ -32,7 +32,7 @@ class CollectionTest < ActiveSupport::TestCase
32
32
  end
33
33
 
34
34
  test 'map accepts a block and returns the correct values' do
35
- assert_equal ["Foo A", "Foo A"], @collection.map(&:foo)
35
+ assert_equal ["Foo B", "Foo A"], @collection.map(&:foo)
36
36
  end
37
37
 
38
38
  end
@@ -13,6 +13,15 @@ end
13
13
 
14
14
  class Baz < Dolly::Document; end
15
15
 
16
+ class FooBaz < Dolly::Document
17
+ property :foo, class_name: Hash, default: {}
18
+
19
+ def add_to_foo key, value
20
+ foo[key] ||= value
21
+ save!
22
+ end
23
+ end
24
+
16
25
  class DocumentTest < ActiveSupport::TestCase
17
26
  DB_BASE_PATH = "http://localhost:5984/test".freeze
18
27
 
@@ -306,6 +315,23 @@ class DocumentTest < ActiveSupport::TestCase
306
315
  test 'persisted? returns false if _rev is not present' do
307
316
  foo = FooBar.new
308
317
  assert_equal foo.persisted?, false
318
+ assert foo.save
319
+ assert_equal foo.persisted?, true
320
+ end
321
+
322
+ test 'can save without timestamps' do
323
+ resp = {ok: true, id: "foo_bar/1", rev: "FF0000"}
324
+ FakeWeb.register_uri :put, /http:\/\/localhost:5984\/test\/foo_baz%2F.+/, body: resp.to_json
325
+ foobaz = FooBaz.new foo: {foo: :bar}
326
+ assert foobaz.save!
327
+ end
328
+
329
+ test 'property writes work correctly with pipe equals' do
330
+ resp = {ok: true, id: "foo_bar/1", rev: "FF0000"}
331
+ FakeWeb.register_uri :put, /http:\/\/localhost:5984\/test\/foo_baz%2F.+/, body: resp.to_json
332
+ foobaz = FooBaz.new foo: {'foo' => 'bar'}
333
+ foobaz.add_to_foo 'bar', 'bar'
334
+ assert_equal foobaz.foo, {'foo' => 'bar', 'bar' => 'bar'}
309
335
  end
310
336
 
311
337
  private
@@ -73651,3 +73651,1353 @@ DocumentTest: test_will_have_only_set_properties
73651
73651
  ----------------------------------------------------------------
73652
73652
  DocumentTest: test_with_default_will_return_default_value_on_nil
73653
73653
  ----------------------------------------------------------------
73654
+ --------------------------------------------------
73655
+ BulkDocumentTest: test_adding_document_to_bulk_doc
73656
+ --------------------------------------------------
73657
+ -----------------------------------------------------------------
73658
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
73659
+ -----------------------------------------------------------------
73660
+ ------------------------------------------------------------------
73661
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
73662
+ ------------------------------------------------------------------
73663
+ ----------------------------------------------------------------------
73664
+ CollectionTest: test_count_returns_the_number_of_objects_in_collection
73665
+ ----------------------------------------------------------------------
73666
+ -------------------------------------
73667
+ CollectionTest: test_each_returns_nil
73668
+ -------------------------------------
73669
+ -----------------------------------------------------------------------
73670
+ CollectionTest: test_map_accepts_a_block_and_returns_the_correct_values
73671
+ -----------------------------------------------------------------------
73672
+ ----------------------------------------------
73673
+ CollectionTest: test_map_returns_an_enumerator
73674
+ ----------------------------------------------
73675
+ ------------------------------------------
73676
+ CollectionTest: test_to_a_returns_an_array
73677
+ ------------------------------------------
73678
+ -----------------------------------------------------
73679
+ CollectionTest: test_to_json_returns_a_string_of_json
73680
+ -----------------------------------------------------
73681
+ --------------------------------------------------------------
73682
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
73683
+ --------------------------------------------------------------
73684
+ -------------------------------------------
73685
+ DocumentTest: test_all_first_returns_FooBar
73686
+ -------------------------------------------
73687
+ ------------------------------------------
73688
+ DocumentTest: test_all_last_returns_FooBar
73689
+ ------------------------------------------
73690
+ --------------------------------------
73691
+ DocumentTest: test_all_will_get_2_docs
73692
+ --------------------------------------
73693
+ ------------------------------------------------
73694
+ DocumentTest: test_all_will_get_FooBar_documents
73695
+ ------------------------------------------------
73696
+ ------------------------------------------
73697
+ DocumentTest: test_can_find_with_fixnum_id
73698
+ ------------------------------------------
73699
+ ------------------------------------
73700
+ DocumentTest: test_created_at_is_set
73701
+ ------------------------------------
73702
+ ---------------------------------------------
73703
+ DocumentTest: test_default_will_be_overwriten
73704
+ ---------------------------------------------
73705
+ --------------------------------------------
73706
+ DocumentTest: test_delete_method_on_document
73707
+ --------------------------------------------
73708
+ ------------------------------------------------
73709
+ DocumentTest: test_empty_find_should_raise_error
73710
+ ------------------------------------------------
73711
+ ------------------------------------------------------------
73712
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
73713
+ ------------------------------------------------------------
73714
+ --------------------------------------------------
73715
+ DocumentTest: test_find_will_get_a_FooBar_document
73716
+ --------------------------------------------------
73717
+ ----------------------------------------------------------------
73718
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
73719
+ ----------------------------------------------------------------
73720
+ --------------------------------------------------------
73721
+ DocumentTest: test_first_class_method_returns_collection
73722
+ --------------------------------------------------------
73723
+ ---------------------------------------------------------
73724
+ DocumentTest: test_first_class_method_returns_single_item
73725
+ ---------------------------------------------------------
73726
+ ---------------------------------------------
73727
+ DocumentTest: test_getting_not_found_document
73728
+ ---------------------------------------------
73729
+ -------------------------------------------------------
73730
+ DocumentTest: test_last_class_method_returns_collection
73731
+ -------------------------------------------------------
73732
+ --------------------------------------------------------
73733
+ DocumentTest: test_last_class_method_returns_single_item
73734
+ --------------------------------------------------------
73735
+ -------------------------------------------------
73736
+ DocumentTest: test_multi_response_with_right_data
73737
+ -------------------------------------------------
73738
+ ---------------------------------------
73739
+ DocumentTest: test_new_document_have_id
73740
+ ---------------------------------------
73741
+ -------------------------------------------------------------------
73742
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_strings
73743
+ -------------------------------------------------------------------
73744
+ -------------------------------------------------------------------
73745
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
73746
+ -------------------------------------------------------------------
73747
+ ------------------------------------------
73748
+ DocumentTest: test_new_document_with_no_id
73749
+ ------------------------------------------
73750
+ -----------------------------------------
73751
+ DocumentTest: test_new_in_memory_document
73752
+ -----------------------------------------
73753
+ ------------------------------------------------------------------
73754
+ DocumentTest: test_persisted?_returns_false_if__rev_is_not_present
73755
+ ------------------------------------------------------------------
73756
+ -------------------------------------------------------------
73757
+ DocumentTest: test_persisted?_returns_true_if__rev_is_present
73758
+ -------------------------------------------------------------
73759
+ ------------------------------------
73760
+ DocumentTest: test_query_custom_view
73761
+ ------------------------------------
73762
+ ----------------------------------------------
73763
+ DocumentTest: test_query_custom_view_collation
73764
+ ----------------------------------------------
73765
+ --------------------------------------------------------------
73766
+ DocumentTest: test_reader_:bar_is_not_calling_the_writer_:bar=
73767
+ --------------------------------------------------------------
73768
+ ---------------------------------
73769
+ DocumentTest: test_set_updated_at
73770
+ ---------------------------------
73771
+ ------------------------------------------
73772
+ DocumentTest: test_soft_delete_on_document
73773
+ ------------------------------------------
73774
+ ----------------------------------------------------
73775
+ DocumentTest: test_trying_to_update_invalid_property
73776
+ ----------------------------------------------------
73777
+ ---------------------------------------------
73778
+ DocumentTest: test_update_document_properties
73779
+ ---------------------------------------------
73780
+ ------------------------------------------------------
73781
+ DocumentTest: test_update_document_propertys_with_bang
73782
+ ------------------------------------------------------
73783
+ -------------------------------------------
73784
+ DocumentTest: test_will_have_key_properties
73785
+ -------------------------------------------
73786
+ --------------------------------------------------------
73787
+ DocumentTest: test_will_have_object_with_DateTime_method
73788
+ --------------------------------------------------------
73789
+ ----------------------------------------------------
73790
+ DocumentTest: test_will_have_object_with_Date_method
73791
+ ----------------------------------------------------
73792
+ ----------------------------------------------------
73793
+ DocumentTest: test_will_have_object_with_Time_method
73794
+ ----------------------------------------------------
73795
+ --------------------------------------------------------
73796
+ DocumentTest: test_will_have_object_with_boolean?_method
73797
+ --------------------------------------------------------
73798
+ ------------------------------------------------
73799
+ DocumentTest: test_will_have_only_set_properties
73800
+ ------------------------------------------------
73801
+ ----------------------------------------------------------------
73802
+ DocumentTest: test_with_default_will_return_default_value_on_nil
73803
+ ----------------------------------------------------------------
73804
+ --------------------------------------------------
73805
+ BulkDocumentTest: test_adding_document_to_bulk_doc
73806
+ --------------------------------------------------
73807
+ -----------------------------------------------------------------
73808
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
73809
+ -----------------------------------------------------------------
73810
+ ------------------------------------------------------------------
73811
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
73812
+ ------------------------------------------------------------------
73813
+ ----------------------------------------------------------------------
73814
+ CollectionTest: test_count_returns_the_number_of_objects_in_collection
73815
+ ----------------------------------------------------------------------
73816
+ -------------------------------------
73817
+ CollectionTest: test_each_returns_nil
73818
+ -------------------------------------
73819
+ -----------------------------------------------------------------------
73820
+ CollectionTest: test_map_accepts_a_block_and_returns_the_correct_values
73821
+ -----------------------------------------------------------------------
73822
+ ----------------------------------------------
73823
+ CollectionTest: test_map_returns_an_enumerator
73824
+ ----------------------------------------------
73825
+ ------------------------------------------
73826
+ CollectionTest: test_to_a_returns_an_array
73827
+ ------------------------------------------
73828
+ -----------------------------------------------------
73829
+ CollectionTest: test_to_json_returns_a_string_of_json
73830
+ -----------------------------------------------------
73831
+ --------------------------------------------------------------
73832
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
73833
+ --------------------------------------------------------------
73834
+ -------------------------------------------
73835
+ DocumentTest: test_all_first_returns_FooBar
73836
+ -------------------------------------------
73837
+ ------------------------------------------
73838
+ DocumentTest: test_all_last_returns_FooBar
73839
+ ------------------------------------------
73840
+ --------------------------------------
73841
+ DocumentTest: test_all_will_get_2_docs
73842
+ --------------------------------------
73843
+ ------------------------------------------------
73844
+ DocumentTest: test_all_will_get_FooBar_documents
73845
+ ------------------------------------------------
73846
+ ------------------------------------------
73847
+ DocumentTest: test_can_find_with_fixnum_id
73848
+ ------------------------------------------
73849
+ ------------------------------------
73850
+ DocumentTest: test_created_at_is_set
73851
+ ------------------------------------
73852
+ ---------------------------------------------
73853
+ DocumentTest: test_default_will_be_overwriten
73854
+ ---------------------------------------------
73855
+ --------------------------------------------
73856
+ DocumentTest: test_delete_method_on_document
73857
+ --------------------------------------------
73858
+ ------------------------------------------------
73859
+ DocumentTest: test_empty_find_should_raise_error
73860
+ ------------------------------------------------
73861
+ ------------------------------------------------------------
73862
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
73863
+ ------------------------------------------------------------
73864
+ --------------------------------------------------
73865
+ DocumentTest: test_find_will_get_a_FooBar_document
73866
+ --------------------------------------------------
73867
+ ----------------------------------------------------------------
73868
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
73869
+ ----------------------------------------------------------------
73870
+ --------------------------------------------------------
73871
+ DocumentTest: test_first_class_method_returns_collection
73872
+ --------------------------------------------------------
73873
+ ---------------------------------------------------------
73874
+ DocumentTest: test_first_class_method_returns_single_item
73875
+ ---------------------------------------------------------
73876
+ ---------------------------------------------
73877
+ DocumentTest: test_getting_not_found_document
73878
+ ---------------------------------------------
73879
+ -------------------------------------------------------
73880
+ DocumentTest: test_last_class_method_returns_collection
73881
+ -------------------------------------------------------
73882
+ --------------------------------------------------------
73883
+ DocumentTest: test_last_class_method_returns_single_item
73884
+ --------------------------------------------------------
73885
+ -------------------------------------------------
73886
+ DocumentTest: test_multi_response_with_right_data
73887
+ -------------------------------------------------
73888
+ ---------------------------------------
73889
+ DocumentTest: test_new_document_have_id
73890
+ ---------------------------------------
73891
+ -------------------------------------------------------------------
73892
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_strings
73893
+ -------------------------------------------------------------------
73894
+ -------------------------------------------------------------------
73895
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
73896
+ -------------------------------------------------------------------
73897
+ ------------------------------------------
73898
+ DocumentTest: test_new_document_with_no_id
73899
+ ------------------------------------------
73900
+ -----------------------------------------
73901
+ DocumentTest: test_new_in_memory_document
73902
+ -----------------------------------------
73903
+ ------------------------------------------------------------------
73904
+ DocumentTest: test_persisted?_returns_false_if__rev_is_not_present
73905
+ ------------------------------------------------------------------
73906
+ -------------------------------------------------------------
73907
+ DocumentTest: test_persisted?_returns_true_if__rev_is_present
73908
+ -------------------------------------------------------------
73909
+ ------------------------------------
73910
+ DocumentTest: test_query_custom_view
73911
+ ------------------------------------
73912
+ ----------------------------------------------
73913
+ DocumentTest: test_query_custom_view_collation
73914
+ ----------------------------------------------
73915
+ --------------------------------------------------------------
73916
+ DocumentTest: test_reader_:bar_is_not_calling_the_writer_:bar=
73917
+ --------------------------------------------------------------
73918
+ ---------------------------------
73919
+ DocumentTest: test_set_updated_at
73920
+ ---------------------------------
73921
+ ------------------------------------------
73922
+ DocumentTest: test_soft_delete_on_document
73923
+ ------------------------------------------
73924
+ ----------------------------------------------------
73925
+ DocumentTest: test_trying_to_update_invalid_property
73926
+ ----------------------------------------------------
73927
+ ---------------------------------------------
73928
+ DocumentTest: test_update_document_properties
73929
+ ---------------------------------------------
73930
+ ------------------------------------------------------
73931
+ DocumentTest: test_update_document_propertys_with_bang
73932
+ ------------------------------------------------------
73933
+ -------------------------------------------
73934
+ DocumentTest: test_will_have_key_properties
73935
+ -------------------------------------------
73936
+ --------------------------------------------------------
73937
+ DocumentTest: test_will_have_object_with_DateTime_method
73938
+ --------------------------------------------------------
73939
+ ----------------------------------------------------
73940
+ DocumentTest: test_will_have_object_with_Date_method
73941
+ ----------------------------------------------------
73942
+ ----------------------------------------------------
73943
+ DocumentTest: test_will_have_object_with_Time_method
73944
+ ----------------------------------------------------
73945
+ --------------------------------------------------------
73946
+ DocumentTest: test_will_have_object_with_boolean?_method
73947
+ --------------------------------------------------------
73948
+ ------------------------------------------------
73949
+ DocumentTest: test_will_have_only_set_properties
73950
+ ------------------------------------------------
73951
+ ----------------------------------------------------------------
73952
+ DocumentTest: test_with_default_will_return_default_value_on_nil
73953
+ ----------------------------------------------------------------
73954
+ --------------------------------------------------
73955
+ BulkDocumentTest: test_adding_document_to_bulk_doc
73956
+ --------------------------------------------------
73957
+ -----------------------------------------------------------------
73958
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
73959
+ -----------------------------------------------------------------
73960
+ ------------------------------------------------------------------
73961
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
73962
+ ------------------------------------------------------------------
73963
+ ----------------------------------------------------------------------
73964
+ CollectionTest: test_count_returns_the_number_of_objects_in_collection
73965
+ ----------------------------------------------------------------------
73966
+ -------------------------------------
73967
+ CollectionTest: test_each_returns_nil
73968
+ -------------------------------------
73969
+ -----------------------------------------------------------------------
73970
+ CollectionTest: test_map_accepts_a_block_and_returns_the_correct_values
73971
+ -----------------------------------------------------------------------
73972
+ ----------------------------------------------
73973
+ CollectionTest: test_map_returns_an_enumerator
73974
+ ----------------------------------------------
73975
+ ------------------------------------------
73976
+ CollectionTest: test_to_a_returns_an_array
73977
+ ------------------------------------------
73978
+ -----------------------------------------------------
73979
+ CollectionTest: test_to_json_returns_a_string_of_json
73980
+ -----------------------------------------------------
73981
+ --------------------------------------------------------------
73982
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
73983
+ --------------------------------------------------------------
73984
+ -------------------------------------------
73985
+ DocumentTest: test_all_first_returns_FooBar
73986
+ -------------------------------------------
73987
+ ------------------------------------------
73988
+ DocumentTest: test_all_last_returns_FooBar
73989
+ ------------------------------------------
73990
+ --------------------------------------
73991
+ DocumentTest: test_all_will_get_2_docs
73992
+ --------------------------------------
73993
+ ------------------------------------------------
73994
+ DocumentTest: test_all_will_get_FooBar_documents
73995
+ ------------------------------------------------
73996
+ ------------------------------------------
73997
+ DocumentTest: test_can_find_with_fixnum_id
73998
+ ------------------------------------------
73999
+ ------------------------------------
74000
+ DocumentTest: test_created_at_is_set
74001
+ ------------------------------------
74002
+ ---------------------------------------------
74003
+ DocumentTest: test_default_will_be_overwriten
74004
+ ---------------------------------------------
74005
+ --------------------------------------------
74006
+ DocumentTest: test_delete_method_on_document
74007
+ --------------------------------------------
74008
+ ------------------------------------------------
74009
+ DocumentTest: test_empty_find_should_raise_error
74010
+ ------------------------------------------------
74011
+ ------------------------------------------------------------
74012
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
74013
+ ------------------------------------------------------------
74014
+ --------------------------------------------------
74015
+ DocumentTest: test_find_will_get_a_FooBar_document
74016
+ --------------------------------------------------
74017
+ ----------------------------------------------------------------
74018
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
74019
+ ----------------------------------------------------------------
74020
+ --------------------------------------------------------
74021
+ DocumentTest: test_first_class_method_returns_collection
74022
+ --------------------------------------------------------
74023
+ ---------------------------------------------------------
74024
+ DocumentTest: test_first_class_method_returns_single_item
74025
+ ---------------------------------------------------------
74026
+ ---------------------------------------------
74027
+ DocumentTest: test_getting_not_found_document
74028
+ ---------------------------------------------
74029
+ -------------------------------------------------------
74030
+ DocumentTest: test_last_class_method_returns_collection
74031
+ -------------------------------------------------------
74032
+ --------------------------------------------------------
74033
+ DocumentTest: test_last_class_method_returns_single_item
74034
+ --------------------------------------------------------
74035
+ -------------------------------------------------
74036
+ DocumentTest: test_multi_response_with_right_data
74037
+ -------------------------------------------------
74038
+ ---------------------------------------
74039
+ DocumentTest: test_new_document_have_id
74040
+ ---------------------------------------
74041
+ -------------------------------------------------------------------
74042
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_strings
74043
+ -------------------------------------------------------------------
74044
+ -------------------------------------------------------------------
74045
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
74046
+ -------------------------------------------------------------------
74047
+ ------------------------------------------
74048
+ DocumentTest: test_new_document_with_no_id
74049
+ ------------------------------------------
74050
+ -----------------------------------------
74051
+ DocumentTest: test_new_in_memory_document
74052
+ -----------------------------------------
74053
+ ------------------------------------------------------------------
74054
+ DocumentTest: test_persisted?_returns_false_if__rev_is_not_present
74055
+ ------------------------------------------------------------------
74056
+ -------------------------------------------------------------
74057
+ DocumentTest: test_persisted?_returns_true_if__rev_is_present
74058
+ -------------------------------------------------------------
74059
+ ------------------------------------
74060
+ DocumentTest: test_query_custom_view
74061
+ ------------------------------------
74062
+ ----------------------------------------------
74063
+ DocumentTest: test_query_custom_view_collation
74064
+ ----------------------------------------------
74065
+ --------------------------------------------------------------
74066
+ DocumentTest: test_reader_:bar_is_not_calling_the_writer_:bar=
74067
+ --------------------------------------------------------------
74068
+ ---------------------------------
74069
+ DocumentTest: test_set_updated_at
74070
+ ---------------------------------
74071
+ ------------------------------------------
74072
+ DocumentTest: test_soft_delete_on_document
74073
+ ------------------------------------------
74074
+ ----------------------------------------------------
74075
+ DocumentTest: test_trying_to_update_invalid_property
74076
+ ----------------------------------------------------
74077
+ ---------------------------------------------
74078
+ DocumentTest: test_update_document_properties
74079
+ ---------------------------------------------
74080
+ ------------------------------------------------------
74081
+ DocumentTest: test_update_document_propertys_with_bang
74082
+ ------------------------------------------------------
74083
+ -------------------------------------------
74084
+ DocumentTest: test_will_have_key_properties
74085
+ -------------------------------------------
74086
+ --------------------------------------------------------
74087
+ DocumentTest: test_will_have_object_with_DateTime_method
74088
+ --------------------------------------------------------
74089
+ ----------------------------------------------------
74090
+ DocumentTest: test_will_have_object_with_Date_method
74091
+ ----------------------------------------------------
74092
+ ----------------------------------------------------
74093
+ DocumentTest: test_will_have_object_with_Time_method
74094
+ ----------------------------------------------------
74095
+ --------------------------------------------------------
74096
+ DocumentTest: test_will_have_object_with_boolean?_method
74097
+ --------------------------------------------------------
74098
+ ------------------------------------------------
74099
+ DocumentTest: test_will_have_only_set_properties
74100
+ ------------------------------------------------
74101
+ ----------------------------------------------------------------
74102
+ DocumentTest: test_with_default_will_return_default_value_on_nil
74103
+ ----------------------------------------------------------------
74104
+ --------------------------------------------------
74105
+ BulkDocumentTest: test_adding_document_to_bulk_doc
74106
+ --------------------------------------------------
74107
+ -----------------------------------------------------------------
74108
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
74109
+ -----------------------------------------------------------------
74110
+ ------------------------------------------------------------------
74111
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
74112
+ ------------------------------------------------------------------
74113
+ ----------------------------------------------------------------------
74114
+ CollectionTest: test_count_returns_the_number_of_objects_in_collection
74115
+ ----------------------------------------------------------------------
74116
+ -------------------------------------
74117
+ CollectionTest: test_each_returns_nil
74118
+ -------------------------------------
74119
+ -----------------------------------------------------------------------
74120
+ CollectionTest: test_map_accepts_a_block_and_returns_the_correct_values
74121
+ -----------------------------------------------------------------------
74122
+ ----------------------------------------------
74123
+ CollectionTest: test_map_returns_an_enumerator
74124
+ ----------------------------------------------
74125
+ ------------------------------------------
74126
+ CollectionTest: test_to_a_returns_an_array
74127
+ ------------------------------------------
74128
+ -----------------------------------------------------
74129
+ CollectionTest: test_to_json_returns_a_string_of_json
74130
+ -----------------------------------------------------
74131
+ --------------------------------------------------------------
74132
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
74133
+ --------------------------------------------------------------
74134
+ -------------------------------------------
74135
+ DocumentTest: test_all_first_returns_FooBar
74136
+ -------------------------------------------
74137
+ ------------------------------------------
74138
+ DocumentTest: test_all_last_returns_FooBar
74139
+ ------------------------------------------
74140
+ --------------------------------------
74141
+ DocumentTest: test_all_will_get_2_docs
74142
+ --------------------------------------
74143
+ ------------------------------------------------
74144
+ DocumentTest: test_all_will_get_FooBar_documents
74145
+ ------------------------------------------------
74146
+ ------------------------------------------
74147
+ DocumentTest: test_can_find_with_fixnum_id
74148
+ ------------------------------------------
74149
+ ------------------------------------
74150
+ DocumentTest: test_created_at_is_set
74151
+ ------------------------------------
74152
+ ---------------------------------------------
74153
+ DocumentTest: test_default_will_be_overwriten
74154
+ ---------------------------------------------
74155
+ --------------------------------------------
74156
+ DocumentTest: test_delete_method_on_document
74157
+ --------------------------------------------
74158
+ ------------------------------------------------
74159
+ DocumentTest: test_empty_find_should_raise_error
74160
+ ------------------------------------------------
74161
+ ------------------------------------------------------------
74162
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
74163
+ ------------------------------------------------------------
74164
+ --------------------------------------------------
74165
+ DocumentTest: test_find_will_get_a_FooBar_document
74166
+ --------------------------------------------------
74167
+ ----------------------------------------------------------------
74168
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
74169
+ ----------------------------------------------------------------
74170
+ --------------------------------------------------------
74171
+ DocumentTest: test_first_class_method_returns_collection
74172
+ --------------------------------------------------------
74173
+ ---------------------------------------------------------
74174
+ DocumentTest: test_first_class_method_returns_single_item
74175
+ ---------------------------------------------------------
74176
+ ---------------------------------------------
74177
+ DocumentTest: test_getting_not_found_document
74178
+ ---------------------------------------------
74179
+ -------------------------------------------------------
74180
+ DocumentTest: test_last_class_method_returns_collection
74181
+ -------------------------------------------------------
74182
+ --------------------------------------------------------
74183
+ DocumentTest: test_last_class_method_returns_single_item
74184
+ --------------------------------------------------------
74185
+ -------------------------------------------------
74186
+ DocumentTest: test_multi_response_with_right_data
74187
+ -------------------------------------------------
74188
+ ---------------------------------------
74189
+ DocumentTest: test_new_document_have_id
74190
+ ---------------------------------------
74191
+ -------------------------------------------------------------------
74192
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_strings
74193
+ -------------------------------------------------------------------
74194
+ -------------------------------------------------------------------
74195
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
74196
+ -------------------------------------------------------------------
74197
+ ------------------------------------------
74198
+ DocumentTest: test_new_document_with_no_id
74199
+ ------------------------------------------
74200
+ -----------------------------------------
74201
+ DocumentTest: test_new_in_memory_document
74202
+ -----------------------------------------
74203
+ ------------------------------------------------------------------
74204
+ DocumentTest: test_persisted?_returns_false_if__rev_is_not_present
74205
+ ------------------------------------------------------------------
74206
+ -------------------------------------------------------------
74207
+ DocumentTest: test_persisted?_returns_true_if__rev_is_present
74208
+ -------------------------------------------------------------
74209
+ ------------------------------------
74210
+ DocumentTest: test_query_custom_view
74211
+ ------------------------------------
74212
+ ----------------------------------------------
74213
+ DocumentTest: test_query_custom_view_collation
74214
+ ----------------------------------------------
74215
+ --------------------------------------------------------------
74216
+ DocumentTest: test_reader_:bar_is_not_calling_the_writer_:bar=
74217
+ --------------------------------------------------------------
74218
+ ---------------------------------
74219
+ DocumentTest: test_set_updated_at
74220
+ ---------------------------------
74221
+ ------------------------------------------
74222
+ DocumentTest: test_soft_delete_on_document
74223
+ ------------------------------------------
74224
+ ----------------------------------------------------
74225
+ DocumentTest: test_trying_to_update_invalid_property
74226
+ ----------------------------------------------------
74227
+ ---------------------------------------------
74228
+ DocumentTest: test_update_document_properties
74229
+ ---------------------------------------------
74230
+ ------------------------------------------------------
74231
+ DocumentTest: test_update_document_propertys_with_bang
74232
+ ------------------------------------------------------
74233
+ -------------------------------------------
74234
+ DocumentTest: test_will_have_key_properties
74235
+ -------------------------------------------
74236
+ --------------------------------------------------------
74237
+ DocumentTest: test_will_have_object_with_DateTime_method
74238
+ --------------------------------------------------------
74239
+ ----------------------------------------------------
74240
+ DocumentTest: test_will_have_object_with_Date_method
74241
+ ----------------------------------------------------
74242
+ ----------------------------------------------------
74243
+ DocumentTest: test_will_have_object_with_Time_method
74244
+ ----------------------------------------------------
74245
+ --------------------------------------------------------
74246
+ DocumentTest: test_will_have_object_with_boolean?_method
74247
+ --------------------------------------------------------
74248
+ ------------------------------------------------
74249
+ DocumentTest: test_will_have_only_set_properties
74250
+ ------------------------------------------------
74251
+ ----------------------------------------------------------------
74252
+ DocumentTest: test_with_default_will_return_default_value_on_nil
74253
+ ----------------------------------------------------------------
74254
+ --------------------------------------------------
74255
+ BulkDocumentTest: test_adding_document_to_bulk_doc
74256
+ --------------------------------------------------
74257
+ -----------------------------------------------------------------
74258
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
74259
+ -----------------------------------------------------------------
74260
+ ------------------------------------------------------------------
74261
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
74262
+ ------------------------------------------------------------------
74263
+ ----------------------------------------------------------------------
74264
+ CollectionTest: test_count_returns_the_number_of_objects_in_collection
74265
+ ----------------------------------------------------------------------
74266
+ -------------------------------------
74267
+ CollectionTest: test_each_returns_nil
74268
+ -------------------------------------
74269
+ -----------------------------------------------------------------------
74270
+ CollectionTest: test_map_accepts_a_block_and_returns_the_correct_values
74271
+ -----------------------------------------------------------------------
74272
+ ----------------------------------------------
74273
+ CollectionTest: test_map_returns_an_enumerator
74274
+ ----------------------------------------------
74275
+ ------------------------------------------
74276
+ CollectionTest: test_to_a_returns_an_array
74277
+ ------------------------------------------
74278
+ -----------------------------------------------------
74279
+ CollectionTest: test_to_json_returns_a_string_of_json
74280
+ -----------------------------------------------------
74281
+ --------------------------------------------------------------
74282
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
74283
+ --------------------------------------------------------------
74284
+ -------------------------------------------
74285
+ DocumentTest: test_all_first_returns_FooBar
74286
+ -------------------------------------------
74287
+ ------------------------------------------
74288
+ DocumentTest: test_all_last_returns_FooBar
74289
+ ------------------------------------------
74290
+ --------------------------------------
74291
+ DocumentTest: test_all_will_get_2_docs
74292
+ --------------------------------------
74293
+ ------------------------------------------------
74294
+ DocumentTest: test_all_will_get_FooBar_documents
74295
+ ------------------------------------------------
74296
+ ------------------------------------------
74297
+ DocumentTest: test_can_find_with_fixnum_id
74298
+ ------------------------------------------
74299
+ ------------------------------------
74300
+ DocumentTest: test_created_at_is_set
74301
+ ------------------------------------
74302
+ ---------------------------------------------
74303
+ DocumentTest: test_default_will_be_overwriten
74304
+ ---------------------------------------------
74305
+ --------------------------------------------
74306
+ DocumentTest: test_delete_method_on_document
74307
+ --------------------------------------------
74308
+ ------------------------------------------------
74309
+ DocumentTest: test_empty_find_should_raise_error
74310
+ ------------------------------------------------
74311
+ ------------------------------------------------------------
74312
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
74313
+ ------------------------------------------------------------
74314
+ --------------------------------------------------
74315
+ DocumentTest: test_find_will_get_a_FooBar_document
74316
+ --------------------------------------------------
74317
+ ----------------------------------------------------------------
74318
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
74319
+ ----------------------------------------------------------------
74320
+ --------------------------------------------------------
74321
+ DocumentTest: test_first_class_method_returns_collection
74322
+ --------------------------------------------------------
74323
+ ---------------------------------------------------------
74324
+ DocumentTest: test_first_class_method_returns_single_item
74325
+ ---------------------------------------------------------
74326
+ ---------------------------------------------
74327
+ DocumentTest: test_getting_not_found_document
74328
+ ---------------------------------------------
74329
+ -------------------------------------------------------
74330
+ DocumentTest: test_last_class_method_returns_collection
74331
+ -------------------------------------------------------
74332
+ --------------------------------------------------------
74333
+ DocumentTest: test_last_class_method_returns_single_item
74334
+ --------------------------------------------------------
74335
+ -------------------------------------------------
74336
+ DocumentTest: test_multi_response_with_right_data
74337
+ -------------------------------------------------
74338
+ ---------------------------------------
74339
+ DocumentTest: test_new_document_have_id
74340
+ ---------------------------------------
74341
+ -------------------------------------------------------------------
74342
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_strings
74343
+ -------------------------------------------------------------------
74344
+ -------------------------------------------------------------------
74345
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
74346
+ -------------------------------------------------------------------
74347
+ ------------------------------------------
74348
+ DocumentTest: test_new_document_with_no_id
74349
+ ------------------------------------------
74350
+ -----------------------------------------
74351
+ DocumentTest: test_new_in_memory_document
74352
+ -----------------------------------------
74353
+ ------------------------------------------------------------------
74354
+ DocumentTest: test_persisted?_returns_false_if__rev_is_not_present
74355
+ ------------------------------------------------------------------
74356
+ -------------------------------------------------------------
74357
+ DocumentTest: test_persisted?_returns_true_if__rev_is_present
74358
+ -------------------------------------------------------------
74359
+ ------------------------------------
74360
+ DocumentTest: test_query_custom_view
74361
+ ------------------------------------
74362
+ ----------------------------------------------
74363
+ DocumentTest: test_query_custom_view_collation
74364
+ ----------------------------------------------
74365
+ --------------------------------------------------------------
74366
+ DocumentTest: test_reader_:bar_is_not_calling_the_writer_:bar=
74367
+ --------------------------------------------------------------
74368
+ ---------------------------------
74369
+ DocumentTest: test_set_updated_at
74370
+ ---------------------------------
74371
+ ------------------------------------------
74372
+ DocumentTest: test_soft_delete_on_document
74373
+ ------------------------------------------
74374
+ ----------------------------------------------------
74375
+ DocumentTest: test_trying_to_update_invalid_property
74376
+ ----------------------------------------------------
74377
+ ---------------------------------------------
74378
+ DocumentTest: test_update_document_properties
74379
+ ---------------------------------------------
74380
+ ------------------------------------------------------
74381
+ DocumentTest: test_update_document_propertys_with_bang
74382
+ ------------------------------------------------------
74383
+ -------------------------------------------
74384
+ DocumentTest: test_will_have_key_properties
74385
+ -------------------------------------------
74386
+ --------------------------------------------------------
74387
+ DocumentTest: test_will_have_object_with_DateTime_method
74388
+ --------------------------------------------------------
74389
+ ----------------------------------------------------
74390
+ DocumentTest: test_will_have_object_with_Date_method
74391
+ ----------------------------------------------------
74392
+ ----------------------------------------------------
74393
+ DocumentTest: test_will_have_object_with_Time_method
74394
+ ----------------------------------------------------
74395
+ --------------------------------------------------------
74396
+ DocumentTest: test_will_have_object_with_boolean?_method
74397
+ --------------------------------------------------------
74398
+ ------------------------------------------------
74399
+ DocumentTest: test_will_have_only_set_properties
74400
+ ------------------------------------------------
74401
+ ----------------------------------------------------------------
74402
+ DocumentTest: test_with_default_will_return_default_value_on_nil
74403
+ ----------------------------------------------------------------
74404
+ --------------------------------------------------
74405
+ BulkDocumentTest: test_adding_document_to_bulk_doc
74406
+ --------------------------------------------------
74407
+ -----------------------------------------------------------------
74408
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
74409
+ -----------------------------------------------------------------
74410
+ ------------------------------------------------------------------
74411
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
74412
+ ------------------------------------------------------------------
74413
+ ----------------------------------------------------------------------
74414
+ CollectionTest: test_count_returns_the_number_of_objects_in_collection
74415
+ ----------------------------------------------------------------------
74416
+ -------------------------------------
74417
+ CollectionTest: test_each_returns_nil
74418
+ -------------------------------------
74419
+ -----------------------------------------------------------------------
74420
+ CollectionTest: test_map_accepts_a_block_and_returns_the_correct_values
74421
+ -----------------------------------------------------------------------
74422
+ ----------------------------------------------
74423
+ CollectionTest: test_map_returns_an_enumerator
74424
+ ----------------------------------------------
74425
+ ------------------------------------------
74426
+ CollectionTest: test_to_a_returns_an_array
74427
+ ------------------------------------------
74428
+ -----------------------------------------------------
74429
+ CollectionTest: test_to_json_returns_a_string_of_json
74430
+ -----------------------------------------------------
74431
+ --------------------------------------------------------------
74432
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
74433
+ --------------------------------------------------------------
74434
+ -------------------------------------------
74435
+ DocumentTest: test_all_first_returns_FooBar
74436
+ -------------------------------------------
74437
+ ------------------------------------------
74438
+ DocumentTest: test_all_last_returns_FooBar
74439
+ ------------------------------------------
74440
+ --------------------------------------
74441
+ DocumentTest: test_all_will_get_2_docs
74442
+ --------------------------------------
74443
+ ------------------------------------------------
74444
+ DocumentTest: test_all_will_get_FooBar_documents
74445
+ ------------------------------------------------
74446
+ ------------------------------------------
74447
+ DocumentTest: test_can_find_with_fixnum_id
74448
+ ------------------------------------------
74449
+ ------------------------------------
74450
+ DocumentTest: test_created_at_is_set
74451
+ ------------------------------------
74452
+ ---------------------------------------------
74453
+ DocumentTest: test_default_will_be_overwriten
74454
+ ---------------------------------------------
74455
+ --------------------------------------------
74456
+ DocumentTest: test_delete_method_on_document
74457
+ --------------------------------------------
74458
+ ------------------------------------------------
74459
+ DocumentTest: test_empty_find_should_raise_error
74460
+ ------------------------------------------------
74461
+ ------------------------------------------------------------
74462
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
74463
+ ------------------------------------------------------------
74464
+ --------------------------------------------------
74465
+ DocumentTest: test_find_will_get_a_FooBar_document
74466
+ --------------------------------------------------
74467
+ ----------------------------------------------------------------
74468
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
74469
+ ----------------------------------------------------------------
74470
+ --------------------------------------------------------
74471
+ DocumentTest: test_first_class_method_returns_collection
74472
+ --------------------------------------------------------
74473
+ ---------------------------------------------------------
74474
+ DocumentTest: test_first_class_method_returns_single_item
74475
+ ---------------------------------------------------------
74476
+ ---------------------------------------------
74477
+ DocumentTest: test_getting_not_found_document
74478
+ ---------------------------------------------
74479
+ -------------------------------------------------------
74480
+ DocumentTest: test_last_class_method_returns_collection
74481
+ -------------------------------------------------------
74482
+ --------------------------------------------------------
74483
+ DocumentTest: test_last_class_method_returns_single_item
74484
+ --------------------------------------------------------
74485
+ -------------------------------------------------
74486
+ DocumentTest: test_multi_response_with_right_data
74487
+ -------------------------------------------------
74488
+ ---------------------------------------
74489
+ DocumentTest: test_new_document_have_id
74490
+ ---------------------------------------
74491
+ -------------------------------------------------------------------
74492
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_strings
74493
+ -------------------------------------------------------------------
74494
+ -------------------------------------------------------------------
74495
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
74496
+ -------------------------------------------------------------------
74497
+ ------------------------------------------
74498
+ DocumentTest: test_new_document_with_no_id
74499
+ ------------------------------------------
74500
+ -----------------------------------------
74501
+ DocumentTest: test_new_in_memory_document
74502
+ -----------------------------------------
74503
+ ------------------------------------------------------------------
74504
+ DocumentTest: test_persisted?_returns_false_if__rev_is_not_present
74505
+ ------------------------------------------------------------------
74506
+ -------------------------------------------------------------
74507
+ DocumentTest: test_persisted?_returns_true_if__rev_is_present
74508
+ -------------------------------------------------------------
74509
+ ------------------------------------
74510
+ DocumentTest: test_query_custom_view
74511
+ ------------------------------------
74512
+ ----------------------------------------------
74513
+ DocumentTest: test_query_custom_view_collation
74514
+ ----------------------------------------------
74515
+ --------------------------------------------------------------
74516
+ DocumentTest: test_reader_:bar_is_not_calling_the_writer_:bar=
74517
+ --------------------------------------------------------------
74518
+ ---------------------------------
74519
+ DocumentTest: test_set_updated_at
74520
+ ---------------------------------
74521
+ ------------------------------------------
74522
+ DocumentTest: test_soft_delete_on_document
74523
+ ------------------------------------------
74524
+ ----------------------------------------------------
74525
+ DocumentTest: test_trying_to_update_invalid_property
74526
+ ----------------------------------------------------
74527
+ ---------------------------------------------
74528
+ DocumentTest: test_update_document_properties
74529
+ ---------------------------------------------
74530
+ ------------------------------------------------------
74531
+ DocumentTest: test_update_document_propertys_with_bang
74532
+ ------------------------------------------------------
74533
+ -------------------------------------------
74534
+ DocumentTest: test_will_have_key_properties
74535
+ -------------------------------------------
74536
+ --------------------------------------------------------
74537
+ DocumentTest: test_will_have_object_with_DateTime_method
74538
+ --------------------------------------------------------
74539
+ ----------------------------------------------------
74540
+ DocumentTest: test_will_have_object_with_Date_method
74541
+ ----------------------------------------------------
74542
+ ----------------------------------------------------
74543
+ DocumentTest: test_will_have_object_with_Time_method
74544
+ ----------------------------------------------------
74545
+ --------------------------------------------------------
74546
+ DocumentTest: test_will_have_object_with_boolean?_method
74547
+ --------------------------------------------------------
74548
+ ------------------------------------------------
74549
+ DocumentTest: test_will_have_only_set_properties
74550
+ ------------------------------------------------
74551
+ ----------------------------------------------------------------
74552
+ DocumentTest: test_with_default_will_return_default_value_on_nil
74553
+ ----------------------------------------------------------------
74554
+ --------------------------------------------------
74555
+ BulkDocumentTest: test_adding_document_to_bulk_doc
74556
+ --------------------------------------------------
74557
+ -----------------------------------------------------------------
74558
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
74559
+ -----------------------------------------------------------------
74560
+ ------------------------------------------------------------------
74561
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
74562
+ ------------------------------------------------------------------
74563
+ ----------------------------------------------------------------------
74564
+ CollectionTest: test_count_returns_the_number_of_objects_in_collection
74565
+ ----------------------------------------------------------------------
74566
+ -------------------------------------
74567
+ CollectionTest: test_each_returns_nil
74568
+ -------------------------------------
74569
+ -----------------------------------------------------------------------
74570
+ CollectionTest: test_map_accepts_a_block_and_returns_the_correct_values
74571
+ -----------------------------------------------------------------------
74572
+ ----------------------------------------------
74573
+ CollectionTest: test_map_returns_an_enumerator
74574
+ ----------------------------------------------
74575
+ ------------------------------------------
74576
+ CollectionTest: test_to_a_returns_an_array
74577
+ ------------------------------------------
74578
+ -----------------------------------------------------
74579
+ CollectionTest: test_to_json_returns_a_string_of_json
74580
+ -----------------------------------------------------
74581
+ --------------------------------------------------------------
74582
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
74583
+ --------------------------------------------------------------
74584
+ -------------------------------------------
74585
+ DocumentTest: test_all_first_returns_FooBar
74586
+ -------------------------------------------
74587
+ ------------------------------------------
74588
+ DocumentTest: test_all_last_returns_FooBar
74589
+ ------------------------------------------
74590
+ --------------------------------------
74591
+ DocumentTest: test_all_will_get_2_docs
74592
+ --------------------------------------
74593
+ ------------------------------------------------
74594
+ DocumentTest: test_all_will_get_FooBar_documents
74595
+ ------------------------------------------------
74596
+ ------------------------------------------
74597
+ DocumentTest: test_can_find_with_fixnum_id
74598
+ ------------------------------------------
74599
+ ------------------------------------
74600
+ DocumentTest: test_created_at_is_set
74601
+ ------------------------------------
74602
+ ---------------------------------------------
74603
+ DocumentTest: test_default_will_be_overwriten
74604
+ ---------------------------------------------
74605
+ --------------------------------------------
74606
+ DocumentTest: test_delete_method_on_document
74607
+ --------------------------------------------
74608
+ ------------------------------------------------
74609
+ DocumentTest: test_empty_find_should_raise_error
74610
+ ------------------------------------------------
74611
+ ------------------------------------------------------------
74612
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
74613
+ ------------------------------------------------------------
74614
+ --------------------------------------------------
74615
+ DocumentTest: test_find_will_get_a_FooBar_document
74616
+ --------------------------------------------------
74617
+ ----------------------------------------------------------------
74618
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
74619
+ ----------------------------------------------------------------
74620
+ --------------------------------------------------------
74621
+ DocumentTest: test_first_class_method_returns_collection
74622
+ --------------------------------------------------------
74623
+ ---------------------------------------------------------
74624
+ DocumentTest: test_first_class_method_returns_single_item
74625
+ ---------------------------------------------------------
74626
+ ---------------------------------------------
74627
+ DocumentTest: test_getting_not_found_document
74628
+ ---------------------------------------------
74629
+ -------------------------------------------------------
74630
+ DocumentTest: test_last_class_method_returns_collection
74631
+ -------------------------------------------------------
74632
+ --------------------------------------------------------
74633
+ DocumentTest: test_last_class_method_returns_single_item
74634
+ --------------------------------------------------------
74635
+ -------------------------------------------------
74636
+ DocumentTest: test_multi_response_with_right_data
74637
+ -------------------------------------------------
74638
+ ---------------------------------------
74639
+ DocumentTest: test_new_document_have_id
74640
+ ---------------------------------------
74641
+ -------------------------------------------------------------------
74642
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_strings
74643
+ -------------------------------------------------------------------
74644
+ -------------------------------------------------------------------
74645
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
74646
+ -------------------------------------------------------------------
74647
+ ------------------------------------------
74648
+ DocumentTest: test_new_document_with_no_id
74649
+ ------------------------------------------
74650
+ -----------------------------------------
74651
+ DocumentTest: test_new_in_memory_document
74652
+ -----------------------------------------
74653
+ ------------------------------------------------------------------
74654
+ DocumentTest: test_persisted?_returns_false_if__rev_is_not_present
74655
+ ------------------------------------------------------------------
74656
+ -------------------------------------------------------------
74657
+ DocumentTest: test_persisted?_returns_true_if__rev_is_present
74658
+ -------------------------------------------------------------
74659
+ ------------------------------------
74660
+ DocumentTest: test_query_custom_view
74661
+ ------------------------------------
74662
+ ----------------------------------------------
74663
+ DocumentTest: test_query_custom_view_collation
74664
+ ----------------------------------------------
74665
+ --------------------------------------------------------------
74666
+ DocumentTest: test_reader_:bar_is_not_calling_the_writer_:bar=
74667
+ --------------------------------------------------------------
74668
+ ---------------------------------
74669
+ DocumentTest: test_set_updated_at
74670
+ ---------------------------------
74671
+ ------------------------------------------
74672
+ DocumentTest: test_soft_delete_on_document
74673
+ ------------------------------------------
74674
+ ----------------------------------------------------
74675
+ DocumentTest: test_trying_to_update_invalid_property
74676
+ ----------------------------------------------------
74677
+ ---------------------------------------------
74678
+ DocumentTest: test_update_document_properties
74679
+ ---------------------------------------------
74680
+ ------------------------------------------------------
74681
+ DocumentTest: test_update_document_propertys_with_bang
74682
+ ------------------------------------------------------
74683
+ -------------------------------------------
74684
+ DocumentTest: test_will_have_key_properties
74685
+ -------------------------------------------
74686
+ --------------------------------------------------------
74687
+ DocumentTest: test_will_have_object_with_DateTime_method
74688
+ --------------------------------------------------------
74689
+ ----------------------------------------------------
74690
+ DocumentTest: test_will_have_object_with_Date_method
74691
+ ----------------------------------------------------
74692
+ ----------------------------------------------------
74693
+ DocumentTest: test_will_have_object_with_Time_method
74694
+ ----------------------------------------------------
74695
+ --------------------------------------------------------
74696
+ DocumentTest: test_will_have_object_with_boolean?_method
74697
+ --------------------------------------------------------
74698
+ ------------------------------------------------
74699
+ DocumentTest: test_will_have_only_set_properties
74700
+ ------------------------------------------------
74701
+ ----------------------------------------------------------------
74702
+ DocumentTest: test_with_default_will_return_default_value_on_nil
74703
+ ----------------------------------------------------------------
74704
+ --------------------------------------------------
74705
+ BulkDocumentTest: test_adding_document_to_bulk_doc
74706
+ --------------------------------------------------
74707
+ -----------------------------------------------------------------
74708
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
74709
+ -----------------------------------------------------------------
74710
+ ------------------------------------------------------------------
74711
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
74712
+ ------------------------------------------------------------------
74713
+ ----------------------------------------------------------------------
74714
+ CollectionTest: test_count_returns_the_number_of_objects_in_collection
74715
+ ----------------------------------------------------------------------
74716
+ -------------------------------------
74717
+ CollectionTest: test_each_returns_nil
74718
+ -------------------------------------
74719
+ -----------------------------------------------------------------------
74720
+ CollectionTest: test_map_accepts_a_block_and_returns_the_correct_values
74721
+ -----------------------------------------------------------------------
74722
+ ----------------------------------------------
74723
+ CollectionTest: test_map_returns_an_enumerator
74724
+ ----------------------------------------------
74725
+ ------------------------------------------
74726
+ CollectionTest: test_to_a_returns_an_array
74727
+ ------------------------------------------
74728
+ -----------------------------------------------------
74729
+ CollectionTest: test_to_json_returns_a_string_of_json
74730
+ -----------------------------------------------------
74731
+ --------------------------------------------------------------
74732
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
74733
+ --------------------------------------------------------------
74734
+ -------------------------------------------
74735
+ DocumentTest: test_all_first_returns_FooBar
74736
+ -------------------------------------------
74737
+ ------------------------------------------
74738
+ DocumentTest: test_all_last_returns_FooBar
74739
+ ------------------------------------------
74740
+ --------------------------------------
74741
+ DocumentTest: test_all_will_get_2_docs
74742
+ --------------------------------------
74743
+ ------------------------------------------------
74744
+ DocumentTest: test_all_will_get_FooBar_documents
74745
+ ------------------------------------------------
74746
+ ------------------------------------------
74747
+ DocumentTest: test_can_find_with_fixnum_id
74748
+ ------------------------------------------
74749
+ ------------------------------------
74750
+ DocumentTest: test_created_at_is_set
74751
+ ------------------------------------
74752
+ ---------------------------------------------
74753
+ DocumentTest: test_default_will_be_overwriten
74754
+ ---------------------------------------------
74755
+ --------------------------------------------
74756
+ DocumentTest: test_delete_method_on_document
74757
+ --------------------------------------------
74758
+ ------------------------------------------------
74759
+ DocumentTest: test_empty_find_should_raise_error
74760
+ ------------------------------------------------
74761
+ ------------------------------------------------------------
74762
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
74763
+ ------------------------------------------------------------
74764
+ --------------------------------------------------
74765
+ DocumentTest: test_find_will_get_a_FooBar_document
74766
+ --------------------------------------------------
74767
+ ----------------------------------------------------------------
74768
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
74769
+ ----------------------------------------------------------------
74770
+ --------------------------------------------------------
74771
+ DocumentTest: test_first_class_method_returns_collection
74772
+ --------------------------------------------------------
74773
+ ---------------------------------------------------------
74774
+ DocumentTest: test_first_class_method_returns_single_item
74775
+ ---------------------------------------------------------
74776
+ ---------------------------------------------
74777
+ DocumentTest: test_getting_not_found_document
74778
+ ---------------------------------------------
74779
+ -------------------------------------------------------
74780
+ DocumentTest: test_last_class_method_returns_collection
74781
+ -------------------------------------------------------
74782
+ --------------------------------------------------------
74783
+ DocumentTest: test_last_class_method_returns_single_item
74784
+ --------------------------------------------------------
74785
+ -------------------------------------------------
74786
+ DocumentTest: test_multi_response_with_right_data
74787
+ -------------------------------------------------
74788
+ ---------------------------------------
74789
+ DocumentTest: test_new_document_have_id
74790
+ ---------------------------------------
74791
+ -------------------------------------------------------------------
74792
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_strings
74793
+ -------------------------------------------------------------------
74794
+ -------------------------------------------------------------------
74795
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
74796
+ -------------------------------------------------------------------
74797
+ ------------------------------------------
74798
+ DocumentTest: test_new_document_with_no_id
74799
+ ------------------------------------------
74800
+ -----------------------------------------
74801
+ DocumentTest: test_new_in_memory_document
74802
+ -----------------------------------------
74803
+ ------------------------------------------------------------------
74804
+ DocumentTest: test_persisted?_returns_false_if__rev_is_not_present
74805
+ ------------------------------------------------------------------
74806
+ -------------------------------------------------------------
74807
+ DocumentTest: test_persisted?_returns_true_if__rev_is_present
74808
+ -------------------------------------------------------------
74809
+ ------------------------------------
74810
+ DocumentTest: test_query_custom_view
74811
+ ------------------------------------
74812
+ ----------------------------------------------
74813
+ DocumentTest: test_query_custom_view_collation
74814
+ ----------------------------------------------
74815
+ --------------------------------------------------------------
74816
+ DocumentTest: test_reader_:bar_is_not_calling_the_writer_:bar=
74817
+ --------------------------------------------------------------
74818
+ ---------------------------------
74819
+ DocumentTest: test_set_updated_at
74820
+ ---------------------------------
74821
+ ------------------------------------------
74822
+ DocumentTest: test_soft_delete_on_document
74823
+ ------------------------------------------
74824
+ ----------------------------------------------------
74825
+ DocumentTest: test_trying_to_update_invalid_property
74826
+ ----------------------------------------------------
74827
+ ---------------------------------------------
74828
+ DocumentTest: test_update_document_properties
74829
+ ---------------------------------------------
74830
+ ------------------------------------------------------
74831
+ DocumentTest: test_update_document_propertys_with_bang
74832
+ ------------------------------------------------------
74833
+ -------------------------------------------
74834
+ DocumentTest: test_will_have_key_properties
74835
+ -------------------------------------------
74836
+ --------------------------------------------------------
74837
+ DocumentTest: test_will_have_object_with_DateTime_method
74838
+ --------------------------------------------------------
74839
+ ----------------------------------------------------
74840
+ DocumentTest: test_will_have_object_with_Date_method
74841
+ ----------------------------------------------------
74842
+ ----------------------------------------------------
74843
+ DocumentTest: test_will_have_object_with_Time_method
74844
+ ----------------------------------------------------
74845
+ --------------------------------------------------------
74846
+ DocumentTest: test_will_have_object_with_boolean?_method
74847
+ --------------------------------------------------------
74848
+ ------------------------------------------------
74849
+ DocumentTest: test_will_have_only_set_properties
74850
+ ------------------------------------------------
74851
+ ----------------------------------------------------------------
74852
+ DocumentTest: test_with_default_will_return_default_value_on_nil
74853
+ ----------------------------------------------------------------
74854
+ --------------------------------------------------
74855
+ BulkDocumentTest: test_adding_document_to_bulk_doc
74856
+ --------------------------------------------------
74857
+ -----------------------------------------------------------------
74858
+ BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
74859
+ -----------------------------------------------------------------
74860
+ ------------------------------------------------------------------
74861
+ BulkDocumentTest: test_save_document_will_remove_docs_from_payload
74862
+ ------------------------------------------------------------------
74863
+ ----------------------------------------------------------------------
74864
+ CollectionTest: test_count_returns_the_number_of_objects_in_collection
74865
+ ----------------------------------------------------------------------
74866
+ -------------------------------------
74867
+ CollectionTest: test_each_returns_nil
74868
+ -------------------------------------
74869
+ -----------------------------------------------------------------------
74870
+ CollectionTest: test_map_accepts_a_block_and_returns_the_correct_values
74871
+ -----------------------------------------------------------------------
74872
+ ----------------------------------------------
74873
+ CollectionTest: test_map_returns_an_enumerator
74874
+ ----------------------------------------------
74875
+ ------------------------------------------
74876
+ CollectionTest: test_to_a_returns_an_array
74877
+ ------------------------------------------
74878
+ -----------------------------------------------------
74879
+ CollectionTest: test_to_json_returns_a_string_of_json
74880
+ -----------------------------------------------------
74881
+ --------------------------------------------------------------
74882
+ DocumentTest: test_Dolly::Document_have_bulk_document_instance
74883
+ --------------------------------------------------------------
74884
+ -------------------------------------------
74885
+ DocumentTest: test_all_first_returns_FooBar
74886
+ -------------------------------------------
74887
+ ------------------------------------------
74888
+ DocumentTest: test_all_last_returns_FooBar
74889
+ ------------------------------------------
74890
+ --------------------------------------
74891
+ DocumentTest: test_all_will_get_2_docs
74892
+ --------------------------------------
74893
+ ------------------------------------------------
74894
+ DocumentTest: test_all_will_get_FooBar_documents
74895
+ ------------------------------------------------
74896
+ ------------------------------------------
74897
+ DocumentTest: test_can_find_with_fixnum_id
74898
+ ------------------------------------------
74899
+ ------------------------------------
74900
+ DocumentTest: test_created_at_is_set
74901
+ ------------------------------------
74902
+ ---------------------------------------------
74903
+ DocumentTest: test_default_will_be_overwriten
74904
+ ---------------------------------------------
74905
+ --------------------------------------------
74906
+ DocumentTest: test_delete_method_on_document
74907
+ --------------------------------------------
74908
+ ------------------------------------------------
74909
+ DocumentTest: test_empty_find_should_raise_error
74910
+ ------------------------------------------------
74911
+ ------------------------------------------------------------
74912
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
74913
+ ------------------------------------------------------------
74914
+ --------------------------------------------------
74915
+ DocumentTest: test_find_will_get_a_FooBar_document
74916
+ --------------------------------------------------
74917
+ ----------------------------------------------------------------
74918
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
74919
+ ----------------------------------------------------------------
74920
+ --------------------------------------------------------
74921
+ DocumentTest: test_first_class_method_returns_collection
74922
+ --------------------------------------------------------
74923
+ ---------------------------------------------------------
74924
+ DocumentTest: test_first_class_method_returns_single_item
74925
+ ---------------------------------------------------------
74926
+ ---------------------------------------------
74927
+ DocumentTest: test_getting_not_found_document
74928
+ ---------------------------------------------
74929
+ -------------------------------------------------------
74930
+ DocumentTest: test_last_class_method_returns_collection
74931
+ -------------------------------------------------------
74932
+ --------------------------------------------------------
74933
+ DocumentTest: test_last_class_method_returns_single_item
74934
+ --------------------------------------------------------
74935
+ -------------------------------------------------
74936
+ DocumentTest: test_multi_response_with_right_data
74937
+ -------------------------------------------------
74938
+ ---------------------------------------
74939
+ DocumentTest: test_new_document_have_id
74940
+ ---------------------------------------
74941
+ -------------------------------------------------------------------
74942
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_strings
74943
+ -------------------------------------------------------------------
74944
+ -------------------------------------------------------------------
74945
+ DocumentTest: test_new_document_will_have_id_from__id_or_id_symbols
74946
+ -------------------------------------------------------------------
74947
+ ------------------------------------------
74948
+ DocumentTest: test_new_document_with_no_id
74949
+ ------------------------------------------
74950
+ -----------------------------------------
74951
+ DocumentTest: test_new_in_memory_document
74952
+ -----------------------------------------
74953
+ ------------------------------------------------------------------
74954
+ DocumentTest: test_persisted?_returns_false_if__rev_is_not_present
74955
+ ------------------------------------------------------------------
74956
+ -------------------------------------------------------------
74957
+ DocumentTest: test_persisted?_returns_true_if__rev_is_present
74958
+ -------------------------------------------------------------
74959
+ ------------------------------------
74960
+ DocumentTest: test_query_custom_view
74961
+ ------------------------------------
74962
+ ----------------------------------------------
74963
+ DocumentTest: test_query_custom_view_collation
74964
+ ----------------------------------------------
74965
+ --------------------------------------------------------------
74966
+ DocumentTest: test_reader_:bar_is_not_calling_the_writer_:bar=
74967
+ --------------------------------------------------------------
74968
+ ---------------------------------
74969
+ DocumentTest: test_set_updated_at
74970
+ ---------------------------------
74971
+ ------------------------------------------
74972
+ DocumentTest: test_soft_delete_on_document
74973
+ ------------------------------------------
74974
+ ----------------------------------------------------
74975
+ DocumentTest: test_trying_to_update_invalid_property
74976
+ ----------------------------------------------------
74977
+ ---------------------------------------------
74978
+ DocumentTest: test_update_document_properties
74979
+ ---------------------------------------------
74980
+ ------------------------------------------------------
74981
+ DocumentTest: test_update_document_propertys_with_bang
74982
+ ------------------------------------------------------
74983
+ -------------------------------------------
74984
+ DocumentTest: test_will_have_key_properties
74985
+ -------------------------------------------
74986
+ --------------------------------------------------------
74987
+ DocumentTest: test_will_have_object_with_DateTime_method
74988
+ --------------------------------------------------------
74989
+ ----------------------------------------------------
74990
+ DocumentTest: test_will_have_object_with_Date_method
74991
+ ----------------------------------------------------
74992
+ ----------------------------------------------------
74993
+ DocumentTest: test_will_have_object_with_Time_method
74994
+ ----------------------------------------------------
74995
+ --------------------------------------------------------
74996
+ DocumentTest: test_will_have_object_with_boolean?_method
74997
+ --------------------------------------------------------
74998
+ ------------------------------------------------
74999
+ DocumentTest: test_will_have_only_set_properties
75000
+ ------------------------------------------------
75001
+ ----------------------------------------------------------------
75002
+ DocumentTest: test_with_default_will_return_default_value_on_nil
75003
+ ----------------------------------------------------------------