couch_rest_adapter 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: ce2435af2159efb62cb05eb28a983283e637549e
4
- data.tar.gz: 73da822c0f41cbe0a25f0b36427ffca9c4138664
3
+ metadata.gz: 2e409f7007767ad1763351550870f14975c89d76
4
+ data.tar.gz: 7a452ab63071ada1ca315655a20b43d4a9143606
5
5
  SHA512:
6
- metadata.gz: b3d2ea59b7a6f3e4d82fad656758a52f5e1b909a984afb39a584fb80d36fc55756a0614d6dc2314c1ef6d588b6e9a3cd8111bcf0fba005af7a7d5731421d9500
7
- data.tar.gz: 38e677ac00092705b26001b5cc52e6c99a7ad7d4d23e6e1d45f261a7b7202bc2c4ab32763b2b2ee2b58deb9c3fefcf2f4bb6fc6f668ec32ad060b96bf78a8941
6
+ metadata.gz: 05c7407e5ad106b9913e21edb312a0eadd68da1cbb2b344f09845d33bf90e4d75062efd2f3fb05b72901756376597e89c643ce688fdc6215fc353899af1b0b12
7
+ data.tar.gz: fc8e3ad684ff3447e9aebecdce9244054b5955d1fe7ac4cdd6559d1bf5f1e4e69d9ffdd7d1aae610d72bb5b49ba3a003e5dc421670a7c7ed9e622192018e6494
data/README.rdoc CHANGED
@@ -35,13 +35,21 @@ This project rocks and uses MIT-LICENSE.
35
35
 
36
36
  === CouchViews
37
37
 
38
- In order for ```Model.all``` to workyou need to add a view like (code in cs):
38
+ In order for ```Model.all``` to workyou need to add a view like (code in cs), named 'all':
39
39
 
40
40
  (d) ->
41
41
  split_id = d._id.split('/')
42
42
  t = split_id[0]
43
43
  emit t, d
44
44
 
45
+ For 'Model.find_by_attr' to work, you will need this view named like 'by_attribute':
46
+
47
+ (doc) ->
48
+ type = doc._id.split('/')[0]
49
+ for a of doc
50
+ emit([type, a, doc[a]], doc._id)
51
+
52
+
45
53
  We are planning to add a rake task that setup this view on install.
46
54
 
47
55
  === Model Declaration
@@ -11,6 +11,8 @@ using CouchRestAdapter::Helpers
11
11
 
12
12
  module CouchRestAdapter
13
13
  class Base < CouchRest::Document
14
+ #TODO: As abstract class should not have any method definition
15
+
14
16
  extend ActiveModel::Naming
15
17
  include ActiveModel::Validations
16
18
  include ActiveModel::Conversion
@@ -49,6 +51,18 @@ module CouchRestAdapter
49
51
  use_database CouchRest.database(full_path)
50
52
  end
51
53
 
54
+ def self.respond_to? method
55
+ (method.to_s =~ /^find_by_.*$/) ? true : super
56
+ end
57
+
58
+ def self.method_missing method, *args, &block
59
+ if method.to_s =~ /^find_by_(.+)$/
60
+ find_by_attribute($1, args.first)
61
+ else
62
+ super
63
+ end
64
+ end
65
+
52
66
  def save
53
67
  return false if invalid?
54
68
  return false unless run_callbacks(:save)
@@ -13,9 +13,19 @@ module CouchRestAdapter
13
13
  #TODO: We can get this from Rails.application.class.name
14
14
  DEFAULT_DESIGN = 'amcoid'
15
15
 
16
+ def find_by_attribute attr_name, value, doc_name = nil
17
+ document_name = 'by_attribute'
18
+ key_value = [object_name, attr_name, value]
19
+ view_by_key document_name, key_value, doc_name
20
+ end
21
+
16
22
  def query_view name, doc_name = nil
23
+ view_by_key name, object_name, doc_name
24
+ end
25
+
26
+ def view_by_key name, key = nil, doc_name = nil
17
27
  doc = name.namespace_me(doc_name || DEFAULT_DESIGN)
18
- view(doc, {key: object_name})['rows'].map{ |res| new res['doc'] }
28
+ view(doc, {key: key})['rows'].map{ |res| new res['doc'] }
19
29
  end
20
30
 
21
31
  #TODO: method for reduce, and filters
@@ -1,3 +1,3 @@
1
1
  module CouchRestAdapter
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -44,6 +44,8 @@ class CouchRestAdapterTest < ActiveSupport::TestCase
44
44
 
45
45
  FakeWeb.register_uri :get, %r|http://.*:5984/test/_design/.*/_view/by_type.*key=%22foo_bar%22|, body: view_by_type_resp.to_json
46
46
 
47
+ FakeWeb.register_uri :get, %r|http://.*:5984/test/_design/.*/_view/by_attribute.*key=%5B%22foo_bar%22%2C%22foo%22%2C%22Foo%22%5D|, body: view_by_type_resp.to_json
48
+
47
49
  @foo = FooBar.new foo: 'Foo', bar: 'Bar'
48
50
  @foo.save
49
51
  end
@@ -89,6 +91,16 @@ class CouchRestAdapterTest < ActiveSupport::TestCase
89
91
  end
90
92
  end
91
93
 
94
+ test 'find_by_attr will return array of docs with type set to model name' do
95
+ bar = FooBar.new foo: 'Bar', bar: 'Foo', type: 'foo_bar'
96
+ bar.save
97
+ bars = FooBar.find_by_foo 'Foo'
98
+ bars.each do |doc|
99
+ assert doc.kind_of?(FooBar)
100
+ assert_equal 'foo_bar', doc.type
101
+ end
102
+ end
103
+
92
104
  test 'find will work with partial id' do
