couch_rest_adapter 0.4.13 → 0.4.15

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: 85765ce19ed0ba3a2237bc6ff354fd321c86e313
4
- data.tar.gz: 31483b73d9c1604a78c57943349dd284a3201984
3
+ metadata.gz: 0fdae96d1f7cb55b4c92c458674d13a80d695941
4
+ data.tar.gz: 5fede666bd60409e124d325998cff279f9bc1627
5
5
  SHA512:
6
- metadata.gz: eba3f0f8e7807ff75320798e291140a788b559ff83e198be404d6c06f70265fdd37566c3ebb9eb4dc4676fce3ffbbb7f743881a3a6b4b0cd0e3bd2cf27cac4fe
7
- data.tar.gz: faaa00e3b73bbcacaf38eb521c638e4562d0f7e16e473712b185c67a72055d278dadb20f6a3ae8522996bcb08f307ee2ae70f8bdb9988bc61501a986bec7cc51
6
+ metadata.gz: 081dea597aad6c3edeb9766f7404de68f8942630e0d16dd888d8d3bc98e2474f5d015c66f20adc344756fda833cb35dd2890ee722178e2a2dcd8013c80748045
7
+ data.tar.gz: c9810cb545b909e94afefc58780f7ce6cf33f0c954eff346eff0ef0347870a4bfd51dc75be8e80aef493e29866babe8e72755008fdcfcd9334bd6f5266c447f3
@@ -5,11 +5,11 @@ module CouchRestAdapter
5
5
  module DocumentManagement
6
6
  module ClassMethods
7
7
  def namespace=(namespace)
8
- @@_namespace = namespace
8
+ @_namespace = namespace
9
9
  end
10
10
 
11
11
  def namespace
12
- @@_namespace ||= object_name
12
+ @_namespace ||= object_name
13
13
  end
14
14
 
15
15
  def object_name
@@ -1,3 +1,3 @@
1
1
  module CouchRestAdapter
2
- VERSION = "0.4.13"
2
+ VERSION = "0.4.15"
3
3
  end
@@ -5,6 +5,7 @@ class CouchRestAdapter::DocumentManagementTest < ActiveSupport::TestCase
5
5
  def setup
6
6
  @foo = FooBar.new
7
7
  @klass = @foo.class
8
+ @bar = BarFoo.new.class
8
9
  end
9
10
 
10
11
  test 'class_method object_name returns model_name in singular form' do
@@ -13,6 +14,7 @@ class CouchRestAdapter::DocumentManagementTest < ActiveSupport::TestCase
13
14
 
14
15
  test 'class_method namespace defaults to object_name' do
15
16
  assert_equal @klass.namespace, @klass.object_name
17
+ assert_equal @bar.namespace, @bar.object_name
16
18
  end
17
19
 
18
20
  test 'class_method namespace= allows override of namespace' do
@@ -31,3 +33,8 @@ class FooBar < CouchRestAdapter::Base
31
33
  use_default_database
32
34
  end
33
35
 
36
+ class BarFoo < CouchRestAdapter::Base
37
+ use_default_database
38
+ end
39
+
40
+
@@ -3796,3 +3796,483 @@ LintTest: test_to_param
3796
3796
  ------------------------------
3797
3797
  LintTest: test_to_partial_path
3798
3798
  ------------------------------
