dolly 0.2.0 → 0.3.0

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: b43649cf960832da484ca9d972ad118313156e01
4
- data.tar.gz: ae8cbcfa0414e80e2a7ba881737f810e3582c232
3
+ metadata.gz: 6873b3b797dea2cca325b89ecb3ffcd317af2291
4
+ data.tar.gz: 2745dc120a2a72330ccc4ab9ae4bdfa9b26f6460
5
5
  SHA512:
6
- metadata.gz: 94107541b5742c644dcb657d35ef95a68ae79beeaf17a41ead87eb54d5371e52fa1d6ec9db65d6d6384103a2d9ed0f748df82a2d52cf4689010f45304976b354
7
- data.tar.gz: fcc8db3b3e45d28d670e98dc851c79d7ab06f977f932795f00b443e06d750539eb6a20a5c752e6eefe666b57528a4bd5aaef1c3c7eda61b3a482a0a8d3c836f9
6
+ metadata.gz: 373d7361b293776fe9c9899a450690201704b370e45f566974147786ac45a2f3d05ccb0a07426a38b58aa1226329398022097ea4a603d7882c2a151a45cb19f7
7
+ data.tar.gz: 00bbf2486e20c026d439592ef5ab54468befcae5c2fef65837997cd2d5d5bf76865abc4c97b72989e5b124de67fcd9c2c1417f9258e864f2e244cbfd0a7565e5
@@ -25,5 +25,9 @@ module Dolly
25
25
  "_design/#{env["design"]}"
26
26
  end
27
27
 
28
+ def next_id
29
+ namespace database.uuids.first
30
+ end
31
+
28
32
  end
29
33
  end
@@ -9,8 +9,12 @@ module Dolly
9
9
  attr_accessor :rows, :doc, :key
10
10
  class_attribute :properties
11
11
 
12
+ def initialize options = {}
13
+ init_properties options
14
+ end
15
+
12
16
  def id
13
- doc['_id']
17
+ doc['_id'] ||= self.class.next_id
14
18
  end
15
19
 
16
20
  def rev
@@ -53,6 +57,12 @@ module Dolly
53
57
  Representations::DocumentRepresentation.config(self.properties)
54
58
  end
55
59
 
60
+ def self.create options = {}
61
+ obj = new options
62
+ obj.save
63
+ obj
64
+ end
65
+
56
66
  def self.property *ary
57
67
  options = ary.pop if ary.last.kind_of? Hash
58
68
  options ||= {}
@@ -83,5 +93,9 @@ module Dolly
83
93
  def _properties
84
94
  self.properties
85
95
  end
96
+
97
+ def init_properties options = {}
98
+ options.each{|k, v| send(:"#{k}=", v)}
99
+ end
86
100
  end
87
101
  end
@@ -1,5 +1,9 @@
1
+ require "active_model/naming"
2
+
1
3
  module Dolly
2
4
  module NameSpace
5
+ include ActiveModel::Naming
6
+
3
7
  def name_paramitized
4
8
  model_name.param_key
5
9
  end
@@ -1,4 +1,3 @@
1
- require "active_model/naming"
2
1
  require "dolly/connection"
3
2
  require "dolly/collection"
4
3
  require "dolly/representations/document_representation"
@@ -10,7 +9,6 @@ module Dolly
10
9
  module Query
11
10
  module ClassMethods
12
11
  include Dolly::NameSpace
13
- include ActiveModel::Naming
14
12
  include Dolly::Connection
15
13
  attr_accessor :properties
16
14
 
@@ -37,7 +37,16 @@ module Dolly
37
37
  @protocol || 'http'
38
38
  end
39
39
 
40
+ def uuids opts = {}
41
+ tools("_uuids", opts)["uuids"]
42
+ end
43
+
40
44
  private
45
+ def tools path, opts = nil
46
+ q = "?#{CGI.unescape(opts.to_query)}" unless opts.blank?
47
+ JSON::parse self.class.get("/#{path}#{q}")
48
+ end
49
+
41
50
  def auth_info
42
51
  return "" unless @username.present?
43
52
  "#{@username}:#{@password}@"
@@ -1,3 +1,3 @@
1
1
  module Dolly
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -43,6 +43,19 @@ class DocumentTest < ActiveSupport::TestCase
43
43
  assert_equal foo['created_at'], foo.created_at
44
44
  end
45
45
 
46
+ test 'new in memory document' do
47
+ #TODO: clean up all the fake request creation
48
+ resp = {ok: true, id: "foo_bar/1", rev: "FF0000"}
49
+ FakeWeb.register_uri :put, /http:\/\/localhost:5984\/test\/foo_bar%2F.+/, body: resp.to_json
50
+ properties = {foo: 1, bar: 2, boolean: false}
51
+ foo = FooBar.new properties
52
+ assert_equal 1, foo.with_default
53
+ foo.save
54
+ properties.each do |k, v|
55
+ assert_equal v, foo[k]
56
+ end
57
+ end
58
+
46
59
  test 'empty find should raise error' do
47
60
  assert_raise Dolly::ResourceNotFound do
48
61
  FakeWeb.register_uri :get, "#{view_base_path}?keys=%5B%5D&include_docs=true", :status => ["404", "Not Found"]
@@ -16825,3 +16825,1914 @@ DocumentTest: test_with_default_will_return_default_value_on_nil
16825
16825
  -----------------------------------
16826
16826
  DocumentTest: test_with_timestamps!
16827
16827
  -----------------------------------
16828
+ --------------------------------------
16829
+ DocumentTest: test_all_will_get_2_docs
16830
+ --------------------------------------
16831
+ ------------------------------------------------
16832
+ DocumentTest: test_all_will_get_FooBar_documents
16833
+ ------------------------------------------------
16834
+ ----------------------------------------------
16835
+ DocumentTest: test_default_will_be_avoerwriten
16836
+ ----------------------------------------------
16837
+ ------------------------------------------------
16838
+ DocumentTest: test_empty_find_should_raise_error
16839
+ ------------------------------------------------
16840
+ ------------------------------------------------------------
16841
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
16842
+ ------------------------------------------------------------
16843
+ --------------------------------------------------
16844
+ DocumentTest: test_find_will_get_a_FooBar_document
16845
+ --------------------------------------------------
16846
+ ----------------------------------------------------------------
16847
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
16848
+ ----------------------------------------------------------------
16849
+ ---------------------------------------------
16850
+ DocumentTest: test_getting_not_found_document
16851
+ ---------------------------------------------
16852
+ -------------------------------------------------
16853
+ DocumentTest: test_multi_response_with_right_data
16854
+ -------------------------------------------------
16855
+ -------------------------------------------
16856
+ DocumentTest: test_will_have_key_properties
16857
+ -------------------------------------------
16858
+ --------------------------------------------------------
16859
+ DocumentTest: test_will_have_object_with_boolean?_method
16860
+ --------------------------------------------------------
16861
+ ------------------------------------------------
16862
+ DocumentTest: test_will_have_only_set_properties
16863
+ ------------------------------------------------
16864
+ ----------------------------------------------------------------
16865
+ DocumentTest: test_with_default_will_return_default_value_on_nil
16866
+ ----------------------------------------------------------------
16867
+ -----------------------------------
16868
+ DocumentTest: test_with_timestamps!
16869
+ -----------------------------------
16870
+ --------------------------------------
16871
+ DocumentTest: test_all_will_get_2_docs
16872
+ --------------------------------------
16873
+ ------------------------------------------------
16874
+ DocumentTest: test_all_will_get_FooBar_documents
16875
+ ------------------------------------------------
16876
+ ----------------------------------------------
16877
+ DocumentTest: test_default_will_be_avoerwriten
16878
+ ----------------------------------------------
16879
+ ------------------------------------------------
16880
+ DocumentTest: test_empty_find_should_raise_error
16881
+ ------------------------------------------------
16882
+ ------------------------------------------------------------
16883
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
16884
+ ------------------------------------------------------------
16885
+ --------------------------------------------------
16886
+ DocumentTest: test_find_will_get_a_FooBar_document
16887
+ --------------------------------------------------
16888
+ ----------------------------------------------------------------
16889
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
16890
+ ----------------------------------------------------------------
16891
+ ---------------------------------------------
16892
+ DocumentTest: test_getting_not_found_document
16893
+ ---------------------------------------------
16894
+ -------------------------------------------------
16895
+ DocumentTest: test_multi_response_with_right_data
16896
+ -------------------------------------------------
16897
+ -------------------------------------------
16898
+ DocumentTest: test_will_have_key_properties
16899
+ -------------------------------------------
16900
+ --------------------------------------------------------
16901
+ DocumentTest: test_will_have_object_with_boolean?_method
16902
+ --------------------------------------------------------
16903
+ ------------------------------------------------
16904
+ DocumentTest: test_will_have_only_set_properties
16905
+ ------------------------------------------------
16906
+ ----------------------------------------------------------------
16907
+ DocumentTest: test_with_default_will_return_default_value_on_nil
16908
+ ----------------------------------------------------------------
16909
+ -----------------------------------
16910
+ DocumentTest: test_with_timestamps!
16911
+ -----------------------------------
16912
+ --------------------------------------
16913
+ DocumentTest: test_all_will_get_2_docs
16914
+ --------------------------------------
16915
+ ------------------------------------------------
16916
+ DocumentTest: test_all_will_get_FooBar_documents
16917
+ ------------------------------------------------
16918
+ ----------------------------------------------
16919
+ DocumentTest: test_default_will_be_avoerwriten
16920
+ ----------------------------------------------
16921
+ ------------------------------------------------
16922
+ DocumentTest: test_empty_find_should_raise_error
16923
+ ------------------------------------------------
16924
+ ------------------------------------------------------------
16925
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
16926
+ ------------------------------------------------------------
16927
+ --------------------------------------------------
16928
+ DocumentTest: test_find_will_get_a_FooBar_document
16929
+ --------------------------------------------------
16930
+ ----------------------------------------------------------------
16931
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
16932
+ ----------------------------------------------------------------
16933
+ ---------------------------------------------
16934
+ DocumentTest: test_getting_not_found_document
16935
+ ---------------------------------------------
16936
+ -------------------------------------------------
16937
+ DocumentTest: test_multi_response_with_right_data
16938
+ -------------------------------------------------
16939
+ -------------------------------------------
16940
+ DocumentTest: test_will_have_key_properties
16941
+ -------------------------------------------
16942
+ --------------------------------------------------------
16943
+ DocumentTest: test_will_have_object_with_boolean?_method
16944
+ --------------------------------------------------------
16945
+ ------------------------------------------------
16946
+ DocumentTest: test_will_have_only_set_properties
16947
+ ------------------------------------------------
16948
+ ----------------------------------------------------------------
16949
+ DocumentTest: test_with_default_will_return_default_value_on_nil
16950
+ ----------------------------------------------------------------
16951
+ -----------------------------------
16952
+ DocumentTest: test_with_timestamps!
16953
+ -----------------------------------
16954
+ --------------------------------------
16955
+ DocumentTest: test_all_will_get_2_docs
16956
+ --------------------------------------
16957
+ ------------------------------------------------
16958
+ DocumentTest: test_all_will_get_FooBar_documents
16959
+ ------------------------------------------------
16960
+ ----------------------------------------------
16961
+ DocumentTest: test_default_will_be_avoerwriten
16962
+ ----------------------------------------------
16963
+ ------------------------------------------------
16964
+ DocumentTest: test_empty_find_should_raise_error
16965
+ ------------------------------------------------
16966
+ ------------------------------------------------------------
16967
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
16968
+ ------------------------------------------------------------
16969
+ --------------------------------------------------
16970
+ DocumentTest: test_find_will_get_a_FooBar_document
16971
+ --------------------------------------------------
16972
+ ----------------------------------------------------------------
16973
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
16974
+ ----------------------------------------------------------------
16975
+ -------------------------------------
16976
+ DocumentTest: test_first_class_method
16977
+ -------------------------------------
16978
+ ---------------------------------------------
16979
+ DocumentTest: test_getting_not_found_document
16980
+ ---------------------------------------------
16981
+ -------------------------------------------------
16982
+ DocumentTest: test_multi_response_with_right_data
16983
+ -------------------------------------------------
16984
+ -------------------------------------------
16985
+ DocumentTest: test_will_have_key_properties
16986
+ -------------------------------------------
16987
+ --------------------------------------------------------
16988
+ DocumentTest: test_will_have_object_with_boolean?_method
16989
+ --------------------------------------------------------
16990
+ ------------------------------------------------
16991
+ DocumentTest: test_will_have_only_set_properties
16992
+ ------------------------------------------------
16993
+ ----------------------------------------------------------------
16994
+ DocumentTest: test_with_default_will_return_default_value_on_nil
16995
+ ----------------------------------------------------------------
16996
+ -----------------------------------
16997
+ DocumentTest: test_with_timestamps!
16998
+ -----------------------------------
16999
+ --------------------------------------
17000
+ DocumentTest: test_all_will_get_2_docs
17001
+ --------------------------------------
17002
+ ------------------------------------------------
17003
+ DocumentTest: test_all_will_get_FooBar_documents
17004
+ ------------------------------------------------
17005
+ ----------------------------------------------
17006
+ DocumentTest: test_default_will_be_avoerwriten
17007
+ ----------------------------------------------
17008
+ ------------------------------------------------
17009
+ DocumentTest: test_empty_find_should_raise_error
17010
+ ------------------------------------------------
17011
+ ------------------------------------------------------------
17012
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
17013
+ ------------------------------------------------------------
17014
+ --------------------------------------------------
17015
+ DocumentTest: test_find_will_get_a_FooBar_document
17016
+ --------------------------------------------------
17017
+ ----------------------------------------------------------------
17018
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
17019
+ ----------------------------------------------------------------
17020
+ -------------------------------------
17021
+ DocumentTest: test_first_class_method
17022
+ -------------------------------------
17023
+ ---------------------------------------------
17024
+ DocumentTest: test_getting_not_found_document
17025
+ ---------------------------------------------
17026
+ -------------------------------------------------
17027
+ DocumentTest: test_multi_response_with_right_data
17028
+ -------------------------------------------------
17029
+ -------------------------------------------
17030
+ DocumentTest: test_will_have_key_properties
17031
+ -------------------------------------------
17032
+ --------------------------------------------------------
17033
+ DocumentTest: test_will_have_object_with_boolean?_method
17034
+ --------------------------------------------------------
17035
+ ------------------------------------------------
17036
+ DocumentTest: test_will_have_only_set_properties
17037
+ ------------------------------------------------
17038
+ ----------------------------------------------------------------
17039
+ DocumentTest: test_with_default_will_return_default_value_on_nil
17040
+ ----------------------------------------------------------------
17041
+ -----------------------------------
17042
+ DocumentTest: test_with_timestamps!
17043
+ -----------------------------------
17044
+ --------------------------------------
17045
+ DocumentTest: test_all_will_get_2_docs
17046
+ --------------------------------------
17047
+ ------------------------------------------------
17048
+ DocumentTest: test_all_will_get_FooBar_documents
17049
+ ------------------------------------------------
17050
+ ----------------------------------------------
17051
+ DocumentTest: test_default_will_be_avoerwriten
17052
+ ----------------------------------------------
17053
+ ------------------------------------------------
17054
+ DocumentTest: test_empty_find_should_raise_error
17055
+ ------------------------------------------------
17056
+ ------------------------------------------------------------
17057
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
17058
+ ------------------------------------------------------------
17059
+ --------------------------------------------------
17060
+ DocumentTest: test_find_will_get_a_FooBar_document
17061
+ --------------------------------------------------
17062
+ ----------------------------------------------------------------
17063
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
17064
+ ----------------------------------------------------------------
17065
+ -------------------------------------
17066
+ DocumentTest: test_first_class_method
17067
+ -------------------------------------
17068
+ ---------------------------------------------
17069
+ DocumentTest: test_getting_not_found_document
17070
+ ---------------------------------------------
17071
+ -------------------------------------------------
17072
+ DocumentTest: test_multi_response_with_right_data
17073
+ -------------------------------------------------
17074
+ -------------------------------------------
17075
+ DocumentTest: test_will_have_key_properties
17076
+ -------------------------------------------
17077
+ --------------------------------------------------------
17078
+ DocumentTest: test_will_have_object_with_boolean?_method
17079
+ --------------------------------------------------------
17080
+ ------------------------------------------------
17081
+ DocumentTest: test_will_have_only_set_properties
17082
+ ------------------------------------------------
17083
+ ----------------------------------------------------------------
17084
+ DocumentTest: test_with_default_will_return_default_value_on_nil
17085
+ ----------------------------------------------------------------
17086
+ -----------------------------------
17087
+ DocumentTest: test_with_timestamps!
17088
+ -----------------------------------
17089
+ --------------------------------------
17090
+ DocumentTest: test_all_will_get_2_docs
17091
+ --------------------------------------
17092
+ ------------------------------------------------
17093
+ DocumentTest: test_all_will_get_FooBar_documents
17094
+ ------------------------------------------------
17095
+ ----------------------------------------------
17096
+ DocumentTest: test_default_will_be_avoerwriten
17097
+ ----------------------------------------------
17098
+ ------------------------------------------------
17099
+ DocumentTest: test_empty_find_should_raise_error
17100
+ ------------------------------------------------
17101
+ ------------------------------------------------------------
17102
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
17103
+ ------------------------------------------------------------
17104
+ --------------------------------------------------
17105
+ DocumentTest: test_find_will_get_a_FooBar_document
17106
+ --------------------------------------------------
17107
+ ----------------------------------------------------------------
17108
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
17109
+ ----------------------------------------------------------------
17110
+ -------------------------------------
17111
+ DocumentTest: test_first_class_method
17112
+ -------------------------------------
17113
+ ---------------------------------------------
17114
+ DocumentTest: test_getting_not_found_document
17115
+ ---------------------------------------------
17116
+ -------------------------------------------------
17117
+ DocumentTest: test_multi_response_with_right_data
17118
+ -------------------------------------------------
17119
+ -------------------------------------------
17120
+ DocumentTest: test_will_have_key_properties
17121
+ -------------------------------------------
17122
+ --------------------------------------------------------
17123
+ DocumentTest: test_will_have_object_with_boolean?_method
17124
+ --------------------------------------------------------
17125
+ ------------------------------------------------
17126
+ DocumentTest: test_will_have_only_set_properties
17127
+ ------------------------------------------------
17128
+ ----------------------------------------------------------------
17129
+ DocumentTest: test_with_default_will_return_default_value_on_nil
17130
+ ----------------------------------------------------------------
17131
+ -----------------------------------
17132
+ DocumentTest: test_with_timestamps!
17133
+ -----------------------------------
17134
+ --------------------------------------
17135
+ DocumentTest: test_all_will_get_2_docs
17136
+ --------------------------------------
17137
+ ------------------------------------------------
17138
+ DocumentTest: test_all_will_get_FooBar_documents
17139
+ ------------------------------------------------
17140
+ ----------------------------------------------
17141
+ DocumentTest: test_default_will_be_avoerwriten
17142
+ ----------------------------------------------
17143
+ ------------------------------------------------
17144
+ DocumentTest: test_empty_find_should_raise_error
17145
+ ------------------------------------------------
17146
+ ------------------------------------------------------------
17147
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
17148
+ ------------------------------------------------------------
17149
+ --------------------------------------------------
17150
+ DocumentTest: test_find_will_get_a_FooBar_document
17151
+ --------------------------------------------------
17152
+ ----------------------------------------------------------------
17153
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
17154
+ ----------------------------------------------------------------
17155
+ --------------------------------------------------------
17156
+ DocumentTest: test_first_class_method_returns_collection
17157
+ --------------------------------------------------------
17158
+ ---------------------------------------------------------
17159
+ DocumentTest: test_first_class_method_returns_single_item
17160
+ ---------------------------------------------------------
17161
+ ---------------------------------------------
17162
+ DocumentTest: test_getting_not_found_document
17163
+ ---------------------------------------------
17164
+ -------------------------------------------------
17165
+ DocumentTest: test_multi_response_with_right_data
17166
+ -------------------------------------------------
17167
+ -------------------------------------------
17168
+ DocumentTest: test_will_have_key_properties
17169
+ -------------------------------------------
17170
+ --------------------------------------------------------
17171
+ DocumentTest: test_will_have_object_with_boolean?_method
17172
+ --------------------------------------------------------
17173
+ ------------------------------------------------
17174
+ DocumentTest: test_will_have_only_set_properties
17175
+ ------------------------------------------------
17176
+ ----------------------------------------------------------------
17177
+ DocumentTest: test_with_default_will_return_default_value_on_nil
17178
+ ----------------------------------------------------------------
17179
+ -----------------------------------
17180
+ DocumentTest: test_with_timestamps!
17181
+ -----------------------------------
17182
+ --------------------------------------
17183
+ DocumentTest: test_all_will_get_2_docs
17184
+ --------------------------------------
17185
+ ------------------------------------------------
17186
+ DocumentTest: test_all_will_get_FooBar_documents
17187
+ ------------------------------------------------
17188
+ ----------------------------------------------
17189
+ DocumentTest: test_default_will_be_avoerwriten
17190
+ ----------------------------------------------
17191
+ ------------------------------------------------
17192
+ DocumentTest: test_empty_find_should_raise_error
17193
+ ------------------------------------------------
17194
+ ------------------------------------------------------------
17195
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
17196
+ ------------------------------------------------------------
17197
+ --------------------------------------------------
17198
+ DocumentTest: test_find_will_get_a_FooBar_document
17199
+ --------------------------------------------------
17200
+ ----------------------------------------------------------------
17201
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
17202
+ ----------------------------------------------------------------
17203
+ --------------------------------------------------------
17204
+ DocumentTest: test_first_class_method_returns_collection
17205
+ --------------------------------------------------------
17206
+ ---------------------------------------------------------
17207
+ DocumentTest: test_first_class_method_returns_single_item
17208
+ ---------------------------------------------------------
17209
+ ---------------------------------------------
17210
+ DocumentTest: test_getting_not_found_document
17211
+ ---------------------------------------------
17212
+ -------------------------------------------------
17213
+ DocumentTest: test_multi_response_with_right_data
17214
+ -------------------------------------------------
17215
+ -------------------------------------------
17216
+ DocumentTest: test_will_have_key_properties
17217
+ -------------------------------------------
17218
+ --------------------------------------------------------
17219
+ DocumentTest: test_will_have_object_with_boolean?_method
17220
+ --------------------------------------------------------
17221
+ ------------------------------------------------
17222
+ DocumentTest: test_will_have_only_set_properties
17223
+ ------------------------------------------------
17224
+ ----------------------------------------------------------------
17225
+ DocumentTest: test_with_default_will_return_default_value_on_nil
17226
+ ----------------------------------------------------------------
17227
+ -----------------------------------
17228
+ DocumentTest: test_with_timestamps!
17229
+ -----------------------------------
17230
+ --------------------------------------
17231
+ DocumentTest: test_all_will_get_2_docs
17232
+ --------------------------------------
17233
+ ------------------------------------------------
17234
+ DocumentTest: test_all_will_get_FooBar_documents
17235
+ ------------------------------------------------
17236
+ ----------------------------------------------
17237
+ DocumentTest: test_default_will_be_avoerwriten
17238
+ ----------------------------------------------
17239
+ ------------------------------------------------
17240
+ DocumentTest: test_empty_find_should_raise_error
17241
+ ------------------------------------------------
17242
+ ------------------------------------------------------------
17243
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
17244
+ ------------------------------------------------------------
17245
+ --------------------------------------------------
17246
+ DocumentTest: test_find_will_get_a_FooBar_document
17247
+ --------------------------------------------------
17248
+ ----------------------------------------------------------------
17249
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
17250
+ ----------------------------------------------------------------
17251
+ --------------------------------------------------------
17252
+ DocumentTest: test_first_class_method_returns_collection
17253
+ --------------------------------------------------------
17254
+ ---------------------------------------------------------
17255
+ DocumentTest: test_first_class_method_returns_single_item
17256
+ ---------------------------------------------------------
17257
+ ---------------------------------------------
17258
+ DocumentTest: test_getting_not_found_document
17259
+ ---------------------------------------------
17260
+ -------------------------------------------------------
17261
+ DocumentTest: test_last_class_method_returns_collection
17262
+ -------------------------------------------------------
17263
+ --------------------------------------------------------
17264
+ DocumentTest: test_last_class_method_returns_single_item
17265
+ --------------------------------------------------------
17266
+ -------------------------------------------------
17267
+ DocumentTest: test_multi_response_with_right_data
17268
+ -------------------------------------------------
17269
+ -------------------------------------------
17270
+ DocumentTest: test_will_have_key_properties
17271
+ -------------------------------------------
17272
+ --------------------------------------------------------
17273
+ DocumentTest: test_will_have_object_with_boolean?_method
17274
+ --------------------------------------------------------
17275
+ ------------------------------------------------
17276
+ DocumentTest: test_will_have_only_set_properties
17277
+ ------------------------------------------------
17278
+ ----------------------------------------------------------------
17279
+ DocumentTest: test_with_default_will_return_default_value_on_nil
17280
+ ----------------------------------------------------------------
17281
+ -----------------------------------
17282
+ DocumentTest: test_with_timestamps!
17283
+ -----------------------------------
17284
+ --------------------------------------
17285
+ DocumentTest: test_all_will_get_2_docs
17286
+ --------------------------------------
17287
+ ------------------------------------------------
17288
+ DocumentTest: test_all_will_get_FooBar_documents
17289
+ ------------------------------------------------
17290
+ ----------------------------------------------
17291
+ DocumentTest: test_default_will_be_avoerwriten
17292
+ ----------------------------------------------
17293
+ ------------------------------------------------
17294
+ DocumentTest: test_empty_find_should_raise_error
17295
+ ------------------------------------------------
17296
+ ------------------------------------------------------------
17297
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
17298
+ ------------------------------------------------------------
17299
+ --------------------------------------------------
17300
+ DocumentTest: test_find_will_get_a_FooBar_document
17301
+ --------------------------------------------------
17302
+ ----------------------------------------------------------------
17303
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
17304
+ ----------------------------------------------------------------
17305
+ --------------------------------------------------------
17306
+ DocumentTest: test_first_class_method_returns_collection
17307
+ --------------------------------------------------------
17308
+ ---------------------------------------------------------
17309
+ DocumentTest: test_first_class_method_returns_single_item
17310
+ ---------------------------------------------------------
17311
+ ---------------------------------------------
17312
+ DocumentTest: test_getting_not_found_document
17313
+ ---------------------------------------------
17314
+ -------------------------------------------------------
17315
+ DocumentTest: test_last_class_method_returns_collection
17316
+ -------------------------------------------------------
17317
+ --------------------------------------------------------
17318
+ DocumentTest: test_last_class_method_returns_single_item
17319
+ --------------------------------------------------------
17320
+ -------------------------------------------------
17321
+ DocumentTest: test_multi_response_with_right_data
17322
+ -------------------------------------------------
17323
+ -------------------------------------------
17324
+ DocumentTest: test_will_have_key_properties
17325
+ -------------------------------------------
17326
+ --------------------------------------------------------
17327
+ DocumentTest: test_will_have_object_with_boolean?_method
17328
+ --------------------------------------------------------
17329
+ ------------------------------------------------
17330
+ DocumentTest: test_will_have_only_set_properties
17331
+ ------------------------------------------------
17332
+ ----------------------------------------------------------------
17333
+ DocumentTest: test_with_default_will_return_default_value_on_nil
17334
+ ----------------------------------------------------------------
17335
+ -----------------------------------
17336
+ DocumentTest: test_with_timestamps!
17337
+ -----------------------------------
17338
+ --------------------------------------
17339
+ DocumentTest: test_all_will_get_2_docs
17340
+ --------------------------------------
17341
+ ------------------------------------------------
17342
+ DocumentTest: test_all_will_get_FooBar_documents
17343
+ ------------------------------------------------
17344
+ ----------------------------------------------
17345
+ DocumentTest: test_default_will_be_avoerwriten
17346
+ ----------------------------------------------
17347
+ ------------------------------------------------
17348
+ DocumentTest: test_empty_find_should_raise_error
17349
+ ------------------------------------------------
17350
+ ------------------------------------------------------------
17351
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
17352
+ ------------------------------------------------------------
17353
+ --------------------------------------------------
17354
+ DocumentTest: test_find_will_get_a_FooBar_document
17355
+ --------------------------------------------------
17356
+ ----------------------------------------------------------------
17357
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
17358
+ ----------------------------------------------------------------
17359
+ --------------------------------------------------------
17360
+ DocumentTest: test_first_class_method_returns_collection
17361
+ --------------------------------------------------------
17362
+ ---------------------------------------------------------
17363
+ DocumentTest: test_first_class_method_returns_single_item
17364
+ ---------------------------------------------------------
17365
+ ---------------------------------------------
17366
+ DocumentTest: test_getting_not_found_document
17367
+ ---------------------------------------------
17368
+ -------------------------------------------------------
17369
+ DocumentTest: test_last_class_method_returns_collection
17370
+ -------------------------------------------------------
17371
+ --------------------------------------------------------
17372
+ DocumentTest: test_last_class_method_returns_single_item
17373
+ --------------------------------------------------------
17374
+ -------------------------------------------------
17375
+ DocumentTest: test_multi_response_with_right_data
17376
+ -------------------------------------------------
17377
+ -------------------------------------------
17378
+ DocumentTest: test_will_have_key_properties
17379
+ -------------------------------------------
17380
+ --------------------------------------------------------
17381
+ DocumentTest: test_will_have_object_with_boolean?_method
17382
+ --------------------------------------------------------
17383
+ ------------------------------------------------
17384
+ DocumentTest: test_will_have_only_set_properties
17385
+ ------------------------------------------------
17386
+ ----------------------------------------------------------------
17387
+ DocumentTest: test_with_default_will_return_default_value_on_nil
17388
+ ----------------------------------------------------------------
17389
+ -----------------------------------
17390
+ DocumentTest: test_with_timestamps!
17391
+ -----------------------------------
17392
+ -------------------------------------------
17393
+ DocumentTest: test_all_first_returns_FooBar
17394
+ -------------------------------------------
17395
+ --------------------------------------
17396
+ DocumentTest: test_all_will_get_2_docs
17397
+ --------------------------------------
17398
+ ------------------------------------------------
17399
+ DocumentTest: test_all_will_get_FooBar_documents
17400
+ ------------------------------------------------
17401
+ ----------------------------------------------
17402
+ DocumentTest: test_default_will_be_avoerwriten
17403
+ ----------------------------------------------
17404
+ ------------------------------------------------
17405
+ DocumentTest: test_empty_find_should_raise_error
17406
+ ------------------------------------------------
17407
+ ------------------------------------------------------------
17408
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
17409
+ ------------------------------------------------------------
17410
+ --------------------------------------------------
17411
+ DocumentTest: test_find_will_get_a_FooBar_document
17412
+ --------------------------------------------------
17413
+ ----------------------------------------------------------------
17414
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
17415
+ ----------------------------------------------------------------
17416
+ --------------------------------------------------------
17417
+ DocumentTest: test_first_class_method_returns_collection
17418
+ --------------------------------------------------------
17419
+ ---------------------------------------------------------
17420
+ DocumentTest: test_first_class_method_returns_single_item
17421
+ ---------------------------------------------------------
17422
+ ---------------------------------------------
17423
+ DocumentTest: test_getting_not_found_document
17424
+ ---------------------------------------------
17425
+ -------------------------------------------------------
17426
+ DocumentTest: test_last_class_method_returns_collection
17427
+ -------------------------------------------------------
17428
+ --------------------------------------------------------
17429
+ DocumentTest: test_last_class_method_returns_single_item
17430
+ --------------------------------------------------------
17431
+ -------------------------------------------------
17432
+ DocumentTest: test_multi_response_with_right_data
17433
+ -------------------------------------------------
17434
+ -------------------------------------------
17435
+ DocumentTest: test_will_have_key_properties
17436
+ -------------------------------------------
17437
+ --------------------------------------------------------
17438
+ DocumentTest: test_will_have_object_with_boolean?_method
17439
+ --------------------------------------------------------
17440
+ ------------------------------------------------
17441
+ DocumentTest: test_will_have_only_set_properties
17442
+ ------------------------------------------------
17443
+ ----------------------------------------------------------------
17444
+ DocumentTest: test_with_default_will_return_default_value_on_nil
17445
+ ----------------------------------------------------------------
17446
+ -----------------------------------
17447
+ DocumentTest: test_with_timestamps!
17448
+ -----------------------------------
17449
+ -------------------------------------------
17450
+ DocumentTest: test_all_first_returns_FooBar
17451
+ -------------------------------------------
17452
+ ------------------------------------------
17453
+ DocumentTest: test_all_last_returns_FooBar
17454
+ ------------------------------------------
17455
+ --------------------------------------
17456
+ DocumentTest: test_all_will_get_2_docs
17457
+ --------------------------------------
17458
+ ------------------------------------------------
17459
+ DocumentTest: test_all_will_get_FooBar_documents
17460
+ ------------------------------------------------
17461
+ ----------------------------------------------
17462
+ DocumentTest: test_default_will_be_avoerwriten
17463
+ ----------------------------------------------
17464
+ ------------------------------------------------
17465
+ DocumentTest: test_empty_find_should_raise_error
17466
+ ------------------------------------------------
17467
+ ------------------------------------------------------------
17468
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
17469
+ ------------------------------------------------------------
17470
+ --------------------------------------------------
17471
+ DocumentTest: test_find_will_get_a_FooBar_document
17472
+ --------------------------------------------------
17473
+ ----------------------------------------------------------------
17474
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
17475
+ ----------------------------------------------------------------
17476
+ --------------------------------------------------------
17477
+ DocumentTest: test_first_class_method_returns_collection
17478
+ --------------------------------------------------------
17479
+ ---------------------------------------------------------
17480
+ DocumentTest: test_first_class_method_returns_single_item
17481
+ ---------------------------------------------------------
17482
+ ---------------------------------------------
17483
+ DocumentTest: test_getting_not_found_document
17484
+ ---------------------------------------------
17485
+ -------------------------------------------------------
17486
+ DocumentTest: test_last_class_method_returns_collection
17487
+ -------------------------------------------------------
17488
+ --------------------------------------------------------
17489
+ DocumentTest: test_last_class_method_returns_single_item
17490
+ --------------------------------------------------------
17491
+ -------------------------------------------------
17492
+ DocumentTest: test_multi_response_with_right_data
17493
+ -------------------------------------------------
17494
+ -------------------------------------------
17495
+ DocumentTest: test_will_have_key_properties
17496
+ -------------------------------------------
17497
+ --------------------------------------------------------
17498
+ DocumentTest: test_will_have_object_with_boolean?_method
17499
+ --------------------------------------------------------
17500
+ ------------------------------------------------
17501
+ DocumentTest: test_will_have_only_set_properties
17502
+ ------------------------------------------------
17503
+ ----------------------------------------------------------------
17504
+ DocumentTest: test_with_default_will_return_default_value_on_nil
17505
+ ----------------------------------------------------------------
17506
+ -----------------------------------
17507
+ DocumentTest: test_with_timestamps!
17508
+ -----------------------------------
17509
+ -------------------------------------------
17510
+ DocumentTest: test_all_first_returns_FooBar
17511
+ -------------------------------------------
17512
+ ------------------------------------------
17513
+ DocumentTest: test_all_last_returns_FooBar
17514
+ ------------------------------------------
17515
+ --------------------------------------
17516
+ DocumentTest: test_all_will_get_2_docs
17517
+ --------------------------------------
17518
+ ------------------------------------------------
17519
+ DocumentTest: test_all_will_get_FooBar_documents
17520
+ ------------------------------------------------
17521
+ ----------------------------------------------
17522
+ DocumentTest: test_default_will_be_avoerwriten
17523
+ ----------------------------------------------
17524
+ ------------------------------------------------
17525
+ DocumentTest: test_empty_find_should_raise_error
17526
+ ------------------------------------------------
17527
+ ------------------------------------------------------------
17528
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
17529
+ ------------------------------------------------------------
17530
+ --------------------------------------------------
17531
+ DocumentTest: test_find_will_get_a_FooBar_document
17532
+ --------------------------------------------------
17533
+ ----------------------------------------------------------------
17534
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
17535
+ ----------------------------------------------------------------
17536
+ --------------------------------------------------------
17537
+ DocumentTest: test_first_class_method_returns_collection
17538
+ --------------------------------------------------------
17539
+ ---------------------------------------------------------
17540
+ DocumentTest: test_first_class_method_returns_single_item
17541
+ ---------------------------------------------------------
17542
+ ---------------------------------------------
17543
+ DocumentTest: test_getting_not_found_document
17544
+ ---------------------------------------------
17545
+ -------------------------------------------------------
17546
+ DocumentTest: test_last_class_method_returns_collection
17547
+ -------------------------------------------------------
17548
+ --------------------------------------------------------
17549
+ DocumentTest: test_last_class_method_returns_single_item
17550
+ --------------------------------------------------------
17551
+ -------------------------------------------------
17552
+ DocumentTest: test_multi_response_with_right_data
17553
+ -------------------------------------------------
17554
+ -------------------------------------------
17555
+ DocumentTest: test_will_have_key_properties
17556
+ -------------------------------------------
17557
+ --------------------------------------------------------
17558
+ DocumentTest: test_will_have_object_with_boolean?_method
17559
+ --------------------------------------------------------
17560
+ ------------------------------------------------
17561
+ DocumentTest: test_will_have_only_set_properties
17562
+ ------------------------------------------------
17563
+ ----------------------------------------------------------------
17564
+ DocumentTest: test_with_default_will_return_default_value_on_nil
17565
+ ----------------------------------------------------------------
17566
+ -----------------------------------
17567
+ DocumentTest: test_with_timestamps!
17568
+ -----------------------------------
17569
+ --------------------------------------
17570
+ DocumentTest: test_all_will_get_2_docs
17571
+ --------------------------------------
17572
+ ------------------------------------------------
17573
+ DocumentTest: test_all_will_get_FooBar_documents
17574
+ ------------------------------------------------
17575
+ ----------------------------------------------
17576
+ DocumentTest: test_default_will_be_avoerwriten
17577
+ ----------------------------------------------
17578
+ ------------------------------------------------
17579
+ DocumentTest: test_empty_find_should_raise_error
17580
+ ------------------------------------------------
17581
+ ------------------------------------------------------------
17582
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
17583
+ ------------------------------------------------------------
17584
+ --------------------------------------------------
17585
+ DocumentTest: test_find_will_get_a_FooBar_document
17586
+ --------------------------------------------------
17587
+ ----------------------------------------------------------------
17588
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
17589
+ ----------------------------------------------------------------
17590
+ ---------------------------------------------
17591
+ DocumentTest: test_getting_not_found_document
17592
+ ---------------------------------------------
17593
+ -------------------------------------------------
17594
+ DocumentTest: test_multi_response_with_right_data
17595
+ -------------------------------------------------
17596
+ -----------------------------------------
17597
+ DocumentTest: test_new_in_memory_document
17598
+ -----------------------------------------
17599
+ -------------------------------------------
17600
+ DocumentTest: test_will_have_key_properties
17601
+ -------------------------------------------
17602
+ --------------------------------------------------------
17603
+ DocumentTest: test_will_have_object_with_boolean?_method
17604
+ --------------------------------------------------------
17605
+ ------------------------------------------------
17606
+ DocumentTest: test_will_have_only_set_properties
17607
+ ------------------------------------------------
17608
+ ----------------------------------------------------------------
17609
+ DocumentTest: test_with_default_will_return_default_value_on_nil
17610
+ ----------------------------------------------------------------
17611
+ -----------------------------------
17612
+ DocumentTest: test_with_timestamps!
17613
+ -----------------------------------
17614
+ --------------------------------------
17615
+ DocumentTest: test_all_will_get_2_docs
17616
+ --------------------------------------
17617
+ ------------------------------------------------
17618
+ DocumentTest: test_all_will_get_FooBar_documents
17619
+ ------------------------------------------------
17620
+ ----------------------------------------------
17621
+ DocumentTest: test_default_will_be_avoerwriten
17622
+ ----------------------------------------------
17623
+ ------------------------------------------------
17624
+ DocumentTest: test_empty_find_should_raise_error
17625
+ ------------------------------------------------
17626
+ ------------------------------------------------------------
17627
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
17628
+ ------------------------------------------------------------
17629
+ --------------------------------------------------
17630
+ DocumentTest: test_find_will_get_a_FooBar_document
17631
+ --------------------------------------------------
17632
+ ----------------------------------------------------------------
17633
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
17634
+ ----------------------------------------------------------------
17635
+ ---------------------------------------------
17636
+ DocumentTest: test_getting_not_found_document
17637
+ ---------------------------------------------
17638
+ -------------------------------------------------
17639
+ DocumentTest: test_multi_response_with_right_data
17640
+ -------------------------------------------------
17641
+ -----------------------------------------
17642
+ DocumentTest: test_new_in_memory_document
17643
+ -----------------------------------------
17644
+ -------------------------------------------
17645
+ DocumentTest: test_will_have_key_properties
17646
+ -------------------------------------------
17647
+ --------------------------------------------------------
17648
+ DocumentTest: test_will_have_object_with_boolean?_method
17649
+ --------------------------------------------------------
17650
+ ------------------------------------------------
17651
+ DocumentTest: test_will_have_only_set_properties
17652
+ ------------------------------------------------
17653
+ ----------------------------------------------------------------
17654
+ DocumentTest: test_with_default_will_return_default_value_on_nil
17655
+ ----------------------------------------------------------------
17656
+ -----------------------------------
17657
+ DocumentTest: test_with_timestamps!
17658
+ -----------------------------------
17659
+ --------------------------------------
17660
+ DocumentTest: test_all_will_get_2_docs
17661
+ --------------------------------------
17662
+ ------------------------------------------------
17663
+ DocumentTest: test_all_will_get_FooBar_documents
17664
+ ------------------------------------------------
17665
+ ----------------------------------------------
17666
+ DocumentTest: test_default_will_be_avoerwriten
17667
+ ----------------------------------------------
17668
+ ------------------------------------------------
17669
+ DocumentTest: test_empty_find_should_raise_error
17670
+ ------------------------------------------------
17671
+ ------------------------------------------------------------
17672
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
17673
+ ------------------------------------------------------------
17674
+ --------------------------------------------------
17675
+ DocumentTest: test_find_will_get_a_FooBar_document
17676
+ --------------------------------------------------
17677
+ ----------------------------------------------------------------
17678
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
17679
+ ----------------------------------------------------------------
17680
+ ---------------------------------------------
17681
+ DocumentTest: test_getting_not_found_document
17682
+ ---------------------------------------------
17683
+ -------------------------------------------------
17684
+ DocumentTest: test_multi_response_with_right_data
17685
+ -------------------------------------------------
17686
+ -----------------------------------------
17687
+ DocumentTest: test_new_in_memory_document
17688
+ -----------------------------------------
17689
+ -------------------------------------------
17690
+ DocumentTest: test_will_have_key_properties
17691
+ -------------------------------------------
17692
+ --------------------------------------------------------
17693
+ DocumentTest: test_will_have_object_with_boolean?_method
17694
+ --------------------------------------------------------
17695
+ ------------------------------------------------
17696
+ DocumentTest: test_will_have_only_set_properties
17697
+ ------------------------------------------------
17698
+ ----------------------------------------------------------------
17699
+ DocumentTest: test_with_default_will_return_default_value_on_nil
17700
+ ----------------------------------------------------------------
17701
+ -----------------------------------
17702
+ DocumentTest: test_with_timestamps!
17703
+ -----------------------------------
17704
+ --------------------------------------
17705
+ DocumentTest: test_all_will_get_2_docs
17706
+ --------------------------------------
17707
+ ------------------------------------------------
17708
+ DocumentTest: test_all_will_get_FooBar_documents
17709
+ ------------------------------------------------
17710
+ ----------------------------------------------
17711
+ DocumentTest: test_default_will_be_avoerwriten
17712
+ ----------------------------------------------
17713
+ ------------------------------------------------
17714
+ DocumentTest: test_empty_find_should_raise_error
17715
+ ------------------------------------------------
17716
+ ------------------------------------------------------------
17717
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
17718
+ ------------------------------------------------------------
17719
+ --------------------------------------------------
17720
+ DocumentTest: test_find_will_get_a_FooBar_document
17721
+ --------------------------------------------------
17722
+ ----------------------------------------------------------------
17723
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
17724
+ ----------------------------------------------------------------
17725
+ ---------------------------------------------
17726
+ DocumentTest: test_getting_not_found_document
17727
+ ---------------------------------------------
17728
+ -------------------------------------------------
17729
+ DocumentTest: test_multi_response_with_right_data
17730
+ -------------------------------------------------
17731
+ -----------------------------------------
17732
+ DocumentTest: test_new_in_memory_document
17733
+ -----------------------------------------
17734
+ -------------------------------------------
17735
+ DocumentTest: test_will_have_key_properties
17736
+ -------------------------------------------
17737
+ --------------------------------------------------------
17738
+ DocumentTest: test_will_have_object_with_boolean?_method
17739
+ --------------------------------------------------------
17740
+ ------------------------------------------------
17741
+ DocumentTest: test_will_have_only_set_properties
17742
+ ------------------------------------------------
17743
+ ----------------------------------------------------------------
17744
+ DocumentTest: test_with_default_will_return_default_value_on_nil
17745
+ ----------------------------------------------------------------
17746
+ -----------------------------------
17747
+ DocumentTest: test_with_timestamps!
17748
+ -----------------------------------
17749
+ --------------------------------------
17750
+ DocumentTest: test_all_will_get_2_docs
17751
+ --------------------------------------
17752
+ ------------------------------------------------
17753
+ DocumentTest: test_all_will_get_FooBar_documents
17754
+ ------------------------------------------------
17755
+ ----------------------------------------------
17756
+ DocumentTest: test_default_will_be_avoerwriten
17757
+ ----------------------------------------------
17758
+ ------------------------------------------------
17759
+ DocumentTest: test_empty_find_should_raise_error
17760
+ ------------------------------------------------
17761
+ ------------------------------------------------------------
17762
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
17763
+ ------------------------------------------------------------
17764
+ --------------------------------------------------
17765
+ DocumentTest: test_find_will_get_a_FooBar_document
17766
+ --------------------------------------------------
17767
+ ----------------------------------------------------------------
17768
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
17769
+ ----------------------------------------------------------------
17770
+ ---------------------------------------------
17771
+ DocumentTest: test_getting_not_found_document
17772
+ ---------------------------------------------
17773
+ -------------------------------------------------
17774
+ DocumentTest: test_multi_response_with_right_data
17775
+ -------------------------------------------------
17776
+ -----------------------------------------
17777
+ DocumentTest: test_new_in_memory_document
17778
+ -----------------------------------------
17779
+ -------------------------------------------
17780
+ DocumentTest: test_will_have_key_properties
17781
+ -------------------------------------------
17782
+ --------------------------------------------------------
17783
+ DocumentTest: test_will_have_object_with_boolean?_method
17784
+ --------------------------------------------------------
17785
+ ------------------------------------------------
17786
+ DocumentTest: test_will_have_only_set_properties
17787
+ ------------------------------------------------
17788
+ ----------------------------------------------------------------
17789
+ DocumentTest: test_with_default_will_return_default_value_on_nil
17790
+ ----------------------------------------------------------------
17791
+ -----------------------------------
17792
+ DocumentTest: test_with_timestamps!
17793
+ -----------------------------------
17794
+ --------------------------------------
17795
+ DocumentTest: test_all_will_get_2_docs
17796
+ --------------------------------------
17797
+ ------------------------------------------------
17798
+ DocumentTest: test_all_will_get_FooBar_documents
17799
+ ------------------------------------------------
17800
+ ----------------------------------------------
17801
+ DocumentTest: test_default_will_be_avoerwriten
17802
+ ----------------------------------------------
17803
+ ------------------------------------------------
17804
+ DocumentTest: test_empty_find_should_raise_error
17805
+ ------------------------------------------------
17806
+ ------------------------------------------------------------
17807
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
17808
+ ------------------------------------------------------------
17809
+ --------------------------------------------------
17810
+ DocumentTest: test_find_will_get_a_FooBar_document
17811
+ --------------------------------------------------
17812
+ ----------------------------------------------------------------
17813
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
17814
+ ----------------------------------------------------------------
17815
+ ---------------------------------------------
17816
+ DocumentTest: test_getting_not_found_document
17817
+ ---------------------------------------------
17818
+ -------------------------------------------------
17819
+ DocumentTest: test_multi_response_with_right_data
17820
+ -------------------------------------------------
17821
+ -----------------------------------------
17822
+ DocumentTest: test_new_in_memory_document
17823
+ -----------------------------------------
17824
+ -------------------------------------------
17825
+ DocumentTest: test_will_have_key_properties
17826
+ -------------------------------------------
17827
+ --------------------------------------------------------
17828
+ DocumentTest: test_will_have_object_with_boolean?_method
17829
+ --------------------------------------------------------
17830
+ ------------------------------------------------
17831
+ DocumentTest: test_will_have_only_set_properties
17832
+ ------------------------------------------------
17833
+ ----------------------------------------------------------------
17834
+ DocumentTest: test_with_default_will_return_default_value_on_nil
17835
+ ----------------------------------------------------------------
17836
+ -----------------------------------
17837
+ DocumentTest: test_with_timestamps!
17838
+ -----------------------------------
17839
+ --------------------------------------
17840
+ DocumentTest: test_all_will_get_2_docs
17841
+ --------------------------------------
17842
+ ------------------------------------------------
17843
+ DocumentTest: test_all_will_get_FooBar_documents
17844
+ ------------------------------------------------
17845
+ ----------------------------------------------
17846
+ DocumentTest: test_default_will_be_avoerwriten
17847
+ ----------------------------------------------
17848
+ ------------------------------------------------
17849
+ DocumentTest: test_empty_find_should_raise_error
17850
+ ------------------------------------------------
17851
+ ------------------------------------------------------------
17852
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
17853
+ ------------------------------------------------------------
17854
+ --------------------------------------------------
17855
+ DocumentTest: test_find_will_get_a_FooBar_document
17856
+ --------------------------------------------------
17857
+ ----------------------------------------------------------------
17858
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
17859
+ ----------------------------------------------------------------
17860
+ ---------------------------------------------
17861
+ DocumentTest: test_getting_not_found_document
17862
+ ---------------------------------------------
17863
+ -------------------------------------------------
17864
+ DocumentTest: test_multi_response_with_right_data
17865
+ -------------------------------------------------
17866
+ -----------------------------------------
17867
+ DocumentTest: test_new_in_memory_document
17868
+ -----------------------------------------
17869
+ -------------------------------------------
17870
+ DocumentTest: test_will_have_key_properties
17871
+ -------------------------------------------
17872
+ --------------------------------------------------------
17873
+ DocumentTest: test_will_have_object_with_boolean?_method
17874
+ --------------------------------------------------------
17875
+ ------------------------------------------------
17876
+ DocumentTest: test_will_have_only_set_properties
17877
+ ------------------------------------------------
17878
+ ----------------------------------------------------------------
17879
+ DocumentTest: test_with_default_will_return_default_value_on_nil
17880
+ ----------------------------------------------------------------
17881
+ -----------------------------------
17882
+ DocumentTest: test_with_timestamps!
17883
+ -----------------------------------
17884
+ --------------------------------------
17885
+ DocumentTest: test_all_will_get_2_docs
17886
+ --------------------------------------
17887
+ ------------------------------------------------
17888
+ DocumentTest: test_all_will_get_FooBar_documents
17889
+ ------------------------------------------------
17890
+ ----------------------------------------------
17891
+ DocumentTest: test_default_will_be_avoerwriten
17892
+ ----------------------------------------------
17893
+ ------------------------------------------------
17894
+ DocumentTest: test_empty_find_should_raise_error
17895
+ ------------------------------------------------
17896
+ ------------------------------------------------------------
17897
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
17898
+ ------------------------------------------------------------
17899
+ --------------------------------------------------
17900
+ DocumentTest: test_find_will_get_a_FooBar_document
17901
+ --------------------------------------------------
17902
+ ----------------------------------------------------------------
17903
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
17904
+ ----------------------------------------------------------------
17905
+ ---------------------------------------------
17906
+ DocumentTest: test_getting_not_found_document
17907
+ ---------------------------------------------
17908
+ -------------------------------------------------
17909
+ DocumentTest: test_multi_response_with_right_data
17910
+ -------------------------------------------------
17911
+ -----------------------------------------
17912
+ DocumentTest: test_new_in_memory_document
17913
+ -----------------------------------------
17914
+ -------------------------------------------
17915
+ DocumentTest: test_will_have_key_properties
17916
+ -------------------------------------------
17917
+ --------------------------------------------------------
17918
+ DocumentTest: test_will_have_object_with_boolean?_method
17919
+ --------------------------------------------------------
17920
+ ------------------------------------------------
17921
+ DocumentTest: test_will_have_only_set_properties
17922
+ ------------------------------------------------
17923
+ ----------------------------------------------------------------
17924
+ DocumentTest: test_with_default_will_return_default_value_on_nil
17925
+ ----------------------------------------------------------------
17926
+ -----------------------------------
17927
+ DocumentTest: test_with_timestamps!
17928
+ -----------------------------------
17929
+ --------------------------------------
17930
+ DocumentTest: test_all_will_get_2_docs
17931
+ --------------------------------------
17932
+ ------------------------------------------------
17933
+ DocumentTest: test_all_will_get_FooBar_documents
17934
+ ------------------------------------------------
17935
+ ----------------------------------------------
17936
+ DocumentTest: test_default_will_be_avoerwriten
17937
+ ----------------------------------------------
17938
+ ------------------------------------------------
17939
+ DocumentTest: test_empty_find_should_raise_error
17940
+ ------------------------------------------------
17941
+ ------------------------------------------------------------
17942
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
17943
+ ------------------------------------------------------------
17944
+ --------------------------------------------------
17945
+ DocumentTest: test_find_will_get_a_FooBar_document
17946
+ --------------------------------------------------
17947
+ ----------------------------------------------------------------
17948
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
17949
+ ----------------------------------------------------------------
17950
+ ---------------------------------------------
17951
+ DocumentTest: test_getting_not_found_document
17952
+ ---------------------------------------------
17953
+ -------------------------------------------------
17954
+ DocumentTest: test_multi_response_with_right_data
17955
+ -------------------------------------------------
17956
+ -----------------------------------------
17957
+ DocumentTest: test_new_in_memory_document
17958
+ -----------------------------------------
17959
+ -------------------------------------------
17960
+ DocumentTest: test_will_have_key_properties
17961
+ -------------------------------------------
17962
+ --------------------------------------------------------
17963
+ DocumentTest: test_will_have_object_with_boolean?_method
17964
+ --------------------------------------------------------
17965
+ ------------------------------------------------
17966
+ DocumentTest: test_will_have_only_set_properties
17967
+ ------------------------------------------------
17968
+ ----------------------------------------------------------------
17969
+ DocumentTest: test_with_default_will_return_default_value_on_nil
17970
+ ----------------------------------------------------------------
17971
+ -----------------------------------
17972
+ DocumentTest: test_with_timestamps!
17973
+ -----------------------------------
17974
+ --------------------------------------
17975
+ DocumentTest: test_all_will_get_2_docs
17976
+ --------------------------------------
17977
+ ------------------------------------------------
17978
+ DocumentTest: test_all_will_get_FooBar_documents
17979
+ ------------------------------------------------
17980
+ ----------------------------------------------
17981
+ DocumentTest: test_default_will_be_avoerwriten
17982
+ ----------------------------------------------
17983
+ ------------------------------------------------
17984
+ DocumentTest: test_empty_find_should_raise_error
17985
+ ------------------------------------------------
17986
+ ------------------------------------------------------------
17987
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
17988
+ ------------------------------------------------------------
17989
+ --------------------------------------------------
17990
+ DocumentTest: test_find_will_get_a_FooBar_document
17991
+ --------------------------------------------------
17992
+ ----------------------------------------------------------------
17993
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
17994
+ ----------------------------------------------------------------
17995
+ ---------------------------------------------
17996
+ DocumentTest: test_getting_not_found_document
17997
+ ---------------------------------------------
17998
+ -------------------------------------------------
17999
+ DocumentTest: test_multi_response_with_right_data
18000
+ -------------------------------------------------
18001
+ -----------------------------------------
18002
+ DocumentTest: test_new_in_memory_document
18003
+ -----------------------------------------
18004
+ -------------------------------------------
18005
+ DocumentTest: test_will_have_key_properties
18006
+ -------------------------------------------
18007
+ --------------------------------------------------------
18008
+ DocumentTest: test_will_have_object_with_boolean?_method
18009
+ --------------------------------------------------------
18010
+ ------------------------------------------------
18011
+ DocumentTest: test_will_have_only_set_properties
18012
+ ------------------------------------------------
18013
+ ----------------------------------------------------------------
18014
+ DocumentTest: test_with_default_will_return_default_value_on_nil
18015
+ ----------------------------------------------------------------
18016
+ -----------------------------------
18017
+ DocumentTest: test_with_timestamps!
18018
+ -----------------------------------
18019
+ --------------------------------------
18020
+ DocumentTest: test_all_will_get_2_docs
18021
+ --------------------------------------
18022
+ ------------------------------------------------
18023
+ DocumentTest: test_all_will_get_FooBar_documents
18024
+ ------------------------------------------------
18025
+ ----------------------------------------------
18026
+ DocumentTest: test_default_will_be_avoerwriten
18027
+ ----------------------------------------------
18028
+ ------------------------------------------------
18029
+ DocumentTest: test_empty_find_should_raise_error
18030
+ ------------------------------------------------
18031
+ ------------------------------------------------------------
18032
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
18033
+ ------------------------------------------------------------
18034
+ --------------------------------------------------
18035
+ DocumentTest: test_find_will_get_a_FooBar_document
18036
+ --------------------------------------------------
18037
+ ----------------------------------------------------------------
18038
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
18039
+ ----------------------------------------------------------------
18040
+ ---------------------------------------------
18041
+ DocumentTest: test_getting_not_found_document
18042
+ ---------------------------------------------
18043
+ -------------------------------------------------
18044
+ DocumentTest: test_multi_response_with_right_data
18045
+ -------------------------------------------------
18046
+ -----------------------------------------
18047
+ DocumentTest: test_new_in_memory_document
18048
+ -----------------------------------------
18049
+ -------------------------------------------
18050
+ DocumentTest: test_will_have_key_properties
18051
+ -------------------------------------------
18052
+ --------------------------------------------------------
18053
+ DocumentTest: test_will_have_object_with_boolean?_method
18054
+ --------------------------------------------------------
18055
+ ------------------------------------------------
18056
+ DocumentTest: test_will_have_only_set_properties
18057
+ ------------------------------------------------
18058
+ ----------------------------------------------------------------
18059
+ DocumentTest: test_with_default_will_return_default_value_on_nil
18060
+ ----------------------------------------------------------------
18061
+ -----------------------------------
18062
+ DocumentTest: test_with_timestamps!
18063
+ -----------------------------------
18064
+ --------------------------------------
18065
+ DocumentTest: test_all_will_get_2_docs
18066
+ --------------------------------------
18067
+ ------------------------------------------------
18068
+ DocumentTest: test_all_will_get_FooBar_documents
18069
+ ------------------------------------------------
18070
+ ----------------------------------------------
18071
+ DocumentTest: test_default_will_be_avoerwriten
18072
+ ----------------------------------------------
18073
+ ------------------------------------------------
18074
+ DocumentTest: test_empty_find_should_raise_error
18075
+ ------------------------------------------------
18076
+ ------------------------------------------------------------
18077
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
18078
+ ------------------------------------------------------------
18079
+ --------------------------------------------------
18080
+ DocumentTest: test_find_will_get_a_FooBar_document
18081
+ --------------------------------------------------
18082
+ ----------------------------------------------------------------
18083
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
18084
+ ----------------------------------------------------------------
18085
+ ---------------------------------------------
18086
+ DocumentTest: test_getting_not_found_document
18087
+ ---------------------------------------------
18088
+ -------------------------------------------------
18089
+ DocumentTest: test_multi_response_with_right_data
18090
+ -------------------------------------------------
18091
+ -----------------------------------------
18092
+ DocumentTest: test_new_in_memory_document
18093
+ -----------------------------------------
18094
+ -------------------------------------------
18095
+ DocumentTest: test_will_have_key_properties
18096
+ -------------------------------------------
18097
+ --------------------------------------------------------
18098
+ DocumentTest: test_will_have_object_with_boolean?_method
18099
+ --------------------------------------------------------
18100
+ ------------------------------------------------
18101
+ DocumentTest: test_will_have_only_set_properties
18102
+ ------------------------------------------------
18103
+ ----------------------------------------------------------------
18104
+ DocumentTest: test_with_default_will_return_default_value_on_nil
18105
+ ----------------------------------------------------------------
18106
+ -----------------------------------
18107
+ DocumentTest: test_with_timestamps!
18108
+ -----------------------------------
18109
+ --------------------------------------
18110
+ DocumentTest: test_all_will_get_2_docs
18111
+ --------------------------------------
18112
+ ------------------------------------------------
18113
+ DocumentTest: test_all_will_get_FooBar_documents
18114
+ ------------------------------------------------
18115
+ ----------------------------------------------
18116
+ DocumentTest: test_default_will_be_avoerwriten
18117
+ ----------------------------------------------
18118
+ ------------------------------------------------
18119
+ DocumentTest: test_empty_find_should_raise_error
18120
+ ------------------------------------------------
18121
+ ------------------------------------------------------------
18122
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
18123
+ ------------------------------------------------------------
18124
+ --------------------------------------------------
18125
+ DocumentTest: test_find_will_get_a_FooBar_document
18126
+ --------------------------------------------------
18127
+ ----------------------------------------------------------------
18128
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
18129
+ ----------------------------------------------------------------
18130
+ ---------------------------------------------
18131
+ DocumentTest: test_getting_not_found_document
18132
+ ---------------------------------------------
18133
+ -------------------------------------------------
18134
+ DocumentTest: test_multi_response_with_right_data
18135
+ -------------------------------------------------
18136
+ -----------------------------------------
18137
+ DocumentTest: test_new_in_memory_document
18138
+ -----------------------------------------
18139
+ -------------------------------------------
18140
+ DocumentTest: test_will_have_key_properties
18141
+ -------------------------------------------
18142
+ --------------------------------------------------------
18143
+ DocumentTest: test_will_have_object_with_boolean?_method
18144
+ --------------------------------------------------------
18145
+ ------------------------------------------------
18146
+ DocumentTest: test_will_have_only_set_properties
18147
+ ------------------------------------------------
18148
+ ----------------------------------------------------------------
18149
+ DocumentTest: test_with_default_will_return_default_value_on_nil
18150
+ ----------------------------------------------------------------
18151
+ -----------------------------------
18152
+ DocumentTest: test_with_timestamps!
18153
+ -----------------------------------
18154
+ --------------------------------------
18155
+ DocumentTest: test_all_will_get_2_docs
18156
+ --------------------------------------
18157
+ ------------------------------------------------
18158
+ DocumentTest: test_all_will_get_FooBar_documents
18159
+ ------------------------------------------------
18160
+ ----------------------------------------------
18161
+ DocumentTest: test_default_will_be_avoerwriten
18162
+ ----------------------------------------------
18163
+ ------------------------------------------------
18164
+ DocumentTest: test_empty_find_should_raise_error
18165
+ ------------------------------------------------
18166
+ ------------------------------------------------------------
18167
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
18168
+ ------------------------------------------------------------
18169
+ --------------------------------------------------
18170
+ DocumentTest: test_find_will_get_a_FooBar_document
18171
+ --------------------------------------------------
18172
+ ----------------------------------------------------------------
18173
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
18174
+ ----------------------------------------------------------------
18175
+ ---------------------------------------------
18176
+ DocumentTest: test_getting_not_found_document
18177
+ ---------------------------------------------
18178
+ -------------------------------------------------
18179
+ DocumentTest: test_multi_response_with_right_data
18180
+ -------------------------------------------------
18181
+ -----------------------------------------
18182
+ DocumentTest: test_new_in_memory_document
18183
+ -----------------------------------------
18184
+ -------------------------------------------
18185
+ DocumentTest: test_will_have_key_properties
18186
+ -------------------------------------------
18187
+ --------------------------------------------------------
18188
+ DocumentTest: test_will_have_object_with_boolean?_method
18189
+ --------------------------------------------------------
18190
+ ------------------------------------------------
18191
+ DocumentTest: test_will_have_only_set_properties
18192
+ ------------------------------------------------
18193
+ ----------------------------------------------------------------
18194
+ DocumentTest: test_with_default_will_return_default_value_on_nil
18195
+ ----------------------------------------------------------------
18196
+ -----------------------------------
18197
+ DocumentTest: test_with_timestamps!
18198
+ -----------------------------------
18199
+ --------------------------------------
18200
+ DocumentTest: test_all_will_get_2_docs
18201
+ --------------------------------------
18202
+ ------------------------------------------------
18203
+ DocumentTest: test_all_will_get_FooBar_documents
18204
+ ------------------------------------------------
18205
+ ----------------------------------------------
18206
+ DocumentTest: test_default_will_be_avoerwriten
18207
+ ----------------------------------------------
18208
+ ------------------------------------------------
18209
+ DocumentTest: test_empty_find_should_raise_error
18210
+ ------------------------------------------------
18211
+ ------------------------------------------------------------
18212
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
18213
+ ------------------------------------------------------------
18214
+ --------------------------------------------------
18215
+ DocumentTest: test_find_will_get_a_FooBar_document
18216
+ --------------------------------------------------
18217
+ ----------------------------------------------------------------
18218
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
18219
+ ----------------------------------------------------------------
18220
+ ---------------------------------------------
18221
+ DocumentTest: test_getting_not_found_document
18222
+ ---------------------------------------------
18223
+ -------------------------------------------------
18224
+ DocumentTest: test_multi_response_with_right_data
18225
+ -------------------------------------------------
18226
+ -----------------------------------------
18227
+ DocumentTest: test_new_in_memory_document
18228
+ -----------------------------------------
18229
+ -------------------------------------------
18230
+ DocumentTest: test_will_have_key_properties
18231
+ -------------------------------------------
18232
+ --------------------------------------------------------
18233
+ DocumentTest: test_will_have_object_with_boolean?_method
18234
+ --------------------------------------------------------
18235
+ ------------------------------------------------
18236
+ DocumentTest: test_will_have_only_set_properties
18237
+ ------------------------------------------------
18238
+ ----------------------------------------------------------------
18239
+ DocumentTest: test_with_default_will_return_default_value_on_nil
18240
+ ----------------------------------------------------------------
18241
+ -----------------------------------
18242
+ DocumentTest: test_with_timestamps!
18243
+ -----------------------------------
18244
+ --------------------------------------
18245
+ DocumentTest: test_all_will_get_2_docs
18246
+ --------------------------------------
18247
+ ------------------------------------------------
18248
+ DocumentTest: test_all_will_get_FooBar_documents
18249
+ ------------------------------------------------
18250
+ ----------------------------------------------
18251
+ DocumentTest: test_default_will_be_avoerwriten
18252
+ ----------------------------------------------
18253
+ ------------------------------------------------
18254
+ DocumentTest: test_empty_find_should_raise_error
18255
+ ------------------------------------------------
18256
+ ------------------------------------------------------------
18257
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
18258
+ ------------------------------------------------------------
18259
+ --------------------------------------------------
18260
+ DocumentTest: test_find_will_get_a_FooBar_document
18261
+ --------------------------------------------------
18262
+ ----------------------------------------------------------------
18263
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
18264
+ ----------------------------------------------------------------
18265
+ ---------------------------------------------
18266
+ DocumentTest: test_getting_not_found_document
18267
+ ---------------------------------------------
18268
+ -------------------------------------------------
18269
+ DocumentTest: test_multi_response_with_right_data
18270
+ -------------------------------------------------
18271
+ -----------------------------------------
18272
+ DocumentTest: test_new_in_memory_document
18273
+ -----------------------------------------
18274
+ -------------------------------------------
18275
+ DocumentTest: test_will_have_key_properties
18276
+ -------------------------------------------
18277
+ --------------------------------------------------------
18278
+ DocumentTest: test_will_have_object_with_boolean?_method
18279
+ --------------------------------------------------------
18280
+ ------------------------------------------------
18281
+ DocumentTest: test_will_have_only_set_properties
18282
+ ------------------------------------------------
18283
+ ----------------------------------------------------------------
18284
+ DocumentTest: test_with_default_will_return_default_value_on_nil
18285
+ ----------------------------------------------------------------
18286
+ -----------------------------------
18287
+ DocumentTest: test_with_timestamps!
18288
+ -----------------------------------
18289
+ --------------------------------------
18290
+ DocumentTest: test_all_will_get_2_docs
18291
+ --------------------------------------
18292
+ ------------------------------------------------
18293
+ DocumentTest: test_all_will_get_FooBar_documents
18294
+ ------------------------------------------------
18295
+ ----------------------------------------------
18296
+ DocumentTest: test_default_will_be_avoerwriten
18297
+ ----------------------------------------------
18298
+ ------------------------------------------------
18299
+ DocumentTest: test_empty_find_should_raise_error
18300
+ ------------------------------------------------
18301
+ ------------------------------------------------------------
18302
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
18303
+ ------------------------------------------------------------
18304
+ --------------------------------------------------
18305
+ DocumentTest: test_find_will_get_a_FooBar_document
18306
+ --------------------------------------------------
18307
+ ----------------------------------------------------------------
18308
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
18309
+ ----------------------------------------------------------------
18310
+ ---------------------------------------------
18311
+ DocumentTest: test_getting_not_found_document
18312
+ ---------------------------------------------
18313
+ -------------------------------------------------
18314
+ DocumentTest: test_multi_response_with_right_data
18315
+ -------------------------------------------------
18316
+ -----------------------------------------
18317
+ DocumentTest: test_new_in_memory_document
18318
+ -----------------------------------------
18319
+ -------------------------------------------
18320
+ DocumentTest: test_will_have_key_properties
18321
+ -------------------------------------------
18322
+ --------------------------------------------------------
18323
+ DocumentTest: test_will_have_object_with_boolean?_method
18324
+ --------------------------------------------------------
18325
+ ------------------------------------------------
18326
+ DocumentTest: test_will_have_only_set_properties
18327
+ ------------------------------------------------
18328
+ ----------------------------------------------------------------
18329
+ DocumentTest: test_with_default_will_return_default_value_on_nil
18330
+ ----------------------------------------------------------------
18331
+ -----------------------------------
18332
+ DocumentTest: test_with_timestamps!
18333
+ -----------------------------------
18334
+ --------------------------------------
18335
+ DocumentTest: test_all_will_get_2_docs
18336
+ --------------------------------------
18337
+ ------------------------------------------------
18338
+ DocumentTest: test_all_will_get_FooBar_documents
18339
+ ------------------------------------------------
18340
+ ----------------------------------------------
18341
+ DocumentTest: test_default_will_be_avoerwriten
18342
+ ----------------------------------------------
18343
+ ------------------------------------------------
18344
+ DocumentTest: test_empty_find_should_raise_error
18345
+ ------------------------------------------------
18346
+ ------------------------------------------------------------
18347
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
18348
+ ------------------------------------------------------------
18349
+ --------------------------------------------------
18350
+ DocumentTest: test_find_will_get_a_FooBar_document
18351
+ --------------------------------------------------
18352
+ ----------------------------------------------------------------
18353
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
18354
+ ----------------------------------------------------------------
18355
+ ---------------------------------------------
18356
+ DocumentTest: test_getting_not_found_document
18357
+ ---------------------------------------------
18358
+ -------------------------------------------------
18359
+ DocumentTest: test_multi_response_with_right_data
18360
+ -------------------------------------------------
18361
+ -----------------------------------------
18362
+ DocumentTest: test_new_in_memory_document
18363
+ -----------------------------------------
18364
+ -------------------------------------------
18365
+ DocumentTest: test_will_have_key_properties
18366
+ -------------------------------------------
18367
+ --------------------------------------------------------
18368
+ DocumentTest: test_will_have_object_with_boolean?_method
18369
+ --------------------------------------------------------
18370
+ ------------------------------------------------
18371
+ DocumentTest: test_will_have_only_set_properties
18372
+ ------------------------------------------------
18373
+ ----------------------------------------------------------------
18374
+ DocumentTest: test_with_default_will_return_default_value_on_nil
18375
+ ----------------------------------------------------------------
18376
+ -----------------------------------
18377
+ DocumentTest: test_with_timestamps!
18378
+ -----------------------------------
18379
+ --------------------------------------
18380
+ DocumentTest: test_all_will_get_2_docs
18381
+ --------------------------------------
18382
+ ------------------------------------------------
18383
+ DocumentTest: test_all_will_get_FooBar_documents
18384
+ ------------------------------------------------
18385
+ ----------------------------------------------
18386
+ DocumentTest: test_default_will_be_avoerwriten
18387
+ ----------------------------------------------
18388
+ ------------------------------------------------
18389
+ DocumentTest: test_empty_find_should_raise_error
18390
+ ------------------------------------------------
18391
+ ------------------------------------------------------------
18392
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
18393
+ ------------------------------------------------------------
18394
+ --------------------------------------------------
18395
+ DocumentTest: test_find_will_get_a_FooBar_document
18396
+ --------------------------------------------------
18397
+ ----------------------------------------------------------------
18398
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
18399
+ ----------------------------------------------------------------
18400
+ ---------------------------------------------
18401
+ DocumentTest: test_getting_not_found_document
18402
+ ---------------------------------------------
18403
+ -------------------------------------------------
18404
+ DocumentTest: test_multi_response_with_right_data
18405
+ -------------------------------------------------
18406
+ -----------------------------------------
18407
+ DocumentTest: test_new_in_memory_document
18408
+ -----------------------------------------
18409
+ -------------------------------------------
18410
+ DocumentTest: test_will_have_key_properties
18411
+ -------------------------------------------
18412
+ --------------------------------------------------------
18413
+ DocumentTest: test_will_have_object_with_boolean?_method
18414
+ --------------------------------------------------------
18415
+ ------------------------------------------------
18416
+ DocumentTest: test_will_have_only_set_properties
18417
+ ------------------------------------------------
18418
+ ----------------------------------------------------------------
18419
+ DocumentTest: test_with_default_will_return_default_value_on_nil
18420
+ ----------------------------------------------------------------
18421
+ -----------------------------------
18422
+ DocumentTest: test_with_timestamps!
18423
+ -----------------------------------
18424
+ --------------------------------------
18425
+ DocumentTest: test_all_will_get_2_docs
18426
+ --------------------------------------
18427
+ ------------------------------------------------
18428
+ DocumentTest: test_all_will_get_FooBar_documents
18429
+ ------------------------------------------------
18430
+ ----------------------------------------------
18431
+ DocumentTest: test_default_will_be_avoerwriten
18432
+ ----------------------------------------------
18433
+ ------------------------------------------------
18434
+ DocumentTest: test_empty_find_should_raise_error
18435
+ ------------------------------------------------
18436
+ ------------------------------------------------------------
18437
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
18438
+ ------------------------------------------------------------
18439
+ --------------------------------------------------
18440
+ DocumentTest: test_find_will_get_a_FooBar_document
18441
+ --------------------------------------------------
18442
+ ----------------------------------------------------------------
18443
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
18444
+ ----------------------------------------------------------------
18445
+ ---------------------------------------------
18446
+ DocumentTest: test_getting_not_found_document
18447
+ ---------------------------------------------
18448
+ -------------------------------------------------
18449
+ DocumentTest: test_multi_response_with_right_data
18450
+ -------------------------------------------------
18451
+ -----------------------------------------
18452
+ DocumentTest: test_new_in_memory_document
18453
+ -----------------------------------------
18454
+ -------------------------------------------
18455
+ DocumentTest: test_will_have_key_properties
18456
+ -------------------------------------------
18457
+ --------------------------------------------------------
18458
+ DocumentTest: test_will_have_object_with_boolean?_method
18459
+ --------------------------------------------------------
18460
+ ------------------------------------------------
18461
+ DocumentTest: test_will_have_only_set_properties
18462
+ ------------------------------------------------
18463
+ ----------------------------------------------------------------
18464
+ DocumentTest: test_with_default_will_return_default_value_on_nil
18465
+ ----------------------------------------------------------------
18466
+ -----------------------------------
18467
+ DocumentTest: test_with_timestamps!
18468
+ -----------------------------------
18469
+ --------------------------------------
18470
+ DocumentTest: test_all_will_get_2_docs
18471
+ --------------------------------------
18472
+ ------------------------------------------------
18473
+ DocumentTest: test_all_will_get_FooBar_documents
18474
+ ------------------------------------------------
18475
+ ----------------------------------------------
18476
+ DocumentTest: test_default_will_be_avoerwriten
18477
+ ----------------------------------------------
18478
+ ------------------------------------------------
18479
+ DocumentTest: test_empty_find_should_raise_error
18480
+ ------------------------------------------------
18481
+ ------------------------------------------------------------
18482
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
18483
+ ------------------------------------------------------------
18484
+ --------------------------------------------------
18485
+ DocumentTest: test_find_will_get_a_FooBar_document
18486
+ --------------------------------------------------
18487
+ ----------------------------------------------------------------
18488
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
18489
+ ----------------------------------------------------------------
18490
+ ---------------------------------------------
18491
+ DocumentTest: test_getting_not_found_document
18492
+ ---------------------------------------------
18493
+ -------------------------------------------------
18494
+ DocumentTest: test_multi_response_with_right_data
18495
+ -------------------------------------------------
18496
+ -----------------------------------------
18497
+ DocumentTest: test_new_in_memory_document
18498
+ -----------------------------------------
18499
+ -------------------------------------------
18500
+ DocumentTest: test_will_have_key_properties
18501
+ -------------------------------------------
18502
+ --------------------------------------------------------
18503
+ DocumentTest: test_will_have_object_with_boolean?_method
18504
+ --------------------------------------------------------
18505
+ ------------------------------------------------
18506
+ DocumentTest: test_will_have_only_set_properties
18507
+ ------------------------------------------------
18508
+ ----------------------------------------------------------------
18509
+ DocumentTest: test_with_default_will_return_default_value_on_nil
18510
+ ----------------------------------------------------------------
18511
+ -----------------------------------
18512
+ DocumentTest: test_with_timestamps!
18513
+ -----------------------------------
18514
+ --------------------------------------
18515
+ DocumentTest: test_all_will_get_2_docs
18516
+ --------------------------------------
18517
+ ------------------------------------------------
18518
+ DocumentTest: test_all_will_get_FooBar_documents
18519
+ ------------------------------------------------
18520
+ ----------------------------------------------
18521
+ DocumentTest: test_default_will_be_avoerwriten
18522
+ ----------------------------------------------
18523
+ ------------------------------------------------
18524
+ DocumentTest: test_empty_find_should_raise_error
18525
+ ------------------------------------------------
18526
+ ------------------------------------------------------------
18527
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
18528
+ ------------------------------------------------------------
18529
+ --------------------------------------------------
18530
+ DocumentTest: test_find_will_get_a_FooBar_document
18531
+ --------------------------------------------------
18532
+ ----------------------------------------------------------------
18533
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
18534
+ ----------------------------------------------------------------
18535
+ ---------------------------------------------
18536
+ DocumentTest: test_getting_not_found_document
18537
+ ---------------------------------------------
18538
+ -------------------------------------------------
18539
+ DocumentTest: test_multi_response_with_right_data
18540
+ -------------------------------------------------
18541
+ -----------------------------------------
18542
+ DocumentTest: test_new_in_memory_document
18543
+ -----------------------------------------
18544
+ -------------------------------------------
18545
+ DocumentTest: test_will_have_key_properties
18546
+ -------------------------------------------
18547
+ --------------------------------------------------------
18548
+ DocumentTest: test_will_have_object_with_boolean?_method
18549
+ --------------------------------------------------------
18550
+ ------------------------------------------------
18551
+ DocumentTest: test_will_have_only_set_properties
18552
+ ------------------------------------------------
18553
+ ----------------------------------------------------------------
18554
+ DocumentTest: test_with_default_will_return_default_value_on_nil
18555
+ ----------------------------------------------------------------
18556
+ -----------------------------------
18557
+ DocumentTest: test_with_timestamps!
18558
+ -----------------------------------
18559
+ --------------------------------------
18560
+ DocumentTest: test_all_will_get_2_docs
18561
+ --------------------------------------
18562
+ ------------------------------------------------
18563
+ DocumentTest: test_all_will_get_FooBar_documents
18564
+ ------------------------------------------------
18565
+ ----------------------------------------------
18566
+ DocumentTest: test_default_will_be_avoerwriten
18567
+ ----------------------------------------------
18568
+ ------------------------------------------------
18569
+ DocumentTest: test_empty_find_should_raise_error
18570
+ ------------------------------------------------
18571
+ ------------------------------------------------------------
18572
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
18573
+ ------------------------------------------------------------
18574
+ --------------------------------------------------
18575
+ DocumentTest: test_find_will_get_a_FooBar_document
18576
+ --------------------------------------------------
18577
+ ----------------------------------------------------------------
18578
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
18579
+ ----------------------------------------------------------------
18580
+ ---------------------------------------------
18581
+ DocumentTest: test_getting_not_found_document
18582
+ ---------------------------------------------
18583
+ -------------------------------------------------
18584
+ DocumentTest: test_multi_response_with_right_data
18585
+ -------------------------------------------------
18586
+ -----------------------------------------
18587
+ DocumentTest: test_new_in_memory_document
18588
+ -----------------------------------------
18589
+ -------------------------------------------
18590
+ DocumentTest: test_will_have_key_properties
18591
+ -------------------------------------------
18592
+ --------------------------------------------------------
18593
+ DocumentTest: test_will_have_object_with_boolean?_method
18594
+ --------------------------------------------------------
18595
+ ------------------------------------------------
18596
+ DocumentTest: test_will_have_only_set_properties
18597
+ ------------------------------------------------
18598
+ ----------------------------------------------------------------
18599
+ DocumentTest: test_with_default_will_return_default_value_on_nil
18600
+ ----------------------------------------------------------------
18601
+ -----------------------------------
18602
+ DocumentTest: test_with_timestamps!
18603
+ -----------------------------------
18604
+ --------------------------------------
18605
+ DocumentTest: test_all_will_get_2_docs
18606
+ --------------------------------------
18607
+ ------------------------------------------------
18608
+ DocumentTest: test_all_will_get_FooBar_documents
18609
+ ------------------------------------------------
18610
+ ----------------------------------------------
18611
+ DocumentTest: test_default_will_be_avoerwriten
18612
+ ----------------------------------------------
18613
+ ------------------------------------------------
18614
+ DocumentTest: test_empty_find_should_raise_error
18615
+ ------------------------------------------------
18616
+ ------------------------------------------------------------
18617
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
18618
+ ------------------------------------------------------------
18619
+ --------------------------------------------------
18620
+ DocumentTest: test_find_will_get_a_FooBar_document
18621
+ --------------------------------------------------
18622
+ ----------------------------------------------------------------
18623
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
18624
+ ----------------------------------------------------------------
18625
+ ---------------------------------------------
18626
+ DocumentTest: test_getting_not_found_document
18627
+ ---------------------------------------------
18628
+ -------------------------------------------------
18629
+ DocumentTest: test_multi_response_with_right_data
18630
+ -------------------------------------------------
18631
+ -----------------------------------------
18632
+ DocumentTest: test_new_in_memory_document
18633
+ -----------------------------------------
18634
+ -------------------------------------------
18635
+ DocumentTest: test_will_have_key_properties
18636
+ -------------------------------------------
18637
+ --------------------------------------------------------
18638
+ DocumentTest: test_will_have_object_with_boolean?_method
18639
+ --------------------------------------------------------
18640
+ ------------------------------------------------
18641
+ DocumentTest: test_will_have_only_set_properties
18642
+ ------------------------------------------------
18643
+ ----------------------------------------------------------------
18644
+ DocumentTest: test_with_default_will_return_default_value_on_nil
18645
+ ----------------------------------------------------------------
18646
+ -----------------------------------
18647
+ DocumentTest: test_with_timestamps!
18648
+ -----------------------------------
18649
+ --------------------------------------
18650
+ DocumentTest: test_all_will_get_2_docs
18651
+ --------------------------------------
18652
+ ------------------------------------------------
18653
+ DocumentTest: test_all_will_get_FooBar_documents
18654
+ ------------------------------------------------
18655
+ ----------------------------------------------
18656
+ DocumentTest: test_default_will_be_avoerwriten
18657
+ ----------------------------------------------
18658
+ ------------------------------------------------
18659
+ DocumentTest: test_empty_find_should_raise_error
18660
+ ------------------------------------------------
18661
+ ------------------------------------------------------------
18662
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
18663
+ ------------------------------------------------------------
18664
+ --------------------------------------------------
18665
+ DocumentTest: test_find_will_get_a_FooBar_document
18666
+ --------------------------------------------------
18667
+ ----------------------------------------------------------------
18668
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
18669
+ ----------------------------------------------------------------
18670
+ ---------------------------------------------
18671
+ DocumentTest: test_getting_not_found_document
18672
+ ---------------------------------------------
18673
+ -------------------------------------------------
18674
+ DocumentTest: test_multi_response_with_right_data
18675
+ -------------------------------------------------
18676
+ -----------------------------------------
18677
+ DocumentTest: test_new_in_memory_document
18678
+ -----------------------------------------
18679
+ -------------------------------------------
18680
+ DocumentTest: test_will_have_key_properties
18681
+ -------------------------------------------
18682
+ --------------------------------------------------------
18683
+ DocumentTest: test_will_have_object_with_boolean?_method
18684
+ --------------------------------------------------------
18685
+ ------------------------------------------------
18686
+ DocumentTest: test_will_have_only_set_properties
18687
+ ------------------------------------------------
18688
+ ----------------------------------------------------------------
18689
+ DocumentTest: test_with_default_will_return_default_value_on_nil
18690
+ ----------------------------------------------------------------
18691
+ -----------------------------------
18692
+ DocumentTest: test_with_timestamps!
18693
+ -----------------------------------
18694
+ --------------------------------------
18695
+ DocumentTest: test_all_will_get_2_docs
18696
+ --------------------------------------
18697
+ ------------------------------------------------
18698
+ DocumentTest: test_all_will_get_FooBar_documents
18699
+ ------------------------------------------------
18700
+ ----------------------------------------------
18701
+ DocumentTest: test_default_will_be_avoerwriten
18702
+ ----------------------------------------------
18703
+ ------------------------------------------------
18704
+ DocumentTest: test_empty_find_should_raise_error
18705
+ ------------------------------------------------
18706
+ ------------------------------------------------------------
18707
+ DocumentTest: test_error_on_server_raises_Dolly::ServerError
18708
+ ------------------------------------------------------------
18709
+ --------------------------------------------------
18710
+ DocumentTest: test_find_will_get_a_FooBar_document
18711
+ --------------------------------------------------
18712
+ ----------------------------------------------------------------
18713
+ DocumentTest: test_find_with_multiple_ids_will_return_Collection
18714
+ ----------------------------------------------------------------
18715
+ ---------------------------------------------
18716
+ DocumentTest: test_getting_not_found_document
18717
+ ---------------------------------------------
18718
+ -------------------------------------------------
18719
+ DocumentTest: test_multi_response_with_right_data
18720
+ -------------------------------------------------
18721
+ -----------------------------------------
18722
+ DocumentTest: test_new_in_memory_document
18723
+ -----------------------------------------
18724
+ -------------------------------------------
18725
+ DocumentTest: test_will_have_key_properties
18726
+ -------------------------------------------
18727
+ --------------------------------------------------------
18728
+ DocumentTest: test_will_have_object_with_boolean?_method
18729
+ --------------------------------------------------------
18730
+ ------------------------------------------------
18731
+ DocumentTest: test_will_have_only_set_properties
18732
+ ------------------------------------------------
18733
+ ----------------------------------------------------------------
18734
+ DocumentTest: test_with_default_will_return_default_value_on_nil
18735
+ ----------------------------------------------------------------
18736
+ -----------------------------------
18737
+ DocumentTest: test_with_timestamps!
18738
+ -----------------------------------