panels_for 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/panels_for/rails/panels_for_helper.rb +19 -18
- data/lib/panels_for/version.rb +1 -1
- data/test/dummy/log/test.log +588 -0
- data/test/panels_for_helper_test.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06e2f5189e6aac988337170979c7a299cb8ab593
|
4
|
+
data.tar.gz: 63a523a62847ed1db1371b874dd8224e9e9a2a4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bde647e2ba64802ecc472c41f17e6a95efacf5d30897006fa8bab310abb867cc8b8165a366e007bb478d81f4233be00c215ccdacb397fca0331ea26e3de53f9
|
7
|
+
data.tar.gz: 46b0b43d67cafd5d391cd019bc34358a46141df10584a6d2c4ded70f3e7b7605bf0bb3602f64db3c2102f5cb4c210dfa7e4f3d79e7954e766af3ddddd6767fce
|
@@ -19,57 +19,58 @@ module PanelsFor
|
|
19
19
|
@template = template
|
20
20
|
end
|
21
21
|
|
22
|
-
def panel(
|
23
|
-
content = panel_default(
|
24
|
-
options[:collapse] ? panel_group(
|
22
|
+
def panel(name, options = {}, &block)
|
23
|
+
content = panel_default(name, options, &block)
|
24
|
+
options[:collapse] ? panel_group(name, content) : content
|
25
25
|
end
|
26
26
|
|
27
27
|
private
|
28
28
|
|
29
|
-
def panel_default(
|
29
|
+
def panel_default(name, options = {}, &block)
|
30
30
|
html_options = {}
|
31
31
|
html_options[:id] = options.delete(:id) if options.key?(:id)
|
32
32
|
html_options.reverse_merge!({ class: 'panel panel-default' })
|
33
33
|
|
34
34
|
content_tag(:div, html_options) do
|
35
|
-
concat(panel_heading(
|
36
|
-
concat(panel_body(
|
35
|
+
concat(panel_heading(name, options))
|
36
|
+
concat(panel_body(name, options, &block))
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
-
def panel_group(
|
40
|
+
def panel_group(name, content)
|
41
41
|
content_tag(
|
42
42
|
:div,
|
43
43
|
content,
|
44
44
|
class:
|
45
45
|
'panel-group',
|
46
|
-
id: "#{
|
46
|
+
id: "#{name.to_s.underscore}_accordian",
|
47
47
|
role: 'tablist',
|
48
48
|
aria: { multiselectable: 'true' }
|
49
49
|
)
|
50
50
|
end
|
51
51
|
|
52
|
-
def panel_heading(
|
53
|
-
|
52
|
+
def panel_heading(name, options = {})
|
53
|
+
title = prepare_title(name, options)
|
54
54
|
expanded = options[:expanded] ? 'true' : 'false'
|
55
55
|
|
56
56
|
if options[:collapse]
|
57
57
|
content = link_to(
|
58
|
-
|
58
|
+
title,
|
59
|
+
"##{collapse_id(name)}",
|
59
60
|
role: 'button',
|
60
61
|
data: {
|
61
62
|
toggle: 'collapse',
|
62
|
-
parent: "##{
|
63
|
+
parent: "##{name.to_s.underscore}_accordian"
|
63
64
|
},
|
64
|
-
aria: { expanded: expanded, controls: collapse_id(
|
65
|
+
aria: { expanded: expanded, controls: collapse_id(name) }
|
65
66
|
)
|
66
67
|
content_tag(:div, panel_title(content),
|
67
68
|
class: 'panel-heading',
|
68
69
|
role: 'tab',
|
69
|
-
id: heading_id(
|
70
|
+
id: heading_id(name))
|
70
71
|
else
|
71
72
|
content_tag(:div, class: 'panel-heading') do
|
72
|
-
panel_title(
|
73
|
+
panel_title(title)
|
73
74
|
end
|
74
75
|
end
|
75
76
|
end
|
@@ -103,9 +104,9 @@ module PanelsFor
|
|
103
104
|
)
|
104
105
|
end
|
105
106
|
|
106
|
-
def
|
107
|
-
|
108
|
-
options[:icon] ? fa_icon(options[:icon], text:
|
107
|
+
def prepare_title(name, options)
|
108
|
+
title = options[:title] || name.to_s.titleize
|
109
|
+
options[:icon] ? fa_icon(options[:icon], text: title) : title
|
109
110
|
end
|
110
111
|
|
111
112
|
def heading_id(title)
|
data/lib/panels_for/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -1798,5 +1798,593 @@ PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:id]_creates_a_panel_
|
|
1798
1798
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1799
1799
|
-------------------------
|
1800
1800
|
PanelsForTest: test_truth
|
1801
|
+
-------------------------
|
1802
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1803
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1804
|
+
[1m[36m (1.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
1805
|
+
[1m[35m (1.4ms)[0m select sqlite_version(*)
|
1806
|
+
[1m[36m (1.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1807
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
1808
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
1809
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1810
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1811
|
+
-------------------------
|
1812
|
+
PanelsForTest: test_truth
|
1813
|
+
-------------------------
|
1814
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1815
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1816
|
+
---------------------------------------------------------------------------------------------------------------------------
|
1817
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_and_options[:collapsed]_generates_a_collapsable_panel
|
1818
|
+
---------------------------------------------------------------------------------------------------------------------------
|
1819
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1820
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1821
|
+
---------------------------------------------------------------------------------------------------
|
1822
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_generates_a_collapsable_panel
|
1823
|
+
---------------------------------------------------------------------------------------------------
|
1824
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1825
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1826
|
+
------------------------------------------------------------------------------------------------------
|
1827
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:icon]_draws_panel_with_icon_prefixed_title
|
1828
|
+
------------------------------------------------------------------------------------------------------
|
1829
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1830
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1831
|
+
-------------------------------------------------------------------------------------------------
|
1832
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:id]_creates_a_panel_with_the_given_id
|
1833
|
+
-------------------------------------------------------------------------------------------------
|
1834
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1835
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1836
|
+
-------------------------------------------------------------------------------------------------------
|
1837
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:title]_creates_a_panel_with_title_in_header
|
1838
|
+
-------------------------------------------------------------------------------------------------------
|
1839
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1840
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1841
|
+
-----------------------------------------------------------------------------
|
1842
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_draws_a_panel_with_content
|
1843
|
+
-----------------------------------------------------------------------------
|
1844
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1845
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1846
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
1847
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
1848
|
+
[1m[36m (1.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1849
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
1850
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
1851
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1852
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1853
|
+
---------------------------------------------------------------------------------------------------
|
1854
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_generates_a_collapsable_panel
|
1855
|
+
---------------------------------------------------------------------------------------------------
|
1856
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1857
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1858
|
+
-------------------------------------------------------------------------------------------------
|
1859
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:id]_creates_a_panel_with_the_given_id
|
1860
|
+
-------------------------------------------------------------------------------------------------
|
1861
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1862
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1863
|
+
------------------------------------------------------------------------------------------------------
|
1864
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:icon]_draws_panel_with_icon_prefixed_title
|
1865
|
+
------------------------------------------------------------------------------------------------------
|
1866
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1867
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1868
|
+
-----------------------------------------------------------------------------
|
1869
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_draws_a_panel_with_content
|
1870
|
+
-----------------------------------------------------------------------------
|
1871
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1872
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1873
|
+
-------------------------------------------------------------------------------------------------------
|
1874
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:title]_creates_a_panel_with_title_in_header
|
1875
|
+
-------------------------------------------------------------------------------------------------------
|
1876
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1877
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1878
|
+
---------------------------------------------------------------------------------------------------------------------------
|
1879
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_and_options[:collapsed]_generates_a_collapsable_panel
|
1880
|
+
---------------------------------------------------------------------------------------------------------------------------
|
1881
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1882
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1883
|
+
-------------------------
|
1884
|
+
PanelsForTest: test_truth
|
1885
|
+
-------------------------
|
1886
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
1887
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1888
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
1889
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
1890
|
+
[1m[36m (1.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1891
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
1892
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
1893
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1894
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1895
|
+
-------------------------
|
1896
|
+
PanelsForTest: test_truth
|
1897
|
+
-------------------------
|
1898
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1899
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1900
|
+
-----------------------------------------------------------------------------
|
1901
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_draws_a_panel_with_content
|
1902
|
+
-----------------------------------------------------------------------------
|
1903
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1904
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1905
|
+
------------------------------------------------------------------------------------------------------
|
1906
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:icon]_draws_panel_with_icon_prefixed_title
|
1907
|
+
------------------------------------------------------------------------------------------------------
|
1908
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1909
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1910
|
+
-------------------------------------------------------------------------------------------------------
|
1911
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:title]_creates_a_panel_with_title_in_header
|
1912
|
+
-------------------------------------------------------------------------------------------------------
|
1913
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1914
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1915
|
+
---------------------------------------------------------------------------------------------------------------------------
|
1916
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_and_options[:collapsed]_generates_a_collapsable_panel
|
1917
|
+
---------------------------------------------------------------------------------------------------------------------------
|
1918
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1919
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1920
|
+
-------------------------------------------------------------------------------------------------
|
1921
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:id]_creates_a_panel_with_the_given_id
|
1922
|
+
-------------------------------------------------------------------------------------------------
|
1923
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1924
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1925
|
+
---------------------------------------------------------------------------------------------------
|
1926
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_generates_a_collapsable_panel
|
1927
|
+
---------------------------------------------------------------------------------------------------
|
1928
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1929
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1930
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
1931
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
1932
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1933
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
1934
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
1935
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1936
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1937
|
+
------------------------------------------------------------------------------------------------------
|
1938
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:icon]_draws_panel_with_icon_prefixed_title
|
1939
|
+
------------------------------------------------------------------------------------------------------
|
1940
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1941
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1942
|
+
---------------------------------------------------------------------------------------------------
|
1943
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_generates_a_collapsable_panel
|
1944
|
+
---------------------------------------------------------------------------------------------------
|
1945
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1946
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1947
|
+
-------------------------------------------------------------------------------------------------
|
1948
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:id]_creates_a_panel_with_the_given_id
|
1949
|
+
-------------------------------------------------------------------------------------------------
|
1950
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1951
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1952
|
+
-------------------------------------------------------------------------------------------------------
|
1953
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:title]_creates_a_panel_with_title_in_header
|
1954
|
+
-------------------------------------------------------------------------------------------------------
|
1955
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1956
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1957
|
+
-----------------------------------------------------------------------------
|
1958
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_draws_a_panel_with_content
|
1959
|
+
-----------------------------------------------------------------------------
|
1960
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1961
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1962
|
+
---------------------------------------------------------------------------------------------------------------------------
|
1963
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_and_options[:collapsed]_generates_a_collapsable_panel
|
1964
|
+
---------------------------------------------------------------------------------------------------------------------------
|
1965
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1966
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1967
|
+
-------------------------
|
1968
|
+
PanelsForTest: test_truth
|
1969
|
+
-------------------------
|
1970
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1971
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1972
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
1973
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
1974
|
+
[1m[36m (1.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1975
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
1976
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
1977
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1978
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1979
|
+
-------------------------------------------------------------------------------------------------------
|
1980
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:title]_creates_a_panel_with_title_in_header
|
1981
|
+
-------------------------------------------------------------------------------------------------------
|
1982
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1983
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1984
|
+
---------------------------------------------------------------------------------------------------------------------------
|
1985
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_and_options[:collapsed]_generates_a_collapsable_panel
|
1986
|
+
---------------------------------------------------------------------------------------------------------------------------
|
1987
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1988
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1989
|
+
-------------------------------------------------------------------------------------------------
|
1990
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:id]_creates_a_panel_with_the_given_id
|
1991
|
+
-------------------------------------------------------------------------------------------------
|
1992
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1993
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1994
|
+
------------------------------------------------------------------------------------------------------
|
1995
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:icon]_draws_panel_with_icon_prefixed_title
|
1996
|
+
------------------------------------------------------------------------------------------------------
|
1997
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1998
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1999
|
+
---------------------------------------------------------------------------------------------------
|
2000
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_generates_a_collapsable_panel
|
2001
|
+
---------------------------------------------------------------------------------------------------
|
2002
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2003
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2004
|
+
-----------------------------------------------------------------------------
|
2005
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_draws_a_panel_with_content
|
2006
|
+
-----------------------------------------------------------------------------
|
2007
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2008
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2009
|
+
-------------------------
|
2010
|
+
PanelsForTest: test_truth
|
2011
|
+
-------------------------
|
2012
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2013
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2014
|
+
[1m[36m (1.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2015
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2016
|
+
[1m[36m (1.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2017
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
2018
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
2019
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2020
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2021
|
+
-------------------------
|
2022
|
+
PanelsForTest: test_truth
|
2023
|
+
-------------------------
|
2024
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2025
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2026
|
+
------------------------------------------------------------------------------------------------------
|
2027
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:icon]_draws_panel_with_icon_prefixed_title
|
2028
|
+
------------------------------------------------------------------------------------------------------
|
2029
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2030
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2031
|
+
---------------------------------------------------------------------------------------------------------------------------
|
2032
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_and_options[:collapsed]_generates_a_collapsable_panel
|
2033
|
+
---------------------------------------------------------------------------------------------------------------------------
|
2034
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2035
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2036
|
+
-------------------------------------------------------------------------------------------------
|
2037
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:id]_creates_a_panel_with_the_given_id
|
2038
|
+
-------------------------------------------------------------------------------------------------
|
2039
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2040
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2041
|
+
-----------------------------------------------------------------------------
|
2042
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_draws_a_panel_with_content
|
2043
|
+
-----------------------------------------------------------------------------
|
2044
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2045
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2046
|
+
-------------------------------------------------------------------------------------------------------
|
2047
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:title]_creates_a_panel_with_title_in_header
|
2048
|
+
-------------------------------------------------------------------------------------------------------
|
2049
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2050
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2051
|
+
---------------------------------------------------------------------------------------------------
|
2052
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_generates_a_collapsable_panel
|
2053
|
+
---------------------------------------------------------------------------------------------------
|
2054
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2055
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2056
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2057
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2058
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2059
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
2060
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
2061
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2062
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2063
|
+
-------------------------
|
2064
|
+
PanelsForTest: test_truth
|
2065
|
+
-------------------------
|
2066
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2067
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2068
|
+
---------------------------------------------------------------------------------------------------
|
2069
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_generates_a_collapsable_panel
|
2070
|
+
---------------------------------------------------------------------------------------------------
|
2071
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2072
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2073
|
+
-----------------------------------------------------------------------------
|
2074
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_draws_a_panel_with_content
|
2075
|
+
-----------------------------------------------------------------------------
|
2076
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2077
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2078
|
+
-------------------------------------------------------------------------------------------------
|
2079
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:id]_creates_a_panel_with_the_given_id
|
2080
|
+
-------------------------------------------------------------------------------------------------
|
2081
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2082
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2083
|
+
------------------------------------------------------------------------------------------------------
|
2084
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:icon]_draws_panel_with_icon_prefixed_title
|
2085
|
+
------------------------------------------------------------------------------------------------------
|
2086
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2087
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2088
|
+
---------------------------------------------------------------------------------------------------------------------------
|
2089
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_and_options[:collapsed]_generates_a_collapsable_panel
|
2090
|
+
---------------------------------------------------------------------------------------------------------------------------
|
2091
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2092
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2093
|
+
-------------------------------------------------------------------------------------------------------
|
2094
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:title]_creates_a_panel_with_title_in_header
|
2095
|
+
-------------------------------------------------------------------------------------------------------
|
2096
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2097
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2098
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2099
|
+
[1m[35m (0.4ms)[0m select sqlite_version(*)
|
2100
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2101
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
2102
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
2103
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2104
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2105
|
+
-------------------------
|
2106
|
+
PanelsForTest: test_truth
|
2107
|
+
-------------------------
|
2108
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2109
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2110
|
+
-----------------------------------------------------------------------------
|
2111
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_draws_a_panel_with_content
|
2112
|
+
-----------------------------------------------------------------------------
|
2113
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2114
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2115
|
+
-------------------------------------------------------------------------------------------------------
|
2116
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:title]_creates_a_panel_with_title_in_header
|
2117
|
+
-------------------------------------------------------------------------------------------------------
|
2118
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2119
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2120
|
+
------------------------------------------------------------------------------------------------------
|
2121
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:icon]_draws_panel_with_icon_prefixed_title
|
2122
|
+
------------------------------------------------------------------------------------------------------
|
2123
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2124
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2125
|
+
---------------------------------------------------------------------------------------------------------------------------
|
2126
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_and_options[:collapsed]_generates_a_collapsable_panel
|
2127
|
+
---------------------------------------------------------------------------------------------------------------------------
|
2128
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2129
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2130
|
+
-------------------------------------------------------------------------------------------------
|
2131
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:id]_creates_a_panel_with_the_given_id
|
2132
|
+
-------------------------------------------------------------------------------------------------
|
2133
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2134
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2135
|
+
---------------------------------------------------------------------------------------------------
|
2136
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_generates_a_collapsable_panel
|
2137
|
+
---------------------------------------------------------------------------------------------------
|
2138
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2139
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2140
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2141
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2142
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2143
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
2144
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
2145
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2146
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2147
|
+
-------------------------
|
2148
|
+
PanelsForTest: test_truth
|
2149
|
+
-------------------------
|
2150
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2151
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2152
|
+
-------------------------------------------------------------------------------------------------------
|
2153
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:title]_creates_a_panel_with_title_in_header
|
2154
|
+
-------------------------------------------------------------------------------------------------------
|
2155
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2156
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2157
|
+
---------------------------------------------------------------------------------------------------
|
2158
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_generates_a_collapsable_panel
|
2159
|
+
---------------------------------------------------------------------------------------------------
|
2160
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2161
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2162
|
+
------------------------------------------------------------------------------------------------------
|
2163
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:icon]_draws_panel_with_icon_prefixed_title
|
2164
|
+
------------------------------------------------------------------------------------------------------
|
2165
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2166
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2167
|
+
---------------------------------------------------------------------------------------------------------------------------
|
2168
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_and_options[:collapsed]_generates_a_collapsable_panel
|
2169
|
+
---------------------------------------------------------------------------------------------------------------------------
|
2170
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2171
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2172
|
+
-----------------------------------------------------------------------------
|
2173
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_draws_a_panel_with_content
|
2174
|
+
-----------------------------------------------------------------------------
|
2175
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2176
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2177
|
+
-------------------------------------------------------------------------------------------------
|
2178
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:id]_creates_a_panel_with_the_given_id
|
2179
|
+
-------------------------------------------------------------------------------------------------
|
2180
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2181
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2182
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2183
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2184
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2185
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
2186
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
2187
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2188
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2189
|
+
-------------------------
|
2190
|
+
PanelsForTest: test_truth
|
2191
|
+
-------------------------
|
2192
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2193
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2194
|
+
-----------------------------------------------------------------------------
|
2195
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_draws_a_panel_with_content
|
2196
|
+
-----------------------------------------------------------------------------
|
2197
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2198
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2199
|
+
-------------------------------------------------------------------------------------------------
|
2200
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:id]_creates_a_panel_with_the_given_id
|
2201
|
+
-------------------------------------------------------------------------------------------------
|
2202
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
2203
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2204
|
+
------------------------------------------------------------------------------------------------------
|
2205
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:icon]_draws_panel_with_icon_prefixed_title
|
2206
|
+
------------------------------------------------------------------------------------------------------
|
2207
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2208
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2209
|
+
---------------------------------------------------------------------------------------------------
|
2210
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_generates_a_collapsable_panel
|
2211
|
+
---------------------------------------------------------------------------------------------------
|
2212
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2213
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2214
|
+
---------------------------------------------------------------------------------------------------------------------------
|
2215
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_and_options[:collapsed]_generates_a_collapsable_panel
|
2216
|
+
---------------------------------------------------------------------------------------------------------------------------
|
2217
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
2218
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2219
|
+
-------------------------------------------------------------------------------------------------------
|
2220
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:title]_creates_a_panel_with_title_in_header
|
2221
|
+
-------------------------------------------------------------------------------------------------------
|
2222
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2223
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2224
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2225
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2226
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2227
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
2228
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
2229
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2230
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2231
|
+
-------------------------
|
2232
|
+
PanelsForTest: test_truth
|
2233
|
+
-------------------------
|
2234
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2235
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2236
|
+
-------------------------------------------------------------------------------------------------------
|
2237
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:title]_creates_a_panel_with_title_in_header
|
2238
|
+
-------------------------------------------------------------------------------------------------------
|
2239
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2240
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2241
|
+
-------------------------------------------------------------------------------------------------
|
2242
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:id]_creates_a_panel_with_the_given_id
|
2243
|
+
-------------------------------------------------------------------------------------------------
|
2244
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2245
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2246
|
+
------------------------------------------------------------------------------------------------------
|
2247
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:icon]_draws_panel_with_icon_prefixed_title
|
2248
|
+
------------------------------------------------------------------------------------------------------
|
2249
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2250
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2251
|
+
---------------------------------------------------------------------------------------------------
|
2252
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_generates_a_collapsable_panel
|
2253
|
+
---------------------------------------------------------------------------------------------------
|
2254
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2255
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2256
|
+
---------------------------------------------------------------------------------------------------------------------------
|
2257
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_and_options[:collapsed]_generates_a_collapsable_panel
|
2258
|
+
---------------------------------------------------------------------------------------------------------------------------
|
2259
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2260
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2261
|
+
-----------------------------------------------------------------------------
|
2262
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_draws_a_panel_with_content
|
2263
|
+
-----------------------------------------------------------------------------
|
2264
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2265
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2266
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2267
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
2268
|
+
[1m[36m (1.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2269
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
2270
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
2271
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2272
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2273
|
+
------------------------------------------------------------------------------------------------------
|
2274
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:icon]_draws_panel_with_icon_prefixed_title
|
2275
|
+
------------------------------------------------------------------------------------------------------
|
2276
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2277
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2278
|
+
---------------------------------------------------------------------------------------------------
|
2279
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_generates_a_collapsable_panel
|
2280
|
+
---------------------------------------------------------------------------------------------------
|
2281
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2282
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2283
|
+
-------------------------------------------------------------------------------------------------
|
2284
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:id]_creates_a_panel_with_the_given_id
|
2285
|
+
-------------------------------------------------------------------------------------------------
|
2286
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2287
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2288
|
+
-----------------------------------------------------------------------------
|
2289
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_draws_a_panel_with_content
|
2290
|
+
-----------------------------------------------------------------------------
|
2291
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2292
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2293
|
+
-------------------------------------------------------------------------------------------------------
|
2294
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:title]_creates_a_panel_with_title_in_header
|
2295
|
+
-------------------------------------------------------------------------------------------------------
|
2296
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2297
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2298
|
+
---------------------------------------------------------------------------------------------------------------------------
|
2299
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_and_options[:collapsed]_generates_a_collapsable_panel
|
2300
|
+
---------------------------------------------------------------------------------------------------------------------------
|
2301
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2302
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2303
|
+
-------------------------
|
2304
|
+
PanelsForTest: test_truth
|
2305
|
+
-------------------------
|
2306
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2307
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2308
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2309
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2310
|
+
[1m[36m (1.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2311
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
2312
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
2313
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2314
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2315
|
+
------------------------------------------------------------------------------------------------------
|
2316
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:icon]_draws_panel_with_icon_prefixed_title
|
2317
|
+
------------------------------------------------------------------------------------------------------
|
2318
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2319
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2320
|
+
-------------------------------------------------------------------------------------------------------
|
2321
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:title]_creates_a_panel_with_title_in_header
|
2322
|
+
-------------------------------------------------------------------------------------------------------
|
2323
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2324
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2325
|
+
-----------------------------------------------------------------------------
|
2326
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_draws_a_panel_with_content
|
2327
|
+
-----------------------------------------------------------------------------
|
2328
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2329
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2330
|
+
-------------------------------------------------------------------------------------------------
|
2331
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:id]_creates_a_panel_with_the_given_id
|
2332
|
+
-------------------------------------------------------------------------------------------------
|
2333
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2334
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2335
|
+
---------------------------------------------------------------------------------------------------------------------------
|
2336
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_and_options[:collapsed]_generates_a_collapsable_panel
|
2337
|
+
---------------------------------------------------------------------------------------------------------------------------
|
2338
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2339
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2340
|
+
---------------------------------------------------------------------------------------------------
|
2341
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_generates_a_collapsable_panel
|
2342
|
+
---------------------------------------------------------------------------------------------------
|
2343
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2344
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2345
|
+
-------------------------
|
2346
|
+
PanelsForTest: test_truth
|
2347
|
+
-------------------------
|
2348
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2349
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2350
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2351
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2352
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2353
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
2354
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
2355
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2356
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2357
|
+
-------------------------------------------------------------------------------------------------------
|
2358
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:title]_creates_a_panel_with_title_in_header
|
2359
|
+
-------------------------------------------------------------------------------------------------------
|
2360
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2361
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2362
|
+
---------------------------------------------------------------------------------------------------------------------------
|
2363
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_and_options[:collapsed]_generates_a_collapsable_panel
|
2364
|
+
---------------------------------------------------------------------------------------------------------------------------
|
2365
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2366
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2367
|
+
---------------------------------------------------------------------------------------------------
|
2368
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:collapse]_generates_a_collapsable_panel
|
2369
|
+
---------------------------------------------------------------------------------------------------
|
2370
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2371
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2372
|
+
-------------------------------------------------------------------------------------------------
|
2373
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:id]_creates_a_panel_with_the_given_id
|
2374
|
+
-------------------------------------------------------------------------------------------------
|
2375
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2376
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2377
|
+
-----------------------------------------------------------------------------
|
2378
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_draws_a_panel_with_content
|
2379
|
+
-----------------------------------------------------------------------------
|
2380
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2381
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2382
|
+
------------------------------------------------------------------------------------------------------
|
2383
|
+
PanelsFor::Rails::PanelsForHelperTest: test_#panel_options[:icon]_draws_panel_with_icon_prefixed_title
|
2384
|
+
------------------------------------------------------------------------------------------------------
|
2385
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2386
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2387
|
+
-------------------------
|
2388
|
+
PanelsForTest: test_truth
|
1801
2389
|
-------------------------
|
1802
2390
|
[1m[35m (0.0ms)[0m rollback transaction
|
@@ -37,6 +37,13 @@ class PanelsFor::Rails::PanelsForHelperTest < ActionView::TestCase
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
+
test "#panel options[:title] creates a panel with title in header" do
|
41
|
+
expected = '<div class="panel panel-default"><div class="panel-heading"><h4 class="panel-title">Hello</h4></div><div class="panel-body">Content</div></div>'
|
42
|
+
assert_panel_for(expected, object) do |b|
|
43
|
+
b.panel(:graphs, title: 'Hello') { 'Content' }
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
40
47
|
private
|
41
48
|
|
42
49
|
def object
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: panels_for
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ole J. Rosendahl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10
|
11
|
+
date: 2015-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|