rails_contrib 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +0 -5
- data/lib/rails_contrib/action_controller/base.rb +4 -4
- data/lib/rails_contrib/railtie.rb +0 -1
- data/lib/rails_contrib/version.rb +1 -1
- data/lib/rails_contrib.rb +0 -1
- data/test/dummy/app/views/statics/home.html.erb +0 -1
- data/test/dummy/log/development.log +246 -0
- data/test/dummy/log/test.log +15 -0
- metadata +2 -5
- data/lib/rails_contrib/action_controller/caching/sweeper.rb +0 -17
- data/test/sweeper_test.rb +0 -17
data/README.rdoc
CHANGED
@@ -12,11 +12,6 @@ Put this line in your Gemfile:
|
|
12
12
|
Then bundle:
|
13
13
|
$ bundle
|
14
14
|
|
15
|
-
= Sweepers
|
16
|
-
|
17
|
-
Use increment_cache_namespace if you're using memcache client and a namespace to invalidate in your sweeper:
|
18
|
-
increment_cache_namespace :key
|
19
|
-
|
20
15
|
= Controllers
|
21
16
|
|
22
17
|
(This plugin will create an error method to force debug information on exceptions in development env)
|
@@ -32,14 +32,14 @@ module RailsContrib
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def flash_errors(source)
|
35
|
-
flash[:error] = [] unless flash[:error].is_a? Array
|
35
|
+
flash.now[:error] = [] unless flash.now[:error].is_a? Array
|
36
36
|
case source
|
37
37
|
when String
|
38
|
-
flash[:error] << source
|
38
|
+
flash.now[:error] << source
|
39
39
|
when Array
|
40
|
-
source.each { |error| flash[:
|
40
|
+
source.each { |error| flash.now[:error] << error }
|
41
41
|
else
|
42
|
-
source.errors.full_messages.each { |error| flash[:error] << error }
|
42
|
+
source.errors.full_messages.each { |error| flash.now[:error] << error }
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
@@ -2,7 +2,6 @@ module RailsContrib
|
|
2
2
|
class Railtie < Rails::Railtie
|
3
3
|
|
4
4
|
initializer 'rails_contrib' do
|
5
|
-
::ActionController::Caching::Sweeper.send :include, RailsContrib::ActionController::Caching::Sweeper
|
6
5
|
::ActionController::Base.send :include, RailsContrib::ActionController::Base
|
7
6
|
::ActionView::Base.send :include, RailsContrib::ActionView::Base
|
8
7
|
end
|
data/lib/rails_contrib.rb
CHANGED
@@ -1685,3 +1685,249 @@ Served asset /jquery.js - 304 Not Modified (3ms)
|
|
1685
1685
|
|
1686
1686
|
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-10 19:55:58 -0300
|
1687
1687
|
Served asset /application.js - 304 Not Modified (6ms)
|
1688
|
+
Connecting to database specified by database.yml
|
1689
|
+
|
1690
|
+
|
1691
|
+
Started GET "/" for 127.0.0.1 at 2013-04-17 20:59:25 -0300
|
1692
|
+
Processing by StaticsController#home as HTML
|
1693
|
+
Rendered statics/home.html.erb within layouts/application (3.4ms)
|
1694
|
+
Completed 200 OK in 87ms (Views: 86.5ms | ActiveRecord: 0.0ms)
|
1695
|
+
|
1696
|
+
|
1697
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-17 20:59:25 -0300
|
1698
|
+
Served asset /application.css - 304 Not Modified (2ms)
|
1699
|
+
|
1700
|
+
|
1701
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-17 20:59:25 -0300
|
1702
|
+
Served asset /jquery.js - 304 Not Modified (8ms)
|
1703
|
+
|
1704
|
+
|
1705
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-17 20:59:25 -0300
|
1706
|
+
Served asset /application.js - 304 Not Modified (5ms)
|
1707
|
+
|
1708
|
+
|
1709
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-17 20:59:25 -0300
|
1710
|
+
Served asset /jquery_ujs.js - 304 Not Modified (2ms)
|
1711
|
+
|
1712
|
+
|
1713
|
+
Started GET "/" for 127.0.0.1 at 2013-04-17 20:59:25 -0300
|
1714
|
+
Processing by StaticsController#home as HTML
|
1715
|
+
Rendered statics/home.html.erb within layouts/application (0.4ms)
|
1716
|
+
Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)
|
1717
|
+
|
1718
|
+
|
1719
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-17 20:59:25 -0300
|
1720
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
1721
|
+
|
1722
|
+
|
1723
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-17 20:59:25 -0300
|
1724
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
1725
|
+
|
1726
|
+
|
1727
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-17 20:59:25 -0300
|
1728
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
1729
|
+
|
1730
|
+
|
1731
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-17 20:59:25 -0300
|
1732
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
1733
|
+
Connecting to database specified by database.yml
|
1734
|
+
|
1735
|
+
|
1736
|
+
Started GET "/" for 127.0.0.1 at 2013-04-17 21:00:23 -0300
|
1737
|
+
Processing by StaticsController#home as HTML
|
1738
|
+
Rendered statics/home.html.erb within layouts/application (24.4ms)
|
1739
|
+
Completed 200 OK in 54ms (Views: 53.3ms | ActiveRecord: 0.0ms)
|
1740
|
+
|
1741
|
+
|
1742
|
+
Started GET "/" for 127.0.0.1 at 2013-04-17 21:00:24 -0300
|
1743
|
+
Processing by StaticsController#home as HTML
|
1744
|
+
Rendered statics/home.html.erb within layouts/application (0.4ms)
|
1745
|
+
Completed 200 OK in 5ms (Views: 5.1ms | ActiveRecord: 0.0ms)
|
1746
|
+
|
1747
|
+
|
1748
|
+
Started GET "/" for 127.0.0.1 at 2013-04-17 21:00:28 -0300
|
1749
|
+
Processing by StaticsController#home as HTML
|
1750
|
+
Rendered statics/home.html.erb within layouts/application (0.3ms)
|
1751
|
+
Completed 200 OK in 5ms (Views: 5.1ms | ActiveRecord: 0.0ms)
|
1752
|
+
Connecting to database specified by database.yml
|
1753
|
+
|
1754
|
+
|
1755
|
+
Started GET "/" for 127.0.0.1 at 2013-04-17 21:00:58 -0300
|
1756
|
+
Processing by StaticsController#home as HTML
|
1757
|
+
Rendered statics/home.html.erb within layouts/application (3.8ms)
|
1758
|
+
Completed 200 OK in 33ms (Views: 32.7ms | ActiveRecord: 0.0ms)
|
1759
|
+
|
1760
|
+
|
1761
|
+
Started GET "/" for 127.0.0.1 at 2013-04-17 21:02:04 -0300
|
1762
|
+
Processing by StaticsController#home as HTML
|
1763
|
+
Rendered statics/home.html.erb within layouts/application (1.0ms)
|
1764
|
+
Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms)
|
1765
|
+
|
1766
|
+
|
1767
|
+
Started GET "/" for 127.0.0.1 at 2013-04-17 21:02:31 -0300
|
1768
|
+
Processing by StaticsController#home as HTML
|
1769
|
+
Rendered statics/home.html.erb within layouts/application (0.9ms)
|
1770
|
+
Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms)
|
1771
|
+
Connecting to database specified by database.yml
|
1772
|
+
|
1773
|
+
|
1774
|
+
Started GET "/" for 127.0.0.1 at 2013-04-17 21:03:41 -0300
|
1775
|
+
Processing by StaticsController#home as HTML
|
1776
|
+
Rendered statics/home.html.erb within layouts/application (3.4ms)
|
1777
|
+
Completed 200 OK in 32ms (Views: 31.6ms | ActiveRecord: 0.0ms)
|
1778
|
+
Connecting to database specified by database.yml
|
1779
|
+
|
1780
|
+
|
1781
|
+
Started GET "/" for 127.0.0.1 at 2013-04-17 21:04:50 -0300
|
1782
|
+
Processing by StaticsController#home as HTML
|
1783
|
+
Rendered statics/home.html.erb within layouts/application (3.7ms)
|
1784
|
+
Completed 200 OK in 34ms (Views: 33.2ms | ActiveRecord: 0.0ms)
|
1785
|
+
Connecting to database specified by database.yml
|
1786
|
+
|
1787
|
+
|
1788
|
+
Started GET "/" for 127.0.0.1 at 2013-04-17 21:05:09 -0300
|
1789
|
+
Processing by StaticsController#home as HTML
|
1790
|
+
Rendered statics/home.html.erb within layouts/application (3.8ms)
|
1791
|
+
Completed 200 OK in 34ms (Views: 33.5ms | ActiveRecord: 0.0ms)
|
1792
|
+
Connecting to database specified by database.yml
|
1793
|
+
|
1794
|
+
|
1795
|
+
Started GET "/" for 127.0.0.1 at 2013-04-17 21:05:37 -0300
|
1796
|
+
Processing by StaticsController#home as HTML
|
1797
|
+
Rendered statics/home.html.erb within layouts/application (3.4ms)
|
1798
|
+
Completed 200 OK in 32ms (Views: 31.8ms | ActiveRecord: 0.0ms)
|
1799
|
+
|
1800
|
+
|
1801
|
+
Started GET "/" for 127.0.0.1 at 2013-04-17 21:06:33 -0300
|
1802
|
+
Processing by StaticsController#home as HTML
|
1803
|
+
Rendered statics/home.html.erb within layouts/application (0.2ms)
|
1804
|
+
Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
|
1805
|
+
|
1806
|
+
|
1807
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-17 21:06:33 -0300
|
1808
|
+
Served asset /application.css - 304 Not Modified (2ms)
|
1809
|
+
|
1810
|
+
|
1811
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-17 21:06:33 -0300
|
1812
|
+
Served asset /application.js - 304 Not Modified (5ms)
|
1813
|
+
|
1814
|
+
|
1815
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-17 21:06:33 -0300
|
1816
|
+
Served asset /jquery_ujs.js - 304 Not Modified (2ms)
|
1817
|
+
|
1818
|
+
|
1819
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-17 21:06:33 -0300
|
1820
|
+
Served asset /jquery.js - 304 Not Modified (3ms)
|
1821
|
+
Connecting to database specified by database.yml
|
1822
|
+
|
1823
|
+
|
1824
|
+
Started GET "/" for 127.0.0.1 at 2013-04-17 21:07:09 -0300
|
1825
|
+
Processing by StaticsController#home as HTML
|
1826
|
+
Rendered statics/home.html.erb within layouts/application (3.6ms)
|
1827
|
+
Completed 200 OK in 54ms (Views: 53.3ms | ActiveRecord: 0.0ms)
|
1828
|
+
|
1829
|
+
|
1830
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-17 21:07:10 -0300
|
1831
|
+
Served asset /jquery_ujs.js - 304 Not Modified (5ms)
|
1832
|
+
|
1833
|
+
|
1834
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-17 21:07:10 -0300
|
1835
|
+
Served asset /jquery.js - 304 Not Modified (6ms)
|
1836
|
+
|
1837
|
+
|
1838
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-17 21:07:10 -0300
|
1839
|
+
Served asset /application.css - 304 Not Modified (2ms)
|
1840
|
+
|
1841
|
+
|
1842
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-17 21:07:10 -0300
|
1843
|
+
Served asset /application.js - 304 Not Modified (6ms)
|
1844
|
+
Connecting to database specified by database.yml
|
1845
|
+
|
1846
|
+
|
1847
|
+
Started GET "/" for 127.0.0.1 at 2013-04-17 21:07:50 -0300
|
1848
|
+
Processing by StaticsController#home as HTML
|
1849
|
+
Rendered statics/home.html.erb within layouts/application (23.8ms)
|
1850
|
+
Completed 200 OK in 53ms (Views: 52.6ms | ActiveRecord: 0.0ms)
|
1851
|
+
|
1852
|
+
|
1853
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-17 21:07:50 -0300
|
1854
|
+
Served asset /application.css - 304 Not Modified (2ms)
|
1855
|
+
|
1856
|
+
|
1857
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-17 21:07:50 -0300
|
1858
|
+
Served asset /application.js - 304 Not Modified (6ms)
|
1859
|
+
|
1860
|
+
|
1861
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-17 21:07:50 -0300
|
1862
|
+
Served asset /jquery_ujs.js - 304 Not Modified (2ms)
|
1863
|
+
|
1864
|
+
|
1865
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-17 21:07:50 -0300
|
1866
|
+
Served asset /jquery.js - 304 Not Modified (3ms)
|
1867
|
+
|
1868
|
+
|
1869
|
+
Started GET "/" for 127.0.0.1 at 2013-04-17 21:07:53 -0300
|
1870
|
+
Processing by StaticsController#home as HTML
|
1871
|
+
Rendered statics/home.html.erb within layouts/application (0.2ms)
|
1872
|
+
Completed 200 OK in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms)
|
1873
|
+
|
1874
|
+
|
1875
|
+
Started GET "/" for 127.0.0.1 at 2013-04-17 21:07:55 -0300
|
1876
|
+
Processing by StaticsController#home as HTML
|
1877
|
+
Rendered statics/home.html.erb within layouts/application (0.2ms)
|
1878
|
+
Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
|
1879
|
+
Connecting to database specified by database.yml
|
1880
|
+
|
1881
|
+
|
1882
|
+
Started GET "/" for 127.0.0.1 at 2013-04-17 21:09:21 -0300
|
1883
|
+
Processing by StaticsController#home as HTML
|
1884
|
+
Rendered statics/home.html.erb within layouts/application (3.7ms)
|
1885
|
+
Completed 200 OK in 56ms (Views: 55.1ms | ActiveRecord: 0.0ms)
|
1886
|
+
|
1887
|
+
|
1888
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-17 21:09:22 -0300
|
1889
|
+
Served asset /application.css - 304 Not Modified (2ms)
|
1890
|
+
|
1891
|
+
|
1892
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-17 21:09:22 -0300
|
1893
|
+
Served asset /jquery_ujs.js - 304 Not Modified (3ms)
|
1894
|
+
|
1895
|
+
|
1896
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-17 21:09:22 -0300
|
1897
|
+
Served asset /jquery.js - 304 Not Modified (3ms)
|
1898
|
+
|
1899
|
+
|
1900
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-17 21:09:22 -0300
|
1901
|
+
Served asset /application.js - 304 Not Modified (5ms)
|
1902
|
+
Connecting to database specified by database.yml
|
1903
|
+
|
1904
|
+
|
1905
|
+
Started GET "/" for 127.0.0.1 at 2013-04-17 21:13:33 -0300
|
1906
|
+
Processing by StaticsController#home as HTML
|
1907
|
+
Rendered statics/home.html.erb within layouts/application (3.7ms)
|
1908
|
+
Completed 200 OK in 56ms (Views: 55.3ms | ActiveRecord: 0.0ms)
|
1909
|
+
|
1910
|
+
|
1911
|
+
Started GET "/" for 127.0.0.1 at 2013-04-17 21:14:05 -0300
|
1912
|
+
Processing by StaticsController#home as HTML
|
1913
|
+
Rendered statics/home.html.erb within layouts/application (0.9ms)
|
1914
|
+
Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.0ms)
|
1915
|
+
|
1916
|
+
|
1917
|
+
Started GET "/" for 127.0.0.1 at 2013-04-17 21:14:38 -0300
|
1918
|
+
Processing by StaticsController#home as HTML
|
1919
|
+
Rendered statics/home.html.erb within layouts/application (1.1ms)
|
1920
|
+
Completed 200 OK in 6ms (Views: 6.1ms | ActiveRecord: 0.0ms)
|
1921
|
+
|
1922
|
+
|
1923
|
+
Started GET "/" for 127.0.0.1 at 2013-04-17 21:14:48 -0300
|
1924
|
+
Processing by StaticsController#home as HTML
|
1925
|
+
Rendered statics/home.html.erb within layouts/application (0.9ms)
|
1926
|
+
Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms)
|
1927
|
+
Connecting to database specified by database.yml
|
1928
|
+
|
1929
|
+
|
1930
|
+
Started GET "/" for 127.0.0.1 at 2013-04-17 21:15:27 -0300
|
1931
|
+
Processing by StaticsController#home as HTML
|
1932
|
+
Rendered statics/home.html.erb within layouts/application (3.9ms)
|
1933
|
+
Completed 200 OK in 34ms (Views: 33.9ms | ActiveRecord: 0.0ms)
|
data/test/dummy/log/test.log
CHANGED
@@ -340,3 +340,18 @@ Connecting to database specified by database.yml
|
|
340
340
|
[1m[35m (0.0ms)[0m rollback transaction
|
341
341
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
342
342
|
[1m[35m (0.0ms)[0m rollback transaction
|
343
|
+
Connecting to database specified by database.yml
|
344
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
345
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
346
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
347
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
348
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
349
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
350
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
351
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
352
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
353
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
354
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
355
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
356
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
357
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_contrib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-05-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -51,7 +51,6 @@ extensions: []
|
|
51
51
|
extra_rdoc_files: []
|
52
52
|
files:
|
53
53
|
- lib/rails_contrib/action_controller/base.rb
|
54
|
-
- lib/rails_contrib/action_controller/caching/sweeper.rb
|
55
54
|
- lib/rails_contrib/action_view/base.rb
|
56
55
|
- lib/rails_contrib/railtie.rb
|
57
56
|
- lib/rails_contrib/version.rb
|
@@ -104,7 +103,6 @@ files:
|
|
104
103
|
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
105
104
|
- test/dummy/tmp/cache/assets/E29/AA0/sprockets%2F6eaab4ab4dbae1b8b5a6f9286aa966d4
|
106
105
|
- test/rails_contrib_test.rb
|
107
|
-
- test/sweeper_test.rb
|
108
106
|
- test/test_helper.rb
|
109
107
|
- test/view_test.rb
|
110
108
|
homepage: https://github.com/mattways/rails_contrib
|
@@ -177,6 +175,5 @@ test_files:
|
|
177
175
|
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
178
176
|
- test/dummy/tmp/cache/assets/E29/AA0/sprockets%2F6eaab4ab4dbae1b8b5a6f9286aa966d4
|
179
177
|
- test/rails_contrib_test.rb
|
180
|
-
- test/sweeper_test.rb
|
181
178
|
- test/test_helper.rb
|
182
179
|
- test/view_test.rb
|
@@ -1,17 +0,0 @@
|
|
1
|
-
module RailsContrib
|
2
|
-
module ActionController
|
3
|
-
module Caching
|
4
|
-
module Sweeper
|
5
|
-
|
6
|
-
protected
|
7
|
-
|
8
|
-
def increment_cache_namespace(namespace)
|
9
|
-
key = "namespaces/#{namespace}"
|
10
|
-
value = Rails.cache.read(key)
|
11
|
-
Rails.cache.write(key, value.to_i+1)
|
12
|
-
end
|
13
|
-
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
data/test/sweeper_test.rb
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
class ViewTest < ActiveSupport::TestCase
|
4
|
-
|
5
|
-
setup :set_instance
|
6
|
-
|
7
|
-
test "should have not_found method" do
|
8
|
-
assert @instance.respond_to?(:increment_cache_namespace)
|
9
|
-
end
|
10
|
-
|
11
|
-
protected
|
12
|
-
|
13
|
-
def set_instance
|
14
|
-
@instance = ActionController::Caching::Sweeper.instance
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|