simple_workflow 1.3.0 → 1.3.1
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/simple_workflow/helper.rb +1 -1
- data/lib/simple_workflow/version.rb +1 -1
- data/test/helper_test.rb +11 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a401f2ff7174eab0a404f384aaf5cf6e0145c4df
|
4
|
+
data.tar.gz: 2c7550459676d6176f5ef806b936cea4d5f5ffe6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 735d22fee950b342604df519018045b16df0edb84cb1b6d2704459577415a0843c705a46cdd9727042904d15b2a337414b8ff59bf8e09a94ce2083e52dd41762
|
7
|
+
data.tar.gz: 36563aade7344805d5a6995f298a07cfa6a6f1b409547c2cd184dbe5edd607aea6ea891f6d2cdad737f137b8cce91acef4a1fc694cc8fa2696baec47c0ea7bf2
|
@@ -29,7 +29,7 @@ module SimpleWorkflow::Helper
|
|
29
29
|
def with_detour(options, origin = origin_options)
|
30
30
|
origin.update(origin_options) if origin.keys == [:anchor]
|
31
31
|
url = url_for(options)
|
32
|
-
url + (url =~ /\?/ ? '&' : '?') + origin.to_param('detour')
|
32
|
+
url + (url =~ /\?/ ? '&' : '?') + origin.to_h.to_param('detour')
|
33
33
|
end
|
34
34
|
|
35
35
|
def origin_options
|
data/test/helper_test.rb
CHANGED
@@ -28,6 +28,13 @@ class HelperTest < MiniTest::Test
|
|
28
28
|
image_button_to('my_image.png', 'Link Title', { id: 'image_tag_id' }, title: 'Image title')
|
29
29
|
end
|
30
30
|
|
31
|
+
def test_image_link_to
|
32
|
+
assert_equal [
|
33
|
+
['my_image.png', { title: 'Link Title', alt: 'Link Title' }], { id: 'image_tag_id' }, nil
|
34
|
+
],
|
35
|
+
image_link_to('my_image.png', 'Link Title', { id: 'image_tag_id' }, title: 'Image title')
|
36
|
+
end
|
37
|
+
|
31
38
|
private
|
32
39
|
|
33
40
|
def params
|
@@ -42,6 +49,10 @@ class HelperTest < MiniTest::Test
|
|
42
49
|
options
|
43
50
|
end
|
44
51
|
|
52
|
+
def image_tag(*args)
|
53
|
+
args
|
54
|
+
end
|
55
|
+
|
45
56
|
def image_submit_tag(*args)
|
46
57
|
args
|
47
58
|
end
|