bootstrap_help 0.0.26 → 0.0.28
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 009745243b1acf73fa3dad07f238728299c96325
|
|
4
|
+
data.tar.gz: ba4355e89e5251daed1dc606b94cea72cef4908a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd050bc37813840f4f73e86e438acefab81b8fed026ccd8ea2b843d90c6e6407f3087906b5c830477ccd6585d368d2b380a3519b8625f3f2690c64224b89adec
|
|
7
|
+
data.tar.gz: ea0f937330ed2ec0b896c5c7575a1a9f0551bbf1c06a3bfec87a8f5a9d08c3a1dc8051828bc8fd072f277aac35618792bf6620d49760cfbff614e1e8636148bd
|
|
@@ -29,7 +29,8 @@ module BootstrapHelp
|
|
|
29
29
|
button_options = append_css_class("btn btn-primary", options)
|
|
30
30
|
link_to url, button_options do
|
|
31
31
|
if icon_suffix.present?
|
|
32
|
-
concat(content_tag :i, nil, class: "icon-#{icon_suffix}")
|
|
32
|
+
concat(content_tag :i, nil, class: "icon-#{icon_suffix} icon-white")
|
|
33
|
+
name = " #{name}"
|
|
33
34
|
end
|
|
34
35
|
concat(name)
|
|
35
36
|
end
|
|
@@ -30,7 +30,7 @@ describe BootstrapHelp::ButtonHelpers do
|
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
it "returns a primary button with an icon when specified" do
|
|
33
|
-
expected_result = "<a class=\"btn btn-primary\" href=\"#\"><i class=\"icon-edit\"></i>New Store</a>"
|
|
33
|
+
expected_result = "<a class=\"btn btn-primary\" href=\"#\"><i class=\"icon-edit icon-white\"></i> New Store</a>"
|
|
34
34
|
expect(helpers.button_to('New Store', '#', icon: "edit")).
|
|
35
35
|
to eq(expected_result)
|
|
36
36
|
end
|