thin_man 0.19.6 → 0.19.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/debug_logger.js +12 -2
- data/app/assets/javascripts/thin_man.js +937 -931
- data/lib/thin_man/ajax_helper.rb +4 -1
- data/lib/thin_man/version.rb +1 -1
- data/test/javascript/karma.conf.js +44 -49
- data/test/javascript/spec/thinManSpec.js +224 -254
- data/test/thin_man_test.rb +6 -1
- metadata +2 -2
data/test/thin_man_test.rb
CHANGED
@@ -20,6 +20,9 @@ class ThinManTest < ActionView::TestCase
|
|
20
20
|
@replace_response = true
|
21
21
|
@no_confirm = true
|
22
22
|
@custom_progress = '#custom_progress'
|
23
|
+
|
24
|
+
@search_path = "/search_path"
|
25
|
+
@search_params = "search_params"
|
23
26
|
end
|
24
27
|
|
25
28
|
it "generates ajax link hash" do
|
@@ -45,7 +48,7 @@ class ThinManTest < ActionView::TestCase
|
|
45
48
|
insert_method: @insert_method, empty_on_success: @empty_on_success,
|
46
49
|
http_method: @http_method, progress_target: @progress_target,
|
47
50
|
progress_color: @progress_color, sequence_number: @sequence_number,
|
48
|
-
sequence_group: @sequence_group)
|
51
|
+
sequence_group: @sequence_group, search_params: @search_params, search_path: @search_path)
|
49
52
|
test_link.must_match "data-ajax-link-now="
|
50
53
|
test_link.must_match(/class=.test_class./)
|
51
54
|
test_link.must_match "data-ajax-target=\"#{@target}\""
|
@@ -56,6 +59,8 @@ class ThinManTest < ActionView::TestCase
|
|
56
59
|
test_link.must_match "data-progress-color=\"#{@progress_color}\""
|
57
60
|
test_link.must_match "data-sequence-group=\"#{@sequence_group}\""
|
58
61
|
test_link.must_match "data-sequence-number=\"#{@sequence_number}\""
|
62
|
+
test_link.must_match "data-search-path=\"#{@search_path}\""
|
63
|
+
test_link.must_match "data-search-params=\"#{@search_params}\""
|
59
64
|
end
|
60
65
|
|
61
66
|
it "generates a delete link" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thin_man
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.
|
4
|
+
version: 0.19.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Draut, Adam Bialek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|