93
105
  partial_id = @foo.id.sub(/foo\//,'')
94
106
  assert_equal @foo, FooBar.find(partial_id)
@@ -1492,3 +1492,1152 @@ LintTest: test_to_param
1492
1492
  ------------------------------
1493
1493
  LintTest: test_to_partial_path
1494
1494
  ------------------------------
1495
+ --------------------------------------------------------------
1496
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
1497
+ --------------------------------------------------------------
1498
+ ---------------------------------------------------------
1499
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
1500
+ ---------------------------------------------------------
1501
+ ---------------------------------------------------------
1502
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
1503
+ ---------------------------------------------------------
1504
+ -------------------------------------------------------------
1505
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
1506
+ -------------------------------------------------------------
1507
+ --------------------------------------------------------------------------------------------------
1508
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
1509
+ --------------------------------------------------------------------------------------------------
1510
+ ----------------------------------------------------------------------
1511
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
1512
+ ----------------------------------------------------------------------
1513
+ -------------------------------------------------------
1514
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
1515
+ -------------------------------------------------------
1516
+ --------------------------------------------------------------
1517
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
1518
+ --------------------------------------------------------------
1519
+ --------------------------
1520
+ LintTest: test_errors_aref
1521
+ --------------------------
1522
+ ---------------------------
1523
+ LintTest: test_model_naming
1524
+ ---------------------------
1525
+ -------------------------
1526
+ LintTest: test_persisted?
1527
+ -------------------------
1528
+ ---------------------
1529
+ LintTest: test_to_key
1530
+ ---------------------
1531
+ -----------------------
1532
+ LintTest: test_to_param
1533
+ -----------------------
1534
+ ------------------------------
1535
+ LintTest: test_to_partial_path
1536
+ ------------------------------
1537
+ --------------------------------------------------------------
1538
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
1539
+ --------------------------------------------------------------
1540
+ ---------------------------------------------------------
1541
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
1542
+ ---------------------------------------------------------
1543
+ ---------------------------------------------------------
1544
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
1545
+ ---------------------------------------------------------
1546
+ -------------------------------------------------------------
1547
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
1548
+ -------------------------------------------------------------
1549
+ --------------------------------------------------------------------------------------------------
1550
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
1551
+ --------------------------------------------------------------------------------------------------
1552
+ ----------------------------------------------------------------------
1553
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
1554
+ ----------------------------------------------------------------------
1555
+ -------------------------------------------------------
1556
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
1557
+ -------------------------------------------------------
1558
+ --------------------------------------------------------------
1559
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
1560
+ --------------------------------------------------------------
1561
+ --------------------------
1562
+ LintTest: test_errors_aref
1563
+ --------------------------
1564
+ ---------------------------
1565
+ LintTest: test_model_naming
1566
+ ---------------------------
1567
+ -------------------------
1568
+ LintTest: test_persisted?
1569
+ -------------------------
1570
+ ---------------------
1571
+ LintTest: test_to_key
1572
+ ---------------------
1573
+ -----------------------
1574
+ LintTest: test_to_param
1575
+ -----------------------
1576
+ ------------------------------
1577
+ LintTest: test_to_partial_path
1578
+ ------------------------------
1579
+ --------------------------------------------------------------
1580
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
1581
+ --------------------------------------------------------------
1582
+ ---------------------------------------------------------
1583
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
1584
+ ---------------------------------------------------------
1585
+ ---------------------------------------------------------
1586
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
1587
+ ---------------------------------------------------------
1588
+ -------------------------------------------------------------
1589
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
1590
+ -------------------------------------------------------------
1591
+ --------------------------------------------------------------------------------------------------
1592
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
1593
+ --------------------------------------------------------------------------------------------------
1594
+ ----------------------------------------------------------------------
1595
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
1596
+ ----------------------------------------------------------------------
1597
+ -------------------------------------------------------
1598
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
1599
+ -------------------------------------------------------
1600
+ --------------------------------------------------------------
1601
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
1602
+ --------------------------------------------------------------
1603
+ --------------------------
1604
+ LintTest: test_errors_aref
1605
+ --------------------------
1606
+ ---------------------------
1607
+ LintTest: test_model_naming
1608
+ ---------------------------
1609
+ -------------------------
1610
+ LintTest: test_persisted?
1611
+ -------------------------
1612
+ ---------------------
1613
+ LintTest: test_to_key
1614
+ ---------------------
1615
+ -----------------------
1616
+ LintTest: test_to_param
1617
+ -----------------------
1618
+ ------------------------------
1619
+ LintTest: test_to_partial_path
1620
+ ------------------------------
1621
+ --------------------------------------------------------------
1622
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
1623
+ --------------------------------------------------------------
1624
+ ---------------------------------------------------------
1625
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
1626
+ ---------------------------------------------------------
1627
+ ---------------------------------------------------------
1628
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
1629
+ ---------------------------------------------------------
1630
+ -------------------------------------------------------------
1631
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
1632
+ -------------------------------------------------------------
1633
+ --------------------------------------------------------------------------------------------------
1634
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
1635
+ --------------------------------------------------------------------------------------------------
1636
+ ----------------------------------------------------------------------
1637
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
1638
+ ----------------------------------------------------------------------
1639
+ -------------------------------------------------------
1640
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
1641
+ -------------------------------------------------------
1642
+ --------------------------------------------------------------
1643
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
1644
+ --------------------------------------------------------------
1645
+ --------------------------
1646
+ LintTest: test_errors_aref
1647
+ --------------------------
1648
+ ---------------------------
1649
+ LintTest: test_model_naming
1650
+ ---------------------------
1651
+ -------------------------
1652
+ LintTest: test_persisted?
1653
+ -------------------------
1654
+ ---------------------
1655
+ LintTest: test_to_key
1656
+ ---------------------
1657
+ -----------------------
1658
+ LintTest: test_to_param
1659
+ -----------------------
1660
+ ------------------------------
1661
+ LintTest: test_to_partial_path
1662
+ ------------------------------
1663
+ --------------------------------------------------------------
1664
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
1665
+ --------------------------------------------------------------
1666
+ ---------------------------------------------------------
1667
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
1668
+ ---------------------------------------------------------
1669
+ ---------------------------------------------------------
1670
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
1671
+ ---------------------------------------------------------
1672
+ -------------------------------------------------------------
1673
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
1674
+ -------------------------------------------------------------
1675
+ --------------------------------------------------------------------------------------------------
1676
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
1677
+ --------------------------------------------------------------------------------------------------
1678
+ ----------------------------------------------------------------------
1679
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
1680
+ ----------------------------------------------------------------------
1681
+ -------------------------------------------------------
1682
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
1683
+ -------------------------------------------------------
1684
+ --------------------------------------------------------------
1685
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
1686
+ --------------------------------------------------------------
1687
+ --------------------------
1688
+ LintTest: test_errors_aref
1689
+ --------------------------
1690
+ ---------------------------
1691
+ LintTest: test_model_naming
1692
+ ---------------------------
1693
+ -------------------------
1694
+ LintTest: test_persisted?
1695
+ -------------------------
1696
+ ---------------------
1697
+ LintTest: test_to_key
1698
+ ---------------------
1699
+ -----------------------
1700
+ LintTest: test_to_param
1701
+ -----------------------
1702
+ ------------------------------
1703
+ LintTest: test_to_partial_path
1704
+ ------------------------------
1705
+ --------------------------------------------------------------
1706
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
1707
+ --------------------------------------------------------------
1708
+ ---------------------------------------------------------
1709
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
1710
+ ---------------------------------------------------------
1711
+ ---------------------------------------------------------
1712
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
1713
+ ---------------------------------------------------------
1714
+ -------------------------------------------------------------
1715
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
1716
+ -------------------------------------------------------------
1717
+ --------------------------------------------------------------------------------------------------
1718
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
1719
+ --------------------------------------------------------------------------------------------------
1720
+ ----------------------------------------------------------------------
1721
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
1722
+ ----------------------------------------------------------------------
1723
+ -------------------------------------------------------
1724
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
1725
+ -------------------------------------------------------
1726
+ --------------------------------------------------------------
1727
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
1728
+ --------------------------------------------------------------
1729
+ --------------------------
1730
+ LintTest: test_errors_aref
1731
+ --------------------------
1732
+ ---------------------------
1733
+ LintTest: test_model_naming
1734
+ ---------------------------
1735
+ -------------------------
1736
+ LintTest: test_persisted?
1737
+ -------------------------
1738
+ ---------------------
1739
+ LintTest: test_to_key
1740
+ ---------------------
1741
+ -----------------------
1742
+ LintTest: test_to_param
1743
+ -----------------------
1744
+ ------------------------------
1745
+ LintTest: test_to_partial_path
1746
+ ------------------------------
1747
+ --------------------------------------------------------------
1748
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
1749
+ --------------------------------------------------------------
1750
+ ---------------------------------------------------------
1751
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
1752
+ ---------------------------------------------------------
1753
+ ---------------------------------------------------------
1754
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
1755
+ ---------------------------------------------------------
1756
+ -------------------------------------------------------------
1757
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
1758
+ -------------------------------------------------------------
1759
+ --------------------------------------------------------------------------------------------------
1760
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
1761
+ --------------------------------------------------------------------------------------------------
1762
+ ----------------------------------------------------------------------
1763
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
1764
+ ----------------------------------------------------------------------
1765
+ -------------------------------------------------------
1766
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
1767
+ -------------------------------------------------------
1768
+ --------------------------------------------------------------
1769
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
1770
+ --------------------------------------------------------------
1771
+ --------------------------
1772
+ LintTest: test_errors_aref
1773
+ --------------------------
1774
+ ---------------------------
1775
+ LintTest: test_model_naming
1776
+ ---------------------------
1777
+ -------------------------
1778
+ LintTest: test_persisted?
1779
+ -------------------------
1780
+ ---------------------
1781
+ LintTest: test_to_key
1782
+ ---------------------
1783
+ -----------------------
1784
+ LintTest: test_to_param
1785
+ -----------------------
1786
+ ------------------------------
1787
+ LintTest: test_to_partial_path
1788
+ ------------------------------
1789
+ --------------------------------------------------------------
1790
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
1791
+ --------------------------------------------------------------
1792
+ ---------------------------------------------------------
1793
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
1794
+ ---------------------------------------------------------
1795
+ ---------------------------------------------------------------------------------------------
1796
+ CouchRestAdapterTest: test_find_by_type_will_return_array_of_docs_with_type_set_to_model_name
1797
+ ---------------------------------------------------------------------------------------------
1798
+ ---------------------------------------------------------
1799
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
1800
+ ---------------------------------------------------------
1801
+ -------------------------------------------------------------
1802
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
1803
+ -------------------------------------------------------------
1804
+ --------------------------------------------------------------------------------------------------
1805
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
1806
+ --------------------------------------------------------------------------------------------------
1807
+ ----------------------------------------------------------------------
1808
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
1809
+ ----------------------------------------------------------------------
1810
+ -------------------------------------------------------
1811
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
1812
+ -------------------------------------------------------
1813
+ --------------------------------------------------------------
1814
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
1815
+ --------------------------------------------------------------
1816
+ --------------------------
1817
+ LintTest: test_errors_aref
1818
+ --------------------------
1819
+ ---------------------------
1820
+ LintTest: test_model_naming
1821
+ ---------------------------
1822
+ -------------------------
1823
+ LintTest: test_persisted?
1824
+ -------------------------
1825
+ ---------------------
1826
+ LintTest: test_to_key
1827
+ ---------------------
1828
+ -----------------------
1829
+ LintTest: test_to_param
1830
+ -----------------------
1831
+ ------------------------------
1832
+ LintTest: test_to_partial_path
1833
+ ------------------------------
1834
+ --------------------------------------------------------------
1835
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
1836
+ --------------------------------------------------------------
1837
+ ---------------------------------------------------------
1838
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
1839
+ ---------------------------------------------------------
1840
+ ---------------------------------------------------------------------------------------------
1841
+ CouchRestAdapterTest: test_find_by_type_will_return_array_of_docs_with_type_set_to_model_name
1842
+ ---------------------------------------------------------------------------------------------
1843
+ ---------------------------------------------------------
1844
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
1845
+ ---------------------------------------------------------
1846
+ -------------------------------------------------------------
1847
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
1848
+ -------------------------------------------------------------
1849
+ --------------------------------------------------------------------------------------------------
1850
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
1851
+ --------------------------------------------------------------------------------------------------
1852
+ ----------------------------------------------------------------------
1853
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
1854
+ ----------------------------------------------------------------------
1855
+ -------------------------------------------------------
1856
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
1857
+ -------------------------------------------------------
1858
+ --------------------------------------------------------------
1859
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
1860
+ --------------------------------------------------------------
1861
+ --------------------------
1862
+ LintTest: test_errors_aref
1863
+ --------------------------
1864
+ ---------------------------
1865
+ LintTest: test_model_naming
1866
+ ---------------------------
1867
+ -------------------------
1868
+ LintTest: test_persisted?
1869
+ -------------------------
1870
+ ---------------------
1871
+ LintTest: test_to_key
1872
+ ---------------------
1873
+ -----------------------
1874
+ LintTest: test_to_param
1875
+ -----------------------
1876
+ ------------------------------
1877
+ LintTest: test_to_partial_path
1878
+ ------------------------------
1879
+ --------------------------------------------------------------
1880
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
1881
+ --------------------------------------------------------------
1882
+ ---------------------------------------------------------
1883
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
1884
+ ---------------------------------------------------------
1885
+ ---------------------------------------------------------------------------------------------
1886
+ CouchRestAdapterTest: test_find_by_type_will_return_array_of_docs_with_type_set_to_model_name
1887
+ ---------------------------------------------------------------------------------------------
1888
+ ---------------------------------------------------------
1889
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
1890
+ ---------------------------------------------------------
1891
+ -------------------------------------------------------------
1892
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
1893
+ -------------------------------------------------------------
1894
+ --------------------------------------------------------------------------------------------------
1895
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
1896
+ --------------------------------------------------------------------------------------------------
1897
+ ----------------------------------------------------------------------
1898
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
1899
+ ----------------------------------------------------------------------
1900
+ -------------------------------------------------------
1901
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
1902
+ -------------------------------------------------------
1903
+ --------------------------------------------------------------
1904
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
1905
+ --------------------------------------------------------------
1906
+ --------------------------
1907
+ LintTest: test_errors_aref
1908
+ --------------------------
1909
+ ---------------------------
1910
+ LintTest: test_model_naming
1911
+ ---------------------------
1912
+ -------------------------
1913
+ LintTest: test_persisted?
1914
+ -------------------------
1915
+ ---------------------
1916
+ LintTest: test_to_key
1917
+ ---------------------
1918
+ -----------------------
1919
+ LintTest: test_to_param
1920
+ -----------------------
1921
+ ------------------------------
1922
+ LintTest: test_to_partial_path
1923
+ ------------------------------
1924
+ --------------------------------------------------------------
1925
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
1926
+ --------------------------------------------------------------
1927
+ ---------------------------------------------------------
1928
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
1929
+ ---------------------------------------------------------
1930
+ ---------------------------------------------------------------------------------------------
1931
+ CouchRestAdapterTest: test_find_by_type_will_return_array_of_docs_with_type_set_to_model_name
1932
+ ---------------------------------------------------------------------------------------------
1933
+ ---------------------------------------------------------
1934
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
1935
+ ---------------------------------------------------------
1936
+ -------------------------------------------------------------
1937
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
1938
+ -------------------------------------------------------------
1939
+ --------------------------------------------------------------------------------------------------
1940
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
1941
+ --------------------------------------------------------------------------------------------------
1942
+ ----------------------------------------------------------------------
1943
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
1944
+ ----------------------------------------------------------------------
1945
+ -------------------------------------------------------
1946
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
1947
+ -------------------------------------------------------
1948
+ --------------------------------------------------------------
1949
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
1950
+ --------------------------------------------------------------
1951
+ --------------------------
1952
+ LintTest: test_errors_aref
1953
+ --------------------------
1954
+ ---------------------------
1955
+ LintTest: test_model_naming
1956
+ ---------------------------
1957
+ -------------------------
1958
+ LintTest: test_persisted?
1959
+ -------------------------
1960
+ ---------------------
1961
+ LintTest: test_to_key
1962
+ ---------------------
1963
+ -----------------------
1964
+ LintTest: test_to_param
1965
+ -----------------------
1966
+ ------------------------------
1967
+ LintTest: test_to_partial_path
1968
+ ------------------------------
1969
+ --------------------------------------------------------------
1970
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
1971
+ --------------------------------------------------------------
1972
+ ---------------------------------------------------------
1973
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
1974
+ ---------------------------------------------------------
1975
+ ---------------------------------------------------------------------------------------------
1976
+ CouchRestAdapterTest: test_find_by_type_will_return_array_of_docs_with_type_set_to_model_name
1977
+ ---------------------------------------------------------------------------------------------
1978
+ ---------------------------------------------------------
1979
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
1980
+ ---------------------------------------------------------
1981
+ -------------------------------------------------------------
1982
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
1983
+ -------------------------------------------------------------
1984
+ --------------------------------------------------------------------------------------------------
1985
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
1986
+ --------------------------------------------------------------------------------------------------
1987
+ ----------------------------------------------------------------------
1988
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
1989
+ ----------------------------------------------------------------------
1990
+ -------------------------------------------------------
1991
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
1992
+ -------------------------------------------------------
1993
+ --------------------------------------------------------------
1994
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
1995
+ --------------------------------------------------------------
1996
+ --------------------------
1997
+ LintTest: test_errors_aref
1998
+ --------------------------
1999
+ ---------------------------
2000
+ LintTest: test_model_naming
2001
+ ---------------------------
2002
+ -------------------------
2003
+ LintTest: test_persisted?
2004
+ -------------------------
2005
+ ---------------------
2006
+ LintTest: test_to_key
2007
+ ---------------------
2008
+ -----------------------
2009
+ LintTest: test_to_param
2010
+ -----------------------
2011
+ ------------------------------
2012
+ LintTest: test_to_partial_path
2013
+ ------------------------------
2014
+ --------------------------------------------------------------
2015
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
2016
+ --------------------------------------------------------------
2017
+ ---------------------------------------------------------
2018
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
2019
+ ---------------------------------------------------------
2020
+ ---------------------------------------------------------------------------------------------
2021
+ CouchRestAdapterTest: test_find_by_type_will_return_array_of_docs_with_type_set_to_model_name
2022
+ ---------------------------------------------------------------------------------------------
2023
+ ---------------------------------------------------------
2024
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
2025
+ ---------------------------------------------------------
2026
+ -------------------------------------------------------------
2027
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
2028
+ -------------------------------------------------------------
2029
+ --------------------------------------------------------------------------------------------------
2030
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
2031
+ --------------------------------------------------------------------------------------------------
2032
+ ----------------------------------------------------------------------
2033
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
2034
+ ----------------------------------------------------------------------
2035
+ -------------------------------------------------------
2036
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
2037
+ -------------------------------------------------------
2038
+ --------------------------------------------------------------
2039
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
2040
+ --------------------------------------------------------------
2041
+ --------------------------
2042
+ LintTest: test_errors_aref
2043
+ --------------------------
2044
+ ---------------------------
2045
+ LintTest: test_model_naming
2046
+ ---------------------------
2047
+ -------------------------
2048
+ LintTest: test_persisted?
2049
+ -------------------------
2050
+ ---------------------
2051
+ LintTest: test_to_key
2052
+ ---------------------
2053
+ -----------------------
2054
+ LintTest: test_to_param
2055
+ -----------------------
2056
+ ------------------------------
2057
+ LintTest: test_to_partial_path
2058
+ ------------------------------
2059
+ --------------------------------------------------------------
2060
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
2061
+ --------------------------------------------------------------
2062
+ ---------------------------------------------------------
2063
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
2064
+ ---------------------------------------------------------
2065
+ ---------------------------------------------------------------------------------------------
2066
+ CouchRestAdapterTest: test_find_by_type_will_return_array_of_docs_with_type_set_to_model_name
2067
+ ---------------------------------------------------------------------------------------------
2068
+ ---------------------------------------------------------
2069
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
2070
+ ---------------------------------------------------------
2071
+ -------------------------------------------------------------
2072
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
2073
+ -------------------------------------------------------------
2074
+ --------------------------------------------------------------------------------------------------
2075
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
2076
+ --------------------------------------------------------------------------------------------------
2077
+ ----------------------------------------------------------------------
2078
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
2079
+ ----------------------------------------------------------------------
2080
+ -------------------------------------------------------
2081
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
2082
+ -------------------------------------------------------
2083
+ --------------------------------------------------------------
2084
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
2085
+ --------------------------------------------------------------
2086
+ --------------------------
2087
+ LintTest: test_errors_aref
2088
+ --------------------------
2089
+ ---------------------------
2090
+ LintTest: test_model_naming
2091
+ ---------------------------
2092
+ -------------------------
2093
+ LintTest: test_persisted?
2094
+ -------------------------
2095
+ ---------------------
2096
+ LintTest: test_to_key
2097
+ ---------------------
2098
+ -----------------------
2099
+ LintTest: test_to_param
2100
+ -----------------------
2101
+ ------------------------------
2102
+ LintTest: test_to_partial_path
2103
+ ------------------------------
2104
+ --------------------------------------------------------------
2105
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
2106
+ --------------------------------------------------------------
2107
+ ---------------------------------------------------------
2108
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
2109
+ ---------------------------------------------------------
2110
+ ---------------------------------------------------------------------------------------------
2111
+ CouchRestAdapterTest: test_find_by_type_will_return_array_of_docs_with_type_set_to_model_name
2112
+ ---------------------------------------------------------------------------------------------
2113
+ ---------------------------------------------------------
2114
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
2115
+ ---------------------------------------------------------
2116
+ -------------------------------------------------------------
2117
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
2118
+ -------------------------------------------------------------
2119
+ --------------------------------------------------------------------------------------------------
2120
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
2121
+ --------------------------------------------------------------------------------------------------
2122
+ ----------------------------------------------------------------------
2123
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
2124
+ ----------------------------------------------------------------------
2125
+ -------------------------------------------------------
2126
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
2127
+ -------------------------------------------------------
2128
+ --------------------------------------------------------------
2129
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
2130
+ --------------------------------------------------------------
2131
+ --------------------------
2132
+ LintTest: test_errors_aref
2133
+ --------------------------
2134
+ ---------------------------
2135
+ LintTest: test_model_naming
2136
+ ---------------------------
2137
+ -------------------------
2138
+ LintTest: test_persisted?
2139
+ -------------------------
2140
+ ---------------------
2141
+ LintTest: test_to_key
2142
+ ---------------------
2143
+ -----------------------
2144
+ LintTest: test_to_param
2145
+ -----------------------
2146
+ ------------------------------
2147
+ LintTest: test_to_partial_path
2148
+ ------------------------------
2149
+ --------------------------------------------------------------
2150
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
2151
+ --------------------------------------------------------------
2152
+ ---------------------------------------------------------
2153
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
2154
+ ---------------------------------------------------------
2155
+ ---------------------------------------------------------------------------------------------
2156
+ CouchRestAdapterTest: test_find_by_type_will_return_array_of_docs_with_type_set_to_model_name
2157
+ ---------------------------------------------------------------------------------------------
2158
+ ---------------------------------------------------------
2159
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
2160
+ ---------------------------------------------------------
2161
+ -------------------------------------------------------------
2162
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
2163
+ -------------------------------------------------------------
2164
+ --------------------------------------------------------------------------------------------------
2165
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
2166
+ --------------------------------------------------------------------------------------------------
2167
+ ----------------------------------------------------------------------
2168
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
2169
+ ----------------------------------------------------------------------
2170
+ -------------------------------------------------------
2171
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
2172
+ -------------------------------------------------------
2173
+ --------------------------------------------------------------
2174
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
2175
+ --------------------------------------------------------------
2176
+ --------------------------
2177
+ LintTest: test_errors_aref
2178
+ --------------------------
2179
+ ---------------------------
2180
+ LintTest: test_model_naming
2181
+ ---------------------------
2182
+ -------------------------
2183
+ LintTest: test_persisted?
2184
+ -------------------------
2185
+ ---------------------
2186
+ LintTest: test_to_key
2187
+ ---------------------
2188
+ -----------------------
2189
+ LintTest: test_to_param
2190
+ -----------------------
2191
+ ------------------------------
2192
+ LintTest: test_to_partial_path
2193
+ ------------------------------
2194
+ --------------------------------------------------------------
2195
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
2196
+ --------------------------------------------------------------
2197
+ ---------------------------------------------------------
2198
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
2199
+ ---------------------------------------------------------
2200
+ ---------------------------------------------------------------------------------------------
2201
+ CouchRestAdapterTest: test_find_by_type_will_return_array_of_docs_with_type_set_to_model_name
2202
+ ---------------------------------------------------------------------------------------------
2203
+ ---------------------------------------------------------
2204
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
2205
+ ---------------------------------------------------------
2206
+ -------------------------------------------------------------
2207
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
2208
+ -------------------------------------------------------------
2209
+ --------------------------------------------------------------------------------------------------
2210
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
2211
+ --------------------------------------------------------------------------------------------------
2212
+ ----------------------------------------------------------------------
2213
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
2214
+ ----------------------------------------------------------------------
2215
+ -------------------------------------------------------
2216
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
2217
+ -------------------------------------------------------
2218
+ --------------------------------------------------------------
2219
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
2220
+ --------------------------------------------------------------
2221
+ --------------------------
2222
+ LintTest: test_errors_aref
2223
+ --------------------------
2224
+ ---------------------------
2225
+ LintTest: test_model_naming
2226
+ ---------------------------
2227
+ -------------------------
2228
+ LintTest: test_persisted?
2229
+ -------------------------
2230
+ ---------------------
2231
+ LintTest: test_to_key
2232
+ ---------------------
2233
+ -----------------------
2234
+ LintTest: test_to_param
2235
+ -----------------------
2236
+ ------------------------------
2237
+ LintTest: test_to_partial_path
2238
+ ------------------------------
2239
+ --------------------------------------------------------------
2240
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
2241
+ --------------------------------------------------------------
2242
+ ---------------------------------------------------------
2243
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
2244
+ ---------------------------------------------------------
2245
+ ---------------------------------------------------------------------------------------------
2246
+ CouchRestAdapterTest: test_find_by_type_will_return_array_of_docs_with_type_set_to_model_name
2247
+ ---------------------------------------------------------------------------------------------
2248
+ ---------------------------------------------------------
2249
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
2250
+ ---------------------------------------------------------
2251
+ -------------------------------------------------------------
2252
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
2253
+ -------------------------------------------------------------
2254
+ --------------------------------------------------------------------------------------------------
2255
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
2256
+ --------------------------------------------------------------------------------------------------
2257
+ ----------------------------------------------------------------------
2258
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
2259
+ ----------------------------------------------------------------------
2260
+ -------------------------------------------------------
2261
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
2262
+ -------------------------------------------------------
2263
+ --------------------------------------------------------------
2264
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
2265
+ --------------------------------------------------------------
2266
+ --------------------------
2267
+ LintTest: test_errors_aref
2268
+ --------------------------
2269
+ ---------------------------
2270
+ LintTest: test_model_naming
2271
+ ---------------------------
2272
+ -------------------------
2273
+ LintTest: test_persisted?
2274
+ -------------------------
2275
+ ---------------------
2276
+ LintTest: test_to_key
2277
+ ---------------------
2278
+ -----------------------
2279
+ LintTest: test_to_param
2280
+ -----------------------
2281
+ ------------------------------
2282
+ LintTest: test_to_partial_path
2283
+ ------------------------------
2284
+ --------------------------------------------------------------
2285
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
2286
+ --------------------------------------------------------------
2287
+ ---------------------------------------------------------
2288
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
2289
+ ---------------------------------------------------------
2290
+ ---------------------------------------------------------------------------------------------
2291
+ CouchRestAdapterTest: test_find_by_type_will_return_array_of_docs_with_type_set_to_model_name
2292
+ ---------------------------------------------------------------------------------------------
2293
+ ---------------------------------------------------------
2294
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
2295
+ ---------------------------------------------------------
2296
+ -------------------------------------------------------------
2297
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
2298
+ -------------------------------------------------------------
2299
+ --------------------------------------------------------------------------------------------------
2300
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
2301
+ --------------------------------------------------------------------------------------------------
2302
+ ----------------------------------------------------------------------
2303
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
2304
+ ----------------------------------------------------------------------
2305
+ -------------------------------------------------------
2306
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
2307
+ -------------------------------------------------------
2308
+ --------------------------------------------------------------
2309
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
2310
+ --------------------------------------------------------------
2311
+ --------------------------
2312
+ LintTest: test_errors_aref
2313
+ --------------------------
2314
+ ---------------------------
2315
+ LintTest: test_model_naming
2316
+ ---------------------------
2317
+ -------------------------
2318
+ LintTest: test_persisted?
2319
+ -------------------------
2320
+ ---------------------
2321
+ LintTest: test_to_key
2322
+ ---------------------
2323
+ -----------------------
2324
+ LintTest: test_to_param
2325
+ -----------------------
2326
+ ------------------------------
2327
+ LintTest: test_to_partial_path
2328
+ ------------------------------
2329
+ --------------------------------------------------------------
2330
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
2331
+ --------------------------------------------------------------
2332
+ ---------------------------------------------------------
2333
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
2334
+ ---------------------------------------------------------
2335
+ ---------------------------------------------------------------------------------------------
2336
+ CouchRestAdapterTest: test_find_by_type_will_return_array_of_docs_with_type_set_to_model_name
2337
+ ---------------------------------------------------------------------------------------------
2338
+ ---------------------------------------------------------
2339
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
2340
+ ---------------------------------------------------------
2341
+ -------------------------------------------------------------
2342
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
2343
+ -------------------------------------------------------------
2344
+ --------------------------------------------------------------------------------------------------
2345
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
2346
+ --------------------------------------------------------------------------------------------------
2347
+ ----------------------------------------------------------------------
2348
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
2349
+ ----------------------------------------------------------------------
2350
+ -------------------------------------------------------
2351
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
2352
+ -------------------------------------------------------
2353
+ --------------------------------------------------------------
2354
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
2355
+ --------------------------------------------------------------
2356
+ --------------------------
2357
+ LintTest: test_errors_aref
2358
+ --------------------------
2359
+ ---------------------------
2360
+ LintTest: test_model_naming
2361
+ ---------------------------
2362
+ -------------------------
2363
+ LintTest: test_persisted?
2364
+ -------------------------
2365
+ ---------------------
2366
+ LintTest: test_to_key
2367
+ ---------------------
2368
+ -----------------------
2369
+ LintTest: test_to_param
2370
+ -----------------------
2371
+ ------------------------------
2372
+ LintTest: test_to_partial_path
2373
+ ------------------------------
2374
+ --------------------------------------------------------------
2375
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
2376
+ --------------------------------------------------------------
2377
+ ---------------------------------------------------------
2378
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
2379
+ ---------------------------------------------------------
2380
+ ---------------------------------------------------------------------------------------------
2381
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
2382
+ ---------------------------------------------------------------------------------------------
2383
+ ---------------------------------------------------------
2384
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
2385
+ ---------------------------------------------------------
2386
+ -------------------------------------------------------------
2387
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
2388
+ -------------------------------------------------------------
2389
+ --------------------------------------------------------------------------------------------------
2390
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
2391
+ --------------------------------------------------------------------------------------------------
2392
+ ----------------------------------------------------------------------
2393
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
2394
+ ----------------------------------------------------------------------
2395
+ -------------------------------------------------------
2396
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
2397
+ -------------------------------------------------------
2398
+ --------------------------------------------------------------
2399
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
2400
+ --------------------------------------------------------------
2401
+ --------------------------
2402
+ LintTest: test_errors_aref
2403
+ --------------------------
2404
+ ---------------------------
2405
+ LintTest: test_model_naming
2406
+ ---------------------------
2407
+ -------------------------
2408
+ LintTest: test_persisted?
2409
+ -------------------------
2410
+ ---------------------
2411
+ LintTest: test_to_key
2412
+ ---------------------
2413
+ -----------------------
2414
+ LintTest: test_to_param
2415
+ -----------------------
2416
+ ------------------------------
2417
+ LintTest: test_to_partial_path
2418
+ ------------------------------
2419
+ --------------------------------------------------------------
2420
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
2421
+ --------------------------------------------------------------
2422
+ ---------------------------------------------------------
2423
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
2424
+ ---------------------------------------------------------
2425
+ ---------------------------------------------------------------------------------------------
2426
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
2427
+ ---------------------------------------------------------------------------------------------
2428
+ ---------------------------------------------------------
2429
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
2430
+ ---------------------------------------------------------
2431
+ -------------------------------------------------------------
2432
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
2433
+ -------------------------------------------------------------
2434
+ --------------------------------------------------------------------------------------------------
2435
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
2436
+ --------------------------------------------------------------------------------------------------
2437
+ ----------------------------------------------------------------------
2438
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
2439
+ ----------------------------------------------------------------------
2440
+ -------------------------------------------------------
2441
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
2442
+ -------------------------------------------------------
2443
+ --------------------------------------------------------------
2444
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
2445
+ --------------------------------------------------------------
2446
+ --------------------------
2447
+ LintTest: test_errors_aref
2448
+ --------------------------
2449
+ ---------------------------
2450
+ LintTest: test_model_naming
2451
+ ---------------------------
2452
+ -------------------------
2453
+ LintTest: test_persisted?
2454
+ -------------------------
2455
+ ---------------------
2456
+ LintTest: test_to_key
2457
+ ---------------------
2458
+ -----------------------
2459
+ LintTest: test_to_param
2460
+ -----------------------
2461
+ ------------------------------
2462
+ LintTest: test_to_partial_path
2463
+ ------------------------------
2464
+ --------------------------------------------------------------
2465
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
2466
+ --------------------------------------------------------------
2467
+ ---------------------------------------------------------
2468
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
2469
+ ---------------------------------------------------------
2470
+ ---------------------------------------------------------------------------------------------
2471
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
2472
+ ---------------------------------------------------------------------------------------------
2473
+ ---------------------------------------------------------
2474
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
2475
+ ---------------------------------------------------------
2476
+ -------------------------------------------------------------
2477
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
2478
+ -------------------------------------------------------------
2479
+ --------------------------------------------------------------------------------------------------
2480
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
2481
+ --------------------------------------------------------------------------------------------------
2482
+ ----------------------------------------------------------------------
2483
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
2484
+ ----------------------------------------------------------------------
2485
+ -------------------------------------------------------
2486
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
2487
+ -------------------------------------------------------
2488
+ --------------------------------------------------------------
2489
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
2490
+ --------------------------------------------------------------
2491
+ --------------------------
2492
+ LintTest: test_errors_aref
2493
+ --------------------------
2494
+ ---------------------------
2495
+ LintTest: test_model_naming
2496
+ ---------------------------
2497
+ -------------------------
2498
+ LintTest: test_persisted?
2499
+ -------------------------
2500
+ ---------------------
2501
+ LintTest: test_to_key
2502
+ ---------------------
2503
+ -----------------------
2504
+ LintTest: test_to_param
2505
+ -----------------------
2506
+ ------------------------------
2507
+ LintTest: test_to_partial_path
2508
+ ------------------------------
2509
+ --------------------------------------------------------------
2510
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
2511
+ --------------------------------------------------------------
2512
+ ---------------------------------------------------------
2513
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
2514
+ ---------------------------------------------------------
2515
+ ---------------------------------------------------------------------------------------------
2516
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
2517
+ ---------------------------------------------------------------------------------------------
2518
+ ---------------------------------------------------------
2519
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
2520
+ ---------------------------------------------------------
2521
+ -------------------------------------------------------------
2522
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
2523
+ -------------------------------------------------------------
2524
+ --------------------------------------------------------------------------------------------------
2525
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
2526
+ --------------------------------------------------------------------------------------------------
2527
+ ----------------------------------------------------------------------
2528
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
2529
+ ----------------------------------------------------------------------
2530
+ -------------------------------------------------------
2531
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
2532
+ -------------------------------------------------------
2533
+ --------------------------------------------------------------
2534
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
2535
+ --------------------------------------------------------------
2536
+ --------------------------
2537
+ LintTest: test_errors_aref
2538
+ --------------------------
2539
+ ---------------------------
2540
+ LintTest: test_model_naming
2541
+ ---------------------------
2542
+ -------------------------
2543
+ LintTest: test_persisted?
2544
+ -------------------------
2545
+ ---------------------
2546
+ LintTest: test_to_key
2547
+ ---------------------
2548
+ -----------------------
2549
+ LintTest: test_to_param
2550
+ -----------------------
2551
+ ------------------------------
2552
+ LintTest: test_to_partial_path
2553
+ ------------------------------
2554
+ --------------------------------------------------------------
2555
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
2556
+ --------------------------------------------------------------
2557
+ ---------------------------------------------------------
2558
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
2559
+ ---------------------------------------------------------
2560
+ ---------------------------------------------------------------------------------------------
2561
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
2562
+ ---------------------------------------------------------------------------------------------
2563
+ ---------------------------------------------------------
2564
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
2565
+ ---------------------------------------------------------
2566
+ -------------------------------------------------------------
2567
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
2568
+ -------------------------------------------------------------
2569
+ --------------------------------------------------------------------------------------------------
2570
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
2571
+ --------------------------------------------------------------------------------------------------
2572
+ ----------------------------------------------------------------------
2573
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
2574
+ ----------------------------------------------------------------------
2575
+ -------------------------------------------------------
2576
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
2577
+ -------------------------------------------------------
2578
+ --------------------------------------------------------------
2579
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
2580
+ --------------------------------------------------------------
2581
+ --------------------------
2582
+ LintTest: test_errors_aref
2583
+ --------------------------
2584
+ ---------------------------
2585
+ LintTest: test_model_naming
2586
+ ---------------------------
2587
+ -------------------------
2588
+ LintTest: test_persisted?
2589
+ -------------------------
2590
+ ---------------------
2591
+ LintTest: test_to_key
2592
+ ---------------------
2593
+ -----------------------
2594
+ LintTest: test_to_param
2595
+ -----------------------
2596
+ ------------------------------
2597
+ LintTest: test_to_partial_path
2598
+ ------------------------------
2599
+ --------------------------------------------------------------
2600
+ CouchRestAdapterTest: test_attributes_are_available_as_methods
2601
+ --------------------------------------------------------------
2602
+ ---------------------------------------------------------
2603
+ CouchRestAdapterTest: test_can_not_instantiate_base_class
2604
+ ---------------------------------------------------------
2605
+ ---------------------------------------------------------------------------------------------
2606
+ CouchRestAdapterTest: test_find_by_attr_will_return_array_of_docs_with_type_set_to_model_name
2607
+ ---------------------------------------------------------------------------------------------
2608
+ ---------------------------------------------------------
2609
+ CouchRestAdapterTest: test_find_will_work_with_partial_id
2610
+ ---------------------------------------------------------
2611
+ -------------------------------------------------------------
2612
+ CouchRestAdapterTest: test_one_can_update_existing_attributes
2613
+ -------------------------------------------------------------
2614
+ --------------------------------------------------------------------------------------------------
2615
+ CouchRestAdapterTest: test_query_all_by_type_will_return_array_of_docs_with_type_set_to_model_name
2616
+ --------------------------------------------------------------------------------------------------
2617
+ ----------------------------------------------------------------------
2618
+ CouchRestAdapterTest: test_query_all_will_bring_array_of_Foo_instances
2619
+ ----------------------------------------------------------------------
2620
+ -------------------------------------------------------
2621
+ CouchRestAdapterTest: test_update_to_attr=_will_persist
2622
+ -------------------------------------------------------
2623
+ --------------------------------------------------------------
2624
+ CouchRestAdapterTest: test_will_add_class_underscorename_to_id
2625
+ --------------------------------------------------------------
2626
+ --------------------------
2627
+ LintTest: test_errors_aref
2628
+ --------------------------
2629
+ ---------------------------
2630
+ LintTest: test_model_naming
2631
+ ---------------------------
2632
+ -------------------------
2633
+ LintTest: test_persisted?
2634
+ -------------------------
2635
+ ---------------------
2636
+ LintTest: test_to_key
2637
+ ---------------------
2638
+ -----------------------
2639
+ LintTest: test_to_param
2640
+ -----------------------
2641
+ ------------------------------
2642
+ LintTest: test_to_partial_path
2643
+ ------------------------------
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couch_rest_adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Guerra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-30 00:00:00.000000000 Z
11
+ date: 2013-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails