ultimate-base 0.3.2 → 0.3.2.1
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock
CHANGED
@@ -35,7 +35,7 @@ __string_encode = (str) -> _.map(str, (char) -> "&##{char.charCodeAt(0)};" ).joi
|
|
35
35
|
if block
|
36
36
|
Ultimate.Helpers.Tag.content_tag('a', html_options, null, false, block)
|
37
37
|
else
|
38
|
-
Ultimate.Helpers.Tag.content_tag('a', name
|
38
|
+
Ultimate.Helpers.Tag.content_tag('a', name ? url, html_options, false)
|
39
39
|
|
40
40
|
link_to_js: (name = null, html_options = null, block = null) ->
|
41
41
|
[options, name] = [name, null] if block = _.outcasts.blockGiven(arguments)
|
@@ -29,6 +29,10 @@ test "link_to", ->
|
|
29
29
|
'<a class="red" data-confirm="You cant possibly be sure,\n can you?" href="http://www.example.com">Hello</a>'
|
30
30
|
equal link_to(null, -> 'caption'), '<a href="javascript:;">caption</a>'
|
31
31
|
equal link_to(-> 'caption'), '<a href="javascript:;">caption</a>'
|
32
|
+
equal link_to('0', 'http://www.example.com'), '<a href="http://www.example.com">0</a>'
|
33
|
+
equal link_to(0, 'http://www.example.com'), '<a href="http://www.example.com">0</a>'
|
34
|
+
equal link_to(false, 'http://www.example.com'), '<a href="http://www.example.com">false</a>'
|
35
|
+
equal link_to('', 'http://www.example.com'), '<a href="http://www.example.com"></a>'
|
32
36
|
|
33
37
|
test "link_to_js", ->
|
34
38
|
equal link_to_js('caption'), '<a href="javascript:;">caption</a>'
|