3799
+ ---------------------------------------------------
3800
+ CouchRestAdapter::AttributeMethodTest: test_base_id
3801
+ ---------------------------------------------------
3802
+ -----------------------------------------------------------------------------------------------------------------------
3803
+ CouchRestAdapter::DocumentManagementTest: test__set_id_and_namespace_will_set_the__id_variable_with_an_id_and_namespace
3804
+ -----------------------------------------------------------------------------------------------------------------------
3805
+ ---------------------------------------------------------------------------------------------------
3806
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace=_allows_override_of_namespace
3807
+ ---------------------------------------------------------------------------------------------------
3808
+ ---------------------------------------------------------------------------------------------
3809
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace_defaults_to_object_name
3810
+ ---------------------------------------------------------------------------------------------
3811
+ -----------------------------------------------------------------------------------------------------------
3812
+ CouchRestAdapter::DocumentManagementTest: test_class_method_object_name_returns_model_name_in_singular_form
3813
+ -----------------------------------------------------------------------------------------------------------
3814
+ --------------------------------------------------------------
3815
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
3816
+ --------------------------------------------------------------
3817
+ ---------------------------------------------------------
3818
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
3819
+ ---------------------------------------------------------
3820
+ ---------------------------------------------------------------------------------------------
3821
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
3822
+ ---------------------------------------------------------------------------------------------
3823
+ ---------------------------------------------------------
3824
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
3825
+ ---------------------------------------------------------
3826
+ -------------------------------------------------------------
3827
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
3828
+ -------------------------------------------------------------
3829
+ --------------------------------------------------------------------------------------------------
3830
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
3831
+ --------------------------------------------------------------------------------------------------
3832
+ ----------------------------------------------------------------------
3833
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
3834
+ ----------------------------------------------------------------------
3835
+ -------------------------------------------------------
3836
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
3837
+ -------------------------------------------------------
3838
+ --------------------------------------------------------------
3839
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
3840
+ --------------------------------------------------------------
3841
+ --------------------------
3842
+ LintTest: test_errors_aref
3843
+ --------------------------
3844
+ ---------------------------
3845
+ LintTest: test_model_naming
3846
+ ---------------------------
3847
+ -------------------------
3848
+ LintTest: test_persisted?
3849
+ -------------------------
3850
+ ---------------------
3851
+ LintTest: test_to_key
3852
+ ---------------------
3853
+ -----------------------
3854
+ LintTest: test_to_param
3855
+ -----------------------
3856
+ ------------------------------
3857
+ LintTest: test_to_partial_path
3858
+ ------------------------------
3859
+ ---------------------------------------------------
3860
+ CouchRestAdapter::AttributeMethodTest: test_base_id
3861
+ ---------------------------------------------------
3862
+ -----------------------------------------------------------------------------------------------------------------------
3863
+ CouchRestAdapter::DocumentManagementTest: test__set_id_and_namespace_will_set_the__id_variable_with_an_id_and_namespace
3864
+ -----------------------------------------------------------------------------------------------------------------------
3865
+ ---------------------------------------------------------------------------------------------------
3866
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace=_allows_override_of_namespace
3867
+ ---------------------------------------------------------------------------------------------------
3868
+ ---------------------------------------------------------------------------------------------
3869
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace_defaults_to_object_name
3870
+ ---------------------------------------------------------------------------------------------
3871
+ -----------------------------------------------------------------------------------------------------------
3872
+ CouchRestAdapter::DocumentManagementTest: test_class_method_object_name_returns_model_name_in_singular_form
3873
+ -----------------------------------------------------------------------------------------------------------
3874
+ --------------------------------------------------------------
3875
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
3876
+ --------------------------------------------------------------
3877
+ ---------------------------------------------------------
3878
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
3879
+ ---------------------------------------------------------
3880
+ ---------------------------------------------------------------------------------------------
3881
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
3882
+ ---------------------------------------------------------------------------------------------
3883
+ ---------------------------------------------------------
3884
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
3885
+ ---------------------------------------------------------
3886
+ -------------------------------------------------------------
3887
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
3888
+ -------------------------------------------------------------
3889
+ --------------------------------------------------------------------------------------------------
3890
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
3891
+ --------------------------------------------------------------------------------------------------
3892
+ ----------------------------------------------------------------------
3893
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
3894
+ ----------------------------------------------------------------------
3895
+ -------------------------------------------------------
3896
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
3897
+ -------------------------------------------------------
3898
+ --------------------------------------------------------------
3899
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
3900
+ --------------------------------------------------------------
3901
+ --------------------------
3902
+ LintTest: test_errors_aref
3903
+ --------------------------
3904
+ ---------------------------
3905
+ LintTest: test_model_naming
3906
+ ---------------------------
3907
+ -------------------------
3908
+ LintTest: test_persisted?
3909
+ -------------------------
3910
+ ---------------------
3911
+ LintTest: test_to_key
3912
+ ---------------------
3913
+ -----------------------
3914
+ LintTest: test_to_param
3915
+ -----------------------
3916
+ ------------------------------
3917
+ LintTest: test_to_partial_path
3918
+ ------------------------------
3919
+ ---------------------------------------------------
3920
+ CouchRestAdapter::AttributeMethodTest: test_base_id
3921
+ ---------------------------------------------------
3922
+ -----------------------------------------------------------------------------------------------------------------------
3923
+ CouchRestAdapter::DocumentManagementTest: test__set_id_and_namespace_will_set_the__id_variable_with_an_id_and_namespace
3924
+ -----------------------------------------------------------------------------------------------------------------------
3925
+ ---------------------------------------------------------------------------------------------------
3926
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace=_allows_override_of_namespace
3927
+ ---------------------------------------------------------------------------------------------------
3928
+ ---------------------------------------------------------------------------------------------
3929
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace_defaults_to_object_name
3930
+ ---------------------------------------------------------------------------------------------
3931
+ -----------------------------------------------------------------------------------------------------------
3932
+ CouchRestAdapter::DocumentManagementTest: test_class_method_object_name_returns_model_name_in_singular_form
3933
+ -----------------------------------------------------------------------------------------------------------
3934
+ --------------------------------------------------------------
3935
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
3936
+ --------------------------------------------------------------
3937
+ ---------------------------------------------------------
3938
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
3939
+ ---------------------------------------------------------
3940
+ ---------------------------------------------------------------------------------------------
3941
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
3942
+ ---------------------------------------------------------------------------------------------
3943
+ ---------------------------------------------------------
3944
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
3945
+ ---------------------------------------------------------
3946
+ -------------------------------------------------------------
3947
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
3948
+ -------------------------------------------------------------
3949
+ --------------------------------------------------------------------------------------------------
3950
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
3951
+ --------------------------------------------------------------------------------------------------
3952
+ ----------------------------------------------------------------------
3953
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
3954
+ ----------------------------------------------------------------------
3955
+ -------------------------------------------------------
3956
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
3957
+ -------------------------------------------------------
3958
+ --------------------------------------------------------------
3959
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
3960
+ --------------------------------------------------------------
3961
+ --------------------------
3962
+ LintTest: test_errors_aref
3963
+ --------------------------
3964
+ ---------------------------
3965
+ LintTest: test_model_naming
3966
+ ---------------------------
3967
+ -------------------------
3968
+ LintTest: test_persisted?
3969
+ -------------------------
3970
+ ---------------------
3971
+ LintTest: test_to_key
3972
+ ---------------------
3973
+ -----------------------
3974
+ LintTest: test_to_param
3975
+ -----------------------
3976
+ ------------------------------
3977
+ LintTest: test_to_partial_path
3978
+ ------------------------------
3979
+ ---------------------------------------------------
3980
+ CouchRestAdapter::AttributeMethodTest: test_base_id
3981
+ ---------------------------------------------------
3982
+ -----------------------------------------------------------------------------------------------------------------------
3983
+ CouchRestAdapter::DocumentManagementTest: test__set_id_and_namespace_will_set_the__id_variable_with_an_id_and_namespace
3984
+ -----------------------------------------------------------------------------------------------------------------------
3985
+ ---------------------------------------------------------------------------------------------------
3986
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace=_allows_override_of_namespace
3987
+ ---------------------------------------------------------------------------------------------------
3988
+ ---------------------------------------------------------------------------------------------
3989
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace_defaults_to_object_name
3990
+ ---------------------------------------------------------------------------------------------
3991
+ -----------------------------------------------------------------------------------------------------------
3992
+ CouchRestAdapter::DocumentManagementTest: test_class_method_object_name_returns_model_name_in_singular_form
3993
+ -----------------------------------------------------------------------------------------------------------
3994
+ --------------------------------------------------------------
3995
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
3996
+ --------------------------------------------------------------
3997
+ ---------------------------------------------------------
3998
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
3999
+ ---------------------------------------------------------
4000
+ ---------------------------------------------------------------------------------------------
4001
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
4002
+ ---------------------------------------------------------------------------------------------
4003
+ ---------------------------------------------------------
4004
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
4005
+ ---------------------------------------------------------
4006
+ -------------------------------------------------------------
4007
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
4008
+ -------------------------------------------------------------
4009
+ --------------------------------------------------------------------------------------------------
4010
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
4011
+ --------------------------------------------------------------------------------------------------
4012
+ ----------------------------------------------------------------------
4013
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
4014
+ ----------------------------------------------------------------------
4015
+ -------------------------------------------------------
4016
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
4017
+ -------------------------------------------------------
4018
+ --------------------------------------------------------------
4019
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
4020
+ --------------------------------------------------------------
4021
+ --------------------------
4022
+ LintTest: test_errors_aref
4023
+ --------------------------
4024
+ ---------------------------
4025
+ LintTest: test_model_naming
4026
+ ---------------------------
4027
+ -------------------------
4028
+ LintTest: test_persisted?
4029
+ -------------------------
4030
+ ---------------------
4031
+ LintTest: test_to_key
4032
+ ---------------------
4033
+ -----------------------
4034
+ LintTest: test_to_param
4035
+ -----------------------
4036
+ ------------------------------
4037
+ LintTest: test_to_partial_path
4038
+ ------------------------------
4039
+ ---------------------------------------------------
4040
+ CouchRestAdapter::AttributeMethodTest: test_base_id
4041
+ ---------------------------------------------------
4042
+ -----------------------------------------------------------------------------------------------------------------------
4043
+ CouchRestAdapter::DocumentManagementTest: test__set_id_and_namespace_will_set_the__id_variable_with_an_id_and_namespace
4044
+ -----------------------------------------------------------------------------------------------------------------------
4045
+ ---------------------------------------------------------------------------------------------------
4046
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace=_allows_override_of_namespace
4047
+ ---------------------------------------------------------------------------------------------------
4048
+ ---------------------------------------------------------------------------------------------
4049
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace_defaults_to_object_name
4050
+ ---------------------------------------------------------------------------------------------
4051
+ -----------------------------------------------------------------------------------------------------------
4052
+ CouchRestAdapter::DocumentManagementTest: test_class_method_object_name_returns_model_name_in_singular_form
4053
+ -----------------------------------------------------------------------------------------------------------
4054
+ --------------------------------------------------------------
4055
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
4056
+ --------------------------------------------------------------
4057
+ ---------------------------------------------------------
4058
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
4059
+ ---------------------------------------------------------
4060
+ ---------------------------------------------------------------------------------------------
4061
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
4062
+ ---------------------------------------------------------------------------------------------
4063
+ ---------------------------------------------------------
4064
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
4065
+ ---------------------------------------------------------
4066
+ -------------------------------------------------------------
4067
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
4068
+ -------------------------------------------------------------
4069
+ --------------------------------------------------------------------------------------------------
4070
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
4071
+ --------------------------------------------------------------------------------------------------
4072
+ ----------------------------------------------------------------------
4073
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
4074
+ ----------------------------------------------------------------------
4075
+ -------------------------------------------------------
4076
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
4077
+ -------------------------------------------------------
4078
+ --------------------------------------------------------------
4079
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
4080
+ --------------------------------------------------------------
4081
+ --------------------------
4082
+ LintTest: test_errors_aref
4083
+ --------------------------
4084
+ ---------------------------
4085
+ LintTest: test_model_naming
4086
+ ---------------------------
4087
+ -------------------------
4088
+ LintTest: test_persisted?
4089
+ -------------------------
4090
+ ---------------------
4091
+ LintTest: test_to_key
4092
+ ---------------------
4093
+ -----------------------
4094
+ LintTest: test_to_param
4095
+ -----------------------
4096
+ ------------------------------
4097
+ LintTest: test_to_partial_path
4098
+ ------------------------------
4099
+ ---------------------------------------------------
4100
+ CouchRestAdapter::AttributeMethodTest: test_base_id
4101
+ ---------------------------------------------------
4102
+ -----------------------------------------------------------------------------------------------------------------------
4103
+ CouchRestAdapter::DocumentManagementTest: test__set_id_and_namespace_will_set_the__id_variable_with_an_id_and_namespace
4104
+ -----------------------------------------------------------------------------------------------------------------------
4105
+ ---------------------------------------------------------------------------------------------------
4106
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace=_allows_override_of_namespace
4107
+ ---------------------------------------------------------------------------------------------------
4108
+ ---------------------------------------------------------------------------------------------
4109
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace_defaults_to_object_name
4110
+ ---------------------------------------------------------------------------------------------
4111
+ -----------------------------------------------------------------------------------------------------------
4112
+ CouchRestAdapter::DocumentManagementTest: test_class_method_object_name_returns_model_name_in_singular_form
4113
+ -----------------------------------------------------------------------------------------------------------
4114
+ --------------------------------------------------------------
4115
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
4116
+ --------------------------------------------------------------
4117
+ ---------------------------------------------------------
4118
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
4119
+ ---------------------------------------------------------
4120
+ ---------------------------------------------------------------------------------------------
4121
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
4122
+ ---------------------------------------------------------------------------------------------
4123
+ ---------------------------------------------------------
4124
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
4125
+ ---------------------------------------------------------
4126
+ -------------------------------------------------------------
4127
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
4128
+ -------------------------------------------------------------
4129
+ --------------------------------------------------------------------------------------------------
4130
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
4131
+ --------------------------------------------------------------------------------------------------
4132
+ ----------------------------------------------------------------------
4133
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
4134
+ ----------------------------------------------------------------------
4135
+ -------------------------------------------------------
4136
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
4137
+ -------------------------------------------------------
4138
+ --------------------------------------------------------------
4139
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
4140
+ --------------------------------------------------------------
4141
+ --------------------------
4142
+ LintTest: test_errors_aref
4143
+ --------------------------
4144
+ ---------------------------
4145
+ LintTest: test_model_naming
4146
+ ---------------------------
4147
+ -------------------------
4148
+ LintTest: test_persisted?
4149
+ -------------------------
4150
+ ---------------------
4151
+ LintTest: test_to_key
4152
+ ---------------------
4153
+ -----------------------
4154
+ LintTest: test_to_param
4155
+ -----------------------
4156
+ ------------------------------
4157
+ LintTest: test_to_partial_path
4158
+ ------------------------------
4159
+ ---------------------------------------------------
4160
+ CouchRestAdapter::AttributeMethodTest: test_base_id
4161
+ ---------------------------------------------------
4162
+ -----------------------------------------------------------------------------------------------------------------------
4163
+ CouchRestAdapter::DocumentManagementTest: test__set_id_and_namespace_will_set_the__id_variable_with_an_id_and_namespace
4164
+ -----------------------------------------------------------------------------------------------------------------------
4165
+ ---------------------------------------------------------------------------------------------------
4166
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace=_allows_override_of_namespace
4167
+ ---------------------------------------------------------------------------------------------------
4168
+ ---------------------------------------------------------------------------------------------
4169
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace_defaults_to_object_name
4170
+ ---------------------------------------------------------------------------------------------
4171
+ -----------------------------------------------------------------------------------------------------------
4172
+ CouchRestAdapter::DocumentManagementTest: test_class_method_object_name_returns_model_name_in_singular_form
4173
+ -----------------------------------------------------------------------------------------------------------
4174
+ --------------------------------------------------------------
4175
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
4176
+ --------------------------------------------------------------
4177
+ ---------------------------------------------------------
4178
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
4179
+ ---------------------------------------------------------
4180
+ ---------------------------------------------------------------------------------------------
4181
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
4182
+ ---------------------------------------------------------------------------------------------
4183
+ ---------------------------------------------------------
4184
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
4185
+ ---------------------------------------------------------
4186
+ -------------------------------------------------------------
4187
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
4188
+ -------------------------------------------------------------
4189
+ --------------------------------------------------------------------------------------------------
4190
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
4191
+ --------------------------------------------------------------------------------------------------
4192
+ ----------------------------------------------------------------------
4193
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
4194
+ ----------------------------------------------------------------------
4195
+ -------------------------------------------------------
4196
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
4197
+ -------------------------------------------------------
4198
+ --------------------------------------------------------------
4199
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
4200
+ --------------------------------------------------------------
4201
+ --------------------------
4202
+ LintTest: test_errors_aref
4203
+ --------------------------
4204
+ ---------------------------
4205
+ LintTest: test_model_naming
4206
+ ---------------------------
4207
+ -------------------------
4208
+ LintTest: test_persisted?
4209
+ -------------------------
4210
+ ---------------------
4211
+ LintTest: test_to_key
4212
+ ---------------------
4213
+ -----------------------
4214
+ LintTest: test_to_param
4215
+ -----------------------
4216
+ ------------------------------
4217
+ LintTest: test_to_partial_path
4218
+ ------------------------------
4219
+ ---------------------------------------------------
4220
+ CouchRestAdapter::AttributeMethodTest: test_base_id
4221
+ ---------------------------------------------------
4222
+ -----------------------------------------------------------------------------------------------------------------------
4223
+ CouchRestAdapter::DocumentManagementTest: test__set_id_and_namespace_will_set_the__id_variable_with_an_id_and_namespace
4224
+ -----------------------------------------------------------------------------------------------------------------------
4225
+ ---------------------------------------------------------------------------------------------------
4226
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace=_allows_override_of_namespace
4227
+ ---------------------------------------------------------------------------------------------------
4228
+ ---------------------------------------------------------------------------------------------
4229
+ CouchRestAdapter::DocumentManagementTest: test_class_method_namespace_defaults_to_object_name
4230
+ ---------------------------------------------------------------------------------------------
4231
+ -----------------------------------------------------------------------------------------------------------
4232
+ CouchRestAdapter::DocumentManagementTest: test_class_method_object_name_returns_model_name_in_singular_form
4233
+ -----------------------------------------------------------------------------------------------------------
4234
+ --------------------------------------------------------------
4235
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
4236
+ --------------------------------------------------------------
4237
+ ---------------------------------------------------------
4238
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
4239
+ ---------------------------------------------------------
4240
+ ---------------------------------------------------------------------------------------------
4241
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
4242
+ ---------------------------------------------------------------------------------------------
4243
+ ---------------------------------------------------------
4244
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
4245
+ ---------------------------------------------------------
4246
+ -------------------------------------------------------------
4247
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
4248
+ -------------------------------------------------------------
4249
+ --------------------------------------------------------------------------------------------------
4250
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
4251
+ --------------------------------------------------------------------------------------------------
4252
+ ----------------------------------------------------------------------
4253
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
4254
+ ----------------------------------------------------------------------
4255
+ -------------------------------------------------------
4256
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
4257
+ -------------------------------------------------------
4258
+ --------------------------------------------------------------
4259
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
4260
+ --------------------------------------------------------------
4261
+ --------------------------
4262
+ LintTest: test_errors_aref
4263
+ --------------------------
4264
+ ---------------------------
4265
+ LintTest: test_model_naming
4266
+ ---------------------------
4267
+ -------------------------
4268
+ LintTest: test_persisted?
4269
+ -------------------------
4270
+ ---------------------
4271
+ LintTest: test_to_key
4272
+ ---------------------
4273
+ -----------------------
4274
+ LintTest: test_to_param
4275
+ -----------------------
4276
+ ------------------------------
4277
+ LintTest: test_to_partial_path
4278
+ ------------------------------
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couch_rest_adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.13
4
+ version: 0.4.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Guerra