hyphenify 0.0.5 → 0.0.6
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.
- checksums.yaml +4 -4
- data/lib/hyphenify.rb +2 -1
- data/lib/hyphenify/action_view/base.rb +20 -0
- data/lib/hyphenify/railtie.rb +14 -0
- data/lib/hyphenify/version.rb +1 -1
- data/test/dummy/app/controllers/pages_controller.rb +9 -0
- data/test/dummy/app/views/layouts/application.html.erb +2 -2
- data/test/dummy/app/views/pages/form.html.erb +4 -0
- data/test/dummy/app/views/pages/index.html.erb +1 -0
- data/test/dummy/config/application.rb +1 -1
- data/test/dummy/config/initializers/secret_token.rb +1 -1
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/log/development.log +7 -2
- data/test/dummy/log/test.log +27 -805
- data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/tags_test.rb +18 -0
- data/test/test_helper.rb +5 -2
- metadata +29 -13
- data/lib/hyphenify/rails.rb +0 -7
- data/lib/hyphenify/rails/action_view/base.rb +0 -22
- data/lib/hyphenify/rails/railtie.rb +0 -16
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/helpers_test.rb +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6502040bd6c2e6f497804e4a1a88049345a4f14
|
4
|
+
data.tar.gz: 597a4fe7aa13070f34c1b36004b2e628f96400da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42f92490257ab961e30cc8e1593824637e4efdd6e17e10cf6ead10059a33944313e69b9a19b14809f27c7a676ba36478ada03ea17b8090f92f1988136b0275d3
|
7
|
+
data.tar.gz: d3b5b295d77866a1573f85d6fbd73695e60d1a82fcd8c23f6587952e7715e65de75b0858cd3f553dc411b3894150c898a7259144a91ed992111c93d1c82376eb
|
data/lib/hyphenify.rb
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
module Hyphenify
|
2
|
+
module ActionView
|
3
|
+
module Base
|
4
|
+
extend ActiveSupport::Concern
|
5
|
+
|
6
|
+
included do
|
7
|
+
alias_method_chain :tag_options, :hyphen
|
8
|
+
end
|
9
|
+
|
10
|
+
private
|
11
|
+
|
12
|
+
def tag_options_with_hyphen(options, escape = true)
|
13
|
+
options.stringify_keys!
|
14
|
+
%w[id class for].each { |key| options[key] = options[key].to_s.dasherize if options.has_key? key }
|
15
|
+
tag_options_without_hyphen options, escape
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module Hyphenify
|
2
|
+
class Railtie < Rails::Railtie
|
3
|
+
|
4
|
+
initializer 'hyphenify' do
|
5
|
+
::ActionView::Base.send :include, Hyphenify::ActionView::Base
|
6
|
+
if Rails::VERSION::MAJOR < 4
|
7
|
+
::ActionView::Helpers::InstanceTag.send :include, Hyphenify::ActionView::Base
|
8
|
+
else
|
9
|
+
::ActionView::Helpers::Tags::Base.send :include, Hyphenify::ActionView::Base
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
data/lib/hyphenify/version.rb
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<title>Dummy</title>
|
5
|
-
<%= stylesheet_link_tag
|
6
|
-
<%= javascript_include_tag
|
5
|
+
<%= stylesheet_link_tag 'application', media: 'all' %>
|
6
|
+
<%= javascript_include_tag 'application' %>
|
7
7
|
<%= csrf_meta_tags %>
|
8
8
|
</head>
|
9
9
|
<body>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= tag :div, class: 'the_class', id: 'the_id' %>
|
@@ -9,4 +9,4 @@
|
|
9
9
|
|
10
10
|
# Make sure your secret_key_base is kept private
|
11
11
|
# if you're sharing your code publicly.
|
12
|
-
Dummy::Application.config.secret_key_base = '
|
12
|
+
Dummy::Application.config.secret_key_base = 'ed0eded0efc92fa96afd1113ea2b9f8dc601e53805294f14a7e4be9d84831561a88c7217883807df7cc675293285fe08de00d0379ffdd019fad4f0dbdfbd73c5'
|
data/test/dummy/config/routes.rb
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
-
[1m[36m (
|
2
|
-
[1m[35m (
|
1
|
+
[1m[36m (2.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
2
|
+
[1m[35m (2.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
3
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
6
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
8
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
data/test/dummy/log/test.log
CHANGED
@@ -1,817 +1,39 @@
|
|
1
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2
|
-
---------------------------------------------------------
|
3
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
4
|
-
---------------------------------------------------------
|
5
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
6
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7
|
-
-------------------------
|
8
|
-
HyphenifyTest: test_truth
|
9
|
-
-------------------------
|
10
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
11
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
12
|
-
---------------------------------------------------------
|
13
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
14
|
-
---------------------------------------------------------
|
15
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
16
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17
|
-
-------------------------
|
18
|
-
HyphenifyTest: test_truth
|
19
|
-
-------------------------
|
20
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
21
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
22
|
-
---------------------------------------------------------
|
23
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
24
|
-
---------------------------------------------------------
|
25
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
26
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
27
|
-
-------------------------
|
28
|
-
HyphenifyTest: test_truth
|
29
|
-
-------------------------
|
30
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
31
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
32
|
-
---------------------------------------------------------
|
33
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
34
|
-
---------------------------------------------------------
|
35
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
36
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
37
|
-
-------------------------
|
38
|
-
HyphenifyTest: test_truth
|
39
|
-
-------------------------
|
40
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
41
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
42
|
-
---------------------------------------------------------
|
43
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
44
|
-
---------------------------------------------------------
|
45
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
46
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
47
|
-
-------------------------
|
48
|
-
HyphenifyTest: test_truth
|
49
|
-
-------------------------
|
50
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
51
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
52
|
-
---------------------------------------------------------
|
53
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
54
|
-
---------------------------------------------------------
|
55
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
56
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57
|
-
-------------------------
|
58
|
-
HyphenifyTest: test_truth
|
59
|
-
-------------------------
|
60
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
61
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
62
|
-
---------------------------------------------------------
|
63
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
64
|
-
---------------------------------------------------------
|
65
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
66
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
67
|
-
-------------------------
|
68
|
-
HyphenifyTest: test_truth
|
69
|
-
-------------------------
|
70
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
71
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
72
|
-
---------------------------------------------------------
|
73
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
74
|
-
---------------------------------------------------------
|
75
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
76
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
77
|
-
-------------------------
|
78
|
-
HyphenifyTest: test_truth
|
79
|
-
-------------------------
|
80
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
81
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
82
|
-
---------------------------------------------------------
|
83
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
84
|
-
---------------------------------------------------------
|
85
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
86
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
87
|
-
-------------------------
|
88
|
-
HyphenifyTest: test_truth
|
89
|
-
-------------------------
|
90
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
91
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
92
|
-
---------------------------------------------------------
|
93
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
94
|
-
---------------------------------------------------------
|
95
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
96
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
97
|
-
-------------------------
|
98
|
-
HyphenifyTest: test_truth
|
99
|
-
-------------------------
|
100
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
101
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
102
|
-
---------------------------------------------------------
|
103
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
104
|
-
---------------------------------------------------------
|
105
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
106
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107
|
-
-------------------------
|
108
|
-
HyphenifyTest: test_truth
|
109
|
-
-------------------------
|
110
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
111
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
112
|
-
---------------------------------------------------------
|
113
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
114
|
-
---------------------------------------------------------
|
115
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
116
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
117
|
-
-------------------------
|
118
|
-
HyphenifyTest: test_truth
|
119
|
-
-------------------------
|
120
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
121
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
122
|
-
---------------------------------------------------------
|
123
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
124
|
-
---------------------------------------------------------
|
125
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
126
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
127
|
-
-------------------------
|
128
|
-
HyphenifyTest: test_truth
|
129
|
-
-------------------------
|
130
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
131
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
132
|
-
---------------------------------------------------------
|
133
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
134
|
-
---------------------------------------------------------
|
135
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
136
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
137
|
-
-------------------------
|
138
|
-
HyphenifyTest: test_truth
|
139
|
-
-------------------------
|
140
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
141
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
142
|
-
---------------------------------------------------------
|
143
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
144
|
-
---------------------------------------------------------
|
145
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
146
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
147
|
-
-------------------------
|
148
|
-
HyphenifyTest: test_truth
|
149
|
-
-------------------------
|
150
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
151
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
152
|
-
---------------------------------------------------------
|
153
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
154
|
-
---------------------------------------------------------
|
155
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
156
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
157
|
-
-------------------------
|
158
|
-
HyphenifyTest: test_truth
|
159
|
-
-------------------------
|
160
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
161
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
162
|
-
---------------------------------------------------------
|
163
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
164
|
-
---------------------------------------------------------
|
165
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
166
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
167
|
-
-------------------------
|
168
|
-
HyphenifyTest: test_truth
|
169
|
-
-------------------------
|
170
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
171
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
172
|
-
---------------------------------------------------------
|
173
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
174
|
-
---------------------------------------------------------
|
175
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
176
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
177
|
-
-------------------------
|
178
|
-
HyphenifyTest: test_truth
|
179
|
-
-------------------------
|
180
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
181
|
-
|
182
|
-
***** Debugger requested, but was not available (ensure the debugger gem is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
|
183
|
-
|
184
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
185
|
-
---------------------------------------------------------
|
186
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
187
|
-
---------------------------------------------------------
|
188
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
189
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
190
|
-
-------------------------
|
191
|
-
HyphenifyTest: test_truth
|
192
|
-
-------------------------
|
193
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
194
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
195
|
-
---------------------------------------------------------
|
196
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
197
|
-
---------------------------------------------------------
|
198
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
199
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
200
|
-
-------------------------
|
201
|
-
HyphenifyTest: test_truth
|
202
|
-
-------------------------
|
203
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
204
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
205
|
-
---------------------------------------------------------
|
206
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
207
|
-
---------------------------------------------------------
|
208
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
209
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
210
|
-
-------------------------
|
211
|
-
HyphenifyTest: test_truth
|
212
|
-
-------------------------
|
213
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
214
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
215
|
-
---------------------------------------------------------
|
216
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
217
|
-
---------------------------------------------------------
|
218
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
219
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
220
|
-
-------------------------
|
221
|
-
HyphenifyTest: test_truth
|
222
|
-
-------------------------
|
223
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
224
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
225
|
-
---------------------------------------------------------
|
226
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
227
|
-
---------------------------------------------------------
|
228
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
229
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
230
|
-
-------------------------
|
231
|
-
HyphenifyTest: test_truth
|
232
|
-
-------------------------
|
233
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
234
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
235
|
-
---------------------------------------------------------
|
236
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
237
|
-
---------------------------------------------------------
|
238
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
239
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
240
|
-
-------------------------
|
241
|
-
HyphenifyTest: test_truth
|
242
|
-
-------------------------
|
243
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
244
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
245
|
-
---------------------------------------------------------
|
246
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
247
|
-
---------------------------------------------------------
|
248
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
249
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
250
|
-
-------------------------
|
251
|
-
HyphenifyTest: test_truth
|
252
|
-
-------------------------
|
253
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
254
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
255
|
-
---------------------------------------------------------
|
256
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
257
|
-
---------------------------------------------------------
|
258
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
259
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
260
|
-
-------------------------
|
261
|
-
HyphenifyTest: test_truth
|
262
|
-
-------------------------
|
263
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
264
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
265
|
-
---------------------------------------------------------
|
266
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
267
|
-
---------------------------------------------------------
|
268
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
269
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
270
|
-
-------------------------
|
271
|
-
HyphenifyTest: test_truth
|
272
|
-
-------------------------
|
273
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
274
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
275
|
-
---------------------------------------------------------
|
276
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
277
|
-
---------------------------------------------------------
|
278
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
279
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
280
|
-
-------------------------
|
281
|
-
HyphenifyTest: test_truth
|
282
|
-
-------------------------
|
283
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
284
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
285
|
-
---------------------------------------------------------
|
286
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
287
|
-
---------------------------------------------------------
|
288
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
289
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
290
|
-
-------------------------
|
291
|
-
HyphenifyTest: test_truth
|
292
|
-
-------------------------
|
293
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
294
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
295
|
-
---------------------------------------------------------
|
296
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
297
|
-
---------------------------------------------------------
|
298
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
299
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
300
|
-
-------------------------
|
301
|
-
HyphenifyTest: test_truth
|
302
|
-
-------------------------
|
303
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
304
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
305
|
-
---------------------------------------------------------
|
306
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
307
|
-
---------------------------------------------------------
|
308
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
309
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
310
|
-
-------------------------
|
311
|
-
HyphenifyTest: test_truth
|
312
|
-
-------------------------
|
313
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
314
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
315
|
-
---------------------------------------------------------
|
316
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
317
|
-
---------------------------------------------------------
|
318
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
319
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
320
|
-
-------------------------
|
321
|
-
HyphenifyTest: test_truth
|
322
|
-
-------------------------
|
323
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
324
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
325
|
-
---------------------------------------------------------
|
326
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
327
|
-
---------------------------------------------------------
|
328
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
329
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
330
|
-
-------------------------
|
331
|
-
HyphenifyTest: test_truth
|
332
|
-
-------------------------
|
333
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
334
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
335
|
-
---------------------------------------------------------
|
336
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
337
|
-
---------------------------------------------------------
|
338
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
339
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
340
|
-
-------------------------
|
341
|
-
HyphenifyTest: test_truth
|
342
|
-
-------------------------
|
343
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
344
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
345
|
-
---------------------------------------------------------
|
346
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
347
|
-
---------------------------------------------------------
|
348
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
349
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
350
|
-
-------------------------
|
351
|
-
HyphenifyTest: test_truth
|
352
|
-
-------------------------
|
353
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
354
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
355
|
-
---------------------------------------------------------
|
356
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
357
|
-
---------------------------------------------------------
|
358
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
359
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
360
|
-
-------------------------
|
361
|
-
HyphenifyTest: test_truth
|
362
|
-
-------------------------
|
363
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
364
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
365
|
-
---------------------------------------------------------
|
366
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
367
|
-
---------------------------------------------------------
|
368
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
369
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
370
|
-
-------------------------
|
371
|
-
HyphenifyTest: test_truth
|
372
|
-
-------------------------
|
373
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
374
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
375
|
-
---------------------------------------------------------
|
376
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
377
|
-
---------------------------------------------------------
|
378
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
379
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
380
|
-
-------------------------
|
381
|
-
HyphenifyTest: test_truth
|
382
|
-
-------------------------
|
383
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
384
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
385
|
-
---------------------------------------------------------
|
386
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
387
|
-
---------------------------------------------------------
|
388
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
389
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
390
|
-
-------------------------
|
391
|
-
HyphenifyTest: test_truth
|
392
|
-
-------------------------
|
393
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
394
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
395
|
-
---------------------------------------------------------
|
396
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
397
|
-
---------------------------------------------------------
|
398
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
399
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
400
|
-
-------------------------
|
401
|
-
HyphenifyTest: test_truth
|
402
|
-
-------------------------
|
403
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
404
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
405
|
-
---------------------------------------------------------
|
406
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
407
|
-
---------------------------------------------------------
|
408
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
409
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
410
|
-
-------------------------
|
411
|
-
HyphenifyTest: test_truth
|
412
|
-
-------------------------
|
413
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
414
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
415
|
-
---------------------------------------------------------
|
416
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
417
|
-
---------------------------------------------------------
|
418
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
419
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
420
|
-
-------------------------
|
421
|
-
HyphenifyTest: test_truth
|
422
|
-
-------------------------
|
423
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
424
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
425
|
-
---------------------------------------------------------
|
426
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
427
|
-
---------------------------------------------------------
|
428
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
429
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
430
|
-
-------------------------
|
431
|
-
HyphenifyTest: test_truth
|
432
|
-
-------------------------
|
433
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
434
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
435
|
-
---------------------------------------------------------
|
436
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
437
|
-
---------------------------------------------------------
|
438
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
439
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
440
|
-
-------------------------
|
441
|
-
HyphenifyTest: test_truth
|
442
|
-
-------------------------
|
443
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
444
1
|
[1m[36m (0.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
445
2
|
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
446
|
-
[1m[36m (0.
|
3
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
447
4
|
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
448
5
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
[1m[
|
454
|
-
-------------------------
|
455
|
-
HyphenifyTest: test_truth
|
456
|
-
-------------------------
|
457
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
458
|
-
[1m[36m (0.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
459
|
-
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
460
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
461
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
6
|
+
-----------------------------------------------------------------
|
7
|
+
TagsTest: test_forms_tags_should_return_id_and_class_with_hyphens
|
8
|
+
-----------------------------------------------------------------
|
9
|
+
Started GET "/form" for 127.0.0.1 at 2013-08-18 22:38:37 -0300
|
10
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
462
11
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
463
|
-
|
464
|
-
|
465
|
-
|
12
|
+
-----------------------------------------------------------
|
13
|
+
TagsTest: test_tags_should_return_id_and_class_with_hyphens
|
14
|
+
-----------------------------------------------------------
|
15
|
+
Started GET "/" for 127.0.0.1 at 2013-08-18 22:38:37 -0300
|
16
|
+
Processing by PagesController#index as HTML
|
17
|
+
Completed 200 OK in 38ms (Views: 37.4ms | ActiveRecord: 0.0ms)
|
466
18
|
[1m[35m (0.1ms)[0m rollback transaction
|
467
19
|
[1m[36m (0.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
468
20
|
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
469
21
|
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
470
22
|
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
471
23
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
[1m[35m (0.1ms)[0m
|
480
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
488
|
-
---------------------------------------------------------
|
489
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
490
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
491
|
-
---------------------------------------------------------
|
492
|
-
HelpersTest: test_should_return_id_and_class_with_hyphens
|
493
|
-
---------------------------------------------------------
|
494
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
495
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
496
|
-
-----------------------------------------------------------------------
|
497
|
-
HelpersTest: test_form_elements_should_return_id_and_class_with_hyphens
|
498
|
-
-----------------------------------------------------------------------
|
499
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
500
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
501
|
-
-------------------------------------------------------------------------
|
502
|
-
HelpersTest: test_simple_elements_should_return_id_and_class_with_hyphens
|
503
|
-
-------------------------------------------------------------------------
|
504
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
505
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
506
|
-
-----------------------------------------------------------------------
|
507
|
-
HelpersTest: test_form_elements_should_return_id_and_class_with_hyphens
|
508
|
-
-----------------------------------------------------------------------
|
509
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
510
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
511
|
-
-------------------------------------------------------------------------
|
512
|
-
HelpersTest: test_simple_elements_should_return_id_and_class_with_hyphens
|
513
|
-
-------------------------------------------------------------------------
|
514
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
515
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
516
|
-
-----------------------------------------------------------------------
|
517
|
-
HelpersTest: test_form_elements_should_return_id_and_class_with_hyphens
|
518
|
-
-----------------------------------------------------------------------
|
519
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
520
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
521
|
-
-------------------------------------------------------------------------
|
522
|
-
HelpersTest: test_simple_elements_should_return_id_and_class_with_hyphens
|
523
|
-
-------------------------------------------------------------------------
|
524
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
525
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
526
|
-
-----------------------------------------------------------------------
|
527
|
-
HelpersTest: test_form_elements_should_return_id_and_class_with_hyphens
|
528
|
-
-----------------------------------------------------------------------
|
529
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
530
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
531
|
-
-------------------------------------------------------------------------
|
532
|
-
HelpersTest: test_simple_elements_should_return_id_and_class_with_hyphens
|
533
|
-
-------------------------------------------------------------------------
|
534
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
535
|
-
Connecting to database specified by database.yml
|
536
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
537
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
538
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
539
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
540
|
-
Connecting to database specified by database.yml
|
541
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
542
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
543
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
544
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
545
|
-
Connecting to database specified by database.yml
|
546
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
547
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
548
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
549
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
550
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
551
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
552
|
-
Connecting to database specified by database.yml
|
553
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
554
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
555
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
556
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
557
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
558
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
559
|
-
Connecting to database specified by database.yml
|
560
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
561
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
562
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
563
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
564
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
565
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
566
|
-
Connecting to database specified by database.yml
|
567
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
568
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
569
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
570
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
571
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
572
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
573
|
-
Connecting to database specified by database.yml
|
574
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
575
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
576
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
577
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
578
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
579
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
580
|
-
Connecting to database specified by database.yml
|
581
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
582
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
583
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
584
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
585
|
-
Connecting to database specified by database.yml
|
586
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
587
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
588
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
589
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
590
|
-
|
591
|
-
***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
|
592
|
-
|
593
|
-
Connecting to database specified by database.yml
|
594
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
595
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
596
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
597
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
598
|
-
Connecting to database specified by database.yml
|
599
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
600
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
601
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
602
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
603
|
-
Connecting to database specified by database.yml
|
604
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
605
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
606
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
607
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
608
|
-
Connecting to database specified by database.yml
|
609
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
610
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
611
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
612
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
613
|
-
Connecting to database specified by database.yml
|
614
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
615
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
616
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
617
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
618
|
-
Connecting to database specified by database.yml
|
619
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
620
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
621
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
622
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
623
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
624
|
-
-------------------------------------------------------------------
|
625
|
-
HelpersTest: test_form_tags_should_return_id_and_class_with_hyphens
|
626
|
-
-------------------------------------------------------------------
|
627
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
628
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
629
|
-
---------------------------------------------------------------------
|
630
|
-
HelpersTest: test_simple_tags_should_return_id_and_class_with_hyphens
|
631
|
-
---------------------------------------------------------------------
|
632
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
633
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
634
|
-
-------------------------------------------------------------------
|
635
|
-
HelpersTest: test_form_tags_should_return_id_and_class_with_hyphens
|
636
|
-
-------------------------------------------------------------------
|
637
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
638
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
639
|
-
---------------------------------------------------------------------
|
640
|
-
HelpersTest: test_simple_tags_should_return_id_and_class_with_hyphens
|
641
|
-
---------------------------------------------------------------------
|
642
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
643
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
644
|
-
-------------------------------------------------------------------
|
645
|
-
HelpersTest: test_form_tags_should_return_id_and_class_with_hyphens
|
646
|
-
-------------------------------------------------------------------
|
647
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
648
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
649
|
-
---------------------------------------------------------------------
|
650
|
-
HelpersTest: test_simple_tags_should_return_id_and_class_with_hyphens
|
651
|
-
---------------------------------------------------------------------
|
652
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
653
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
654
|
-
-------------------------------------------------------------------
|
655
|
-
HelpersTest: test_form_tags_should_return_id_and_class_with_hyphens
|
656
|
-
-------------------------------------------------------------------
|
657
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
658
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
659
|
-
---------------------------------------------------------------------
|
660
|
-
HelpersTest: test_simple_tags_should_return_id_and_class_with_hyphens
|
661
|
-
---------------------------------------------------------------------
|
662
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
663
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
664
|
-
-------------------------------------------------------------------
|
665
|
-
HelpersTest: test_form_tags_should_return_id_and_class_with_hyphens
|
666
|
-
-------------------------------------------------------------------
|
667
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
668
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
669
|
-
---------------------------------------------------------------------
|
670
|
-
HelpersTest: test_simple_tags_should_return_id_and_class_with_hyphens
|
671
|
-
---------------------------------------------------------------------
|
672
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
673
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
674
|
-
-------------------------------------------------------------------
|
675
|
-
HelpersTest: test_form_tags_should_return_id_and_class_with_hyphens
|
676
|
-
-------------------------------------------------------------------
|
677
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
678
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
679
|
-
---------------------------------------------------------------------
|
680
|
-
HelpersTest: test_simple_tags_should_return_id_and_class_with_hyphens
|
681
|
-
---------------------------------------------------------------------
|
682
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
683
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
684
|
-
-------------------------------------------------------------------
|
685
|
-
HelpersTest: test_form_tags_should_return_id_and_class_with_hyphens
|
686
|
-
-------------------------------------------------------------------
|
687
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
688
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
689
|
-
---------------------------------------------------------------------
|
690
|
-
HelpersTest: test_simple_tags_should_return_id_and_class_with_hyphens
|
691
|
-
---------------------------------------------------------------------
|
692
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
693
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
694
|
-
-------------------------------------------------------------------
|
695
|
-
HelpersTest: test_form_tags_should_return_id_and_class_with_hyphens
|
696
|
-
-------------------------------------------------------------------
|
697
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
698
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
699
|
-
---------------------------------------------------------------------
|
700
|
-
HelpersTest: test_simple_tags_should_return_id_and_class_with_hyphens
|
701
|
-
---------------------------------------------------------------------
|
702
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
703
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
704
|
-
-------------------------------------------------------------------
|
705
|
-
HelpersTest: test_form_tags_should_return_id_and_class_with_hyphens
|
706
|
-
-------------------------------------------------------------------
|
707
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
708
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
709
|
-
---------------------------------------------------------------------
|
710
|
-
HelpersTest: test_simple_tags_should_return_id_and_class_with_hyphens
|
711
|
-
---------------------------------------------------------------------
|
712
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
713
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
714
|
-
-------------------------------------------------------------------
|
715
|
-
HelpersTest: test_form_tags_should_return_id_and_class_with_hyphens
|
716
|
-
-------------------------------------------------------------------
|
717
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
718
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
719
|
-
---------------------------------------------------------------------
|
720
|
-
HelpersTest: test_simple_tags_should_return_id_and_class_with_hyphens
|
721
|
-
---------------------------------------------------------------------
|
722
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
723
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
724
|
-
-------------------------------------------------------------------
|
725
|
-
HelpersTest: test_form_tags_should_return_id_and_class_with_hyphens
|
726
|
-
-------------------------------------------------------------------
|
727
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
728
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
729
|
-
---------------------------------------------------------------------
|
730
|
-
HelpersTest: test_simple_tags_should_return_id_and_class_with_hyphens
|
731
|
-
---------------------------------------------------------------------
|
732
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
733
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
734
|
-
-------------------------------------------------------------------
|
735
|
-
HelpersTest: test_form_tags_should_return_id_and_class_with_hyphens
|
736
|
-
-------------------------------------------------------------------
|
737
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
738
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
739
|
-
---------------------------------------------------------------------
|
740
|
-
HelpersTest: test_simple_tags_should_return_id_and_class_with_hyphens
|
741
|
-
---------------------------------------------------------------------
|
742
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
743
|
-
Connecting to database specified by database.yml
|
744
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
745
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
746
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
747
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
748
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
749
|
-
-------------------------------------------------------------------
|
750
|
-
HelpersTest: test_form_tags_should_return_id_and_class_with_hyphens
|
751
|
-
-------------------------------------------------------------------
|
752
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
753
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
754
|
-
---------------------------------------------------------------------
|
755
|
-
HelpersTest: test_simple_tags_should_return_id_and_class_with_hyphens
|
756
|
-
---------------------------------------------------------------------
|
757
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
758
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
759
|
-
-------------------------------------------------------------------
|
760
|
-
HelpersTest: test_form_tags_should_return_id_and_class_with_hyphens
|
761
|
-
-------------------------------------------------------------------
|
762
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
763
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
764
|
-
---------------------------------------------------------------------
|
765
|
-
HelpersTest: test_simple_tags_should_return_id_and_class_with_hyphens
|
766
|
-
---------------------------------------------------------------------
|
767
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
768
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
769
|
-
-------------------------------------------------------------------
|
770
|
-
HelpersTest: test_form_tags_should_return_id_and_class_with_hyphens
|
771
|
-
-------------------------------------------------------------------
|
772
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
773
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
774
|
-
---------------------------------------------------------------------
|
775
|
-
HelpersTest: test_simple_tags_should_return_id_and_class_with_hyphens
|
776
|
-
---------------------------------------------------------------------
|
777
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
778
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
779
|
-
-------------------------------------------------------------------
|
780
|
-
HelpersTest: test_form_tags_should_return_id_and_class_with_hyphens
|
781
|
-
-------------------------------------------------------------------
|
782
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
783
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
784
|
-
---------------------------------------------------------------------
|
785
|
-
HelpersTest: test_simple_tags_should_return_id_and_class_with_hyphens
|
786
|
-
---------------------------------------------------------------------
|
787
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
788
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
789
|
-
-------------------------------------------------------------------
|
790
|
-
HelpersTest: test_form_tags_should_return_id_and_class_with_hyphens
|
791
|
-
-------------------------------------------------------------------
|
792
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
793
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
794
|
-
---------------------------------------------------------------------
|
795
|
-
HelpersTest: test_simple_tags_should_return_id_and_class_with_hyphens
|
796
|
-
---------------------------------------------------------------------
|
797
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
798
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
799
|
-
-------------------------------------------------------------------
|
800
|
-
HelpersTest: test_form_tags_should_return_id_and_class_with_hyphens
|
801
|
-
-------------------------------------------------------------------
|
802
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
803
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
804
|
-
---------------------------------------------------------------------
|
805
|
-
HelpersTest: test_simple_tags_should_return_id_and_class_with_hyphens
|
806
|
-
---------------------------------------------------------------------
|
807
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
808
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
809
|
-
-------------------------------------------------------------------
|
810
|
-
HelpersTest: test_form_tags_should_return_id_and_class_with_hyphens
|
811
|
-
-------------------------------------------------------------------
|
812
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
813
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
814
|
-
---------------------------------------------------------------------
|
815
|
-
HelpersTest: test_simple_tags_should_return_id_and_class_with_hyphens
|
816
|
-
---------------------------------------------------------------------
|
24
|
+
-----------------------------------------------------------------
|
25
|
+
TagsTest: test_forms_tags_should_return_id_and_class_with_hyphens
|
26
|
+
-----------------------------------------------------------------
|
27
|
+
Started GET "/form" for 127.0.0.1 at 2013-08-18 22:39:00 -0300
|
28
|
+
Processing by PagesController#form as HTML
|
29
|
+
Rendered pages/form.html.erb within layouts/application (116.3ms)
|
30
|
+
Completed 200 OK in 128ms (Views: 127.9ms | ActiveRecord: 0.0ms)
|
31
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
32
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33
|
+
-----------------------------------------------------------
|
34
|
+
TagsTest: test_tags_should_return_id_and_class_with_hyphens
|
35
|
+
-----------------------------------------------------------
|
36
|
+
Started GET "/" for 127.0.0.1 at 2013-08-18 22:39:00 -0300
|
37
|
+
Processing by PagesController#index as HTML
|
38
|
+
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
|
817
39
|
[1m[35m (0.1ms)[0m rollback transaction
|
data/test/tags_test.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class TagsTest < ActionDispatch::IntegrationTest
|
4
|
+
|
5
|
+
test "tags should return id and class with hyphens" do
|
6
|
+
get '/'
|
7
|
+
assert_response :success
|
8
|
+
assert response.body.include?('class="the-class" id="the-id"')
|
9
|
+
end
|
10
|
+
|
11
|
+
test "forms tags should return id and class with hyphens" do
|
12
|
+
get '/form'
|
13
|
+
assert_response :success
|
14
|
+
assert response.body.include?('for="test-id"')
|
15
|
+
assert response.body.include?('class="the-class" id="test-id"')
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -14,5 +14,8 @@ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
|
14
14
|
ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
|
15
15
|
end
|
16
16
|
|
17
|
-
# Load
|
18
|
-
|
17
|
+
# Load database
|
18
|
+
config = YAML::load(File.read(File.expand_path('../dummy/config/database.yml', __FILE__)))
|
19
|
+
config['test']['adapter'] = 'jdbcsqlite3' if RUBY_PLATFORM == 'java'
|
20
|
+
ActiveRecord::Base.establish_connection(config['test'])
|
21
|
+
load(File.expand_path('../dummy/db/schema.rb', __FILE__))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hyphenify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mattways
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -38,16 +38,15 @@ dependencies:
|
|
38
38
|
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
description: Hacks
|
41
|
+
description: Hacks tags helpers to always use hyphens.
|
42
42
|
email:
|
43
43
|
- contact@mattways.com
|
44
44
|
executables: []
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- lib/hyphenify/
|
49
|
-
- lib/hyphenify/
|
50
|
-
- lib/hyphenify/rails.rb
|
48
|
+
- lib/hyphenify/action_view/base.rb
|
49
|
+
- lib/hyphenify/railtie.rb
|
51
50
|
- lib/hyphenify/version.rb
|
52
51
|
- lib/hyphenify.rb
|
53
52
|
- MIT-LICENSE
|
@@ -56,8 +55,11 @@ files:
|
|
56
55
|
- test/dummy/app/assets/javascripts/application.js
|
57
56
|
- test/dummy/app/assets/stylesheets/application.css
|
58
57
|
- test/dummy/app/controllers/application_controller.rb
|
58
|
+
- test/dummy/app/controllers/pages_controller.rb
|
59
59
|
- test/dummy/app/helpers/application_helper.rb
|
60
60
|
- test/dummy/app/views/layouts/application.html.erb
|
61
|
+
- test/dummy/app/views/pages/form.html.erb
|
62
|
+
- test/dummy/app/views/pages/index.html.erb
|
61
63
|
- test/dummy/bin/bundle
|
62
64
|
- test/dummy/bin/rails
|
63
65
|
- test/dummy/bin/rake
|
@@ -80,7 +82,6 @@ files:
|
|
80
82
|
- test/dummy/config.ru
|
81
83
|
- test/dummy/db/development.sqlite3
|
82
84
|
- test/dummy/db/schema.rb
|
83
|
-
- test/dummy/db/test.sqlite3
|
84
85
|
- test/dummy/log/development.log
|
85
86
|
- test/dummy/log/test.log
|
86
87
|
- test/dummy/public/404.html
|
@@ -89,10 +90,17 @@ files:
|
|
89
90
|
- test/dummy/public/favicon.ico
|
90
91
|
- test/dummy/Rakefile
|
91
92
|
- test/dummy/README.rdoc
|
92
|
-
- test/
|
93
|
+
- test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
|
94
|
+
- test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
95
|
+
- test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
|
96
|
+
- test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
97
|
+
- test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
98
|
+
- test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
99
|
+
- test/tags_test.rb
|
93
100
|
- test/test_helper.rb
|
94
101
|
homepage: https://github.com/mattways/hyphenify
|
95
|
-
licenses:
|
102
|
+
licenses:
|
103
|
+
- MIT
|
96
104
|
metadata: {}
|
97
105
|
post_install_message:
|
98
106
|
rdoc_options: []
|
@@ -110,16 +118,19 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
118
|
version: '0'
|
111
119
|
requirements: []
|
112
120
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.0.
|
121
|
+
rubygems_version: 2.0.3
|
114
122
|
signing_key:
|
115
123
|
specification_version: 4
|
116
|
-
summary: Force hyphens in
|
124
|
+
summary: Force hyphens in tags helpers.
|
117
125
|
test_files:
|
118
126
|
- test/dummy/app/assets/javascripts/application.js
|
119
127
|
- test/dummy/app/assets/stylesheets/application.css
|
120
128
|
- test/dummy/app/controllers/application_controller.rb
|
129
|
+
- test/dummy/app/controllers/pages_controller.rb
|
121
130
|
- test/dummy/app/helpers/application_helper.rb
|
122
131
|
- test/dummy/app/views/layouts/application.html.erb
|
132
|
+
- test/dummy/app/views/pages/form.html.erb
|
133
|
+
- test/dummy/app/views/pages/index.html.erb
|
123
134
|
- test/dummy/bin/bundle
|
124
135
|
- test/dummy/bin/rails
|
125
136
|
- test/dummy/bin/rake
|
@@ -142,7 +153,6 @@ test_files:
|
|
142
153
|
- test/dummy/config.ru
|
143
154
|
- test/dummy/db/development.sqlite3
|
144
155
|
- test/dummy/db/schema.rb
|
145
|
-
- test/dummy/db/test.sqlite3
|
146
156
|
- test/dummy/log/development.log
|
147
157
|
- test/dummy/log/test.log
|
148
158
|
- test/dummy/public/404.html
|
@@ -151,5 +161,11 @@ test_files:
|
|
151
161
|
- test/dummy/public/favicon.ico
|
152
162
|
- test/dummy/Rakefile
|
153
163
|
- test/dummy/README.rdoc
|
154
|
-
- test/
|
164
|
+
- test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
|
165
|
+
- test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
166
|
+
- test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
|
167
|
+
- test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
168
|
+
- test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
169
|
+
- test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
170
|
+
- test/tags_test.rb
|
155
171
|
- test/test_helper.rb
|
data/lib/hyphenify/rails.rb
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
module Hyphenify
|
2
|
-
module Rails
|
3
|
-
module ActionView
|
4
|
-
module Base
|
5
|
-
extend ActiveSupport::Concern
|
6
|
-
|
7
|
-
included do
|
8
|
-
alias_method_chain :tag_options, :hyphen
|
9
|
-
end
|
10
|
-
|
11
|
-
private
|
12
|
-
|
13
|
-
def tag_options_with_hyphen(options, escape = true)
|
14
|
-
options.stringify_keys!
|
15
|
-
%w[id class for].each { |key| options[key] = options[key].to_s.dasherize if options.has_key? key }
|
16
|
-
tag_options_without_hyphen options, escape
|
17
|
-
end
|
18
|
-
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
module Hyphenify
|
2
|
-
module Rails
|
3
|
-
class Railtie < ::Rails::Railtie
|
4
|
-
|
5
|
-
initializer 'hyphenify' do
|
6
|
-
::ActionView::Base.send :include, Hyphenify::Rails::ActionView::Base
|
7
|
-
if ::Rails::VERSION::MAJOR < 4
|
8
|
-
::ActionView::Helpers::InstanceTag.send :include, Hyphenify::Rails::ActionView::Base
|
9
|
-
else
|
10
|
-
::ActionView::Helpers::Tags::Base.send :include, Hyphenify::Rails::ActionView::Base
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
data/test/dummy/db/test.sqlite3
DELETED
File without changes
|
data/test/helpers_test.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
class HelpersTest < ActionView::TestCase
|
4
|
-
|
5
|
-
test "simple tags should return id and class with hyphens" do
|
6
|
-
html = tag(:div, class: 'the_class', id: 'the_id')
|
7
|
-
assert html.to_s.include?('class="the-class" id="the-id"')
|
8
|
-
end
|
9
|
-
|
10
|
-
test "form tags should return id and class with hyphens" do
|
11
|
-
html = form_for(:test, url: 'http://test.com') do |f|
|
12
|
-
f.label(:id) + f.text_field(:id, class: 'the_class')
|
13
|
-
end
|
14
|
-
assert html.to_s.include?('for="test-id"')
|
15
|
-
assert html.to_s.include?('class="the-class" id="test-id"')
|
16
|
-
end
|
17
|
-
|
18
|
-
end
|