prototype-rails 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 +1 -2
- data/test/assert_select_test.rb +11 -6
- data/test/fixtures/test/render_explicit_html_template.js.rjs +1 -1
- metadata +43 -35
data/Gemfile
CHANGED
data/test/assert_select_test.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
1
3
|
require 'abstract_unit'
|
2
4
|
|
3
5
|
class AssertSelectTest < ActionController::TestCase
|
@@ -47,7 +49,7 @@ class AssertSelectTest < ActionController::TestCase
|
|
47
49
|
assert_select "#2"
|
48
50
|
end
|
49
51
|
end
|
50
|
-
|
52
|
+
|
51
53
|
# With multiple results.
|
52
54
|
def test_assert_select_from_rjs_with_multiple_results
|
53
55
|
render_rjs do |page|
|
@@ -121,19 +123,22 @@ class AssertSelectTest < ActionController::TestCase
|
|
121
123
|
|
122
124
|
def test_assert_select_rjs_with_unicode
|
123
125
|
# Test that non-ascii characters (which are converted into \uXXXX in RJS) are decoded correctly.
|
126
|
+
|
127
|
+
unicode = "\343\203\201\343\202\261\343\203\203\343\203\210"
|
124
128
|
render_rjs do |page|
|
125
|
-
page.replace "test",
|
129
|
+
page.replace "test", %(<div id="1">#{unicode}</div>)
|
126
130
|
end
|
131
|
+
|
127
132
|
assert_select_rjs do
|
128
133
|
str = "#1"
|
129
|
-
assert_select str, :text =>
|
130
|
-
assert_select str,
|
134
|
+
assert_select str, :text => unicode
|
135
|
+
assert_select str, unicode
|
131
136
|
if str.respond_to?(:force_encoding)
|
132
137
|
assert_select str, /\343\203\201..\343\203\210/u
|
133
138
|
assert_raise(Assertion) { assert_select str, /\343\203\201.\343\203\210/u }
|
134
139
|
else
|
135
|
-
assert_select str, Regexp.new("\343\203\201..\343\203\210",0,'U')
|
136
|
-
assert_raise(Assertion) { assert_select str, Regexp.new("\343\203\201.\343\203\210",0,'U') }
|
140
|
+
assert_select str, Regexp.new("\343\203\201..\343\203\210", 0, 'U')
|
141
|
+
assert_raise(Assertion) { assert_select str, Regexp.new("\343\203\201.\343\203\210", 0, 'U') }
|
137
142
|
end
|
138
143
|
end
|
139
144
|
end
|
@@ -1 +1 @@
|
|
1
|
-
page.call "document.write", render(:partial =>
|
1
|
+
page.call "document.write", render(:partial => 'one')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prototype-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,22 +9,30 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-01-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
16
|
-
requirement: &
|
15
|
+
name: rails
|
16
|
+
requirement: &85346000 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 3.2.0.beta
|
22
|
-
- - <
|
19
|
+
- - ~>
|
23
20
|
- !ruby/object:Gem::Version
|
24
|
-
version: '
|
21
|
+
version: '3.2'
|
25
22
|
type: :runtime
|
26
23
|
prerelease: false
|
27
|
-
version_requirements: *
|
24
|
+
version_requirements: *85346000
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: mocha
|
27
|
+
requirement: &85345800 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *85345800
|
28
36
|
description:
|
29
37
|
email: fxn@hashref.com
|
30
38
|
executables: []
|
@@ -34,53 +42,53 @@ files:
|
|
34
42
|
- README
|
35
43
|
- Rakefile
|
36
44
|
- Gemfile
|
37
|
-
- lib/action_view/helpers/prototype_helper.rb
|
38
|
-
- lib/action_view/helpers/scriptaculous_helper.rb
|
39
45
|
- lib/action_view/template/handlers/rjs.rb
|
40
|
-
- lib/
|
46
|
+
- lib/action_view/helpers/scriptaculous_helper.rb
|
47
|
+
- lib/action_view/helpers/prototype_helper.rb
|
48
|
+
- lib/prototype-rails.rb
|
41
49
|
- lib/prototype-rails/on_load_action_controller.rb
|
42
|
-
- lib/prototype-rails/
|
50
|
+
- lib/prototype-rails/javascript_helper.rb
|
43
51
|
- lib/prototype-rails/renderers.rb
|
44
52
|
- lib/prototype-rails/rendering.rb
|
53
|
+
- lib/prototype-rails/on_load_action_view.rb
|
45
54
|
- lib/prototype-rails/selector_assertions.rb
|
46
|
-
- lib/prototype-rails.rb
|
47
|
-
- vendor/assets/javascripts/controls.js
|
48
55
|
- vendor/assets/javascripts/dragdrop.js
|
49
|
-
- vendor/assets/javascripts/effects.js
|
50
56
|
- vendor/assets/javascripts/prototype.js
|
51
57
|
- vendor/assets/javascripts/prototype_ujs.js
|
58
|
+
- vendor/assets/javascripts/controls.js
|
59
|
+
- vendor/assets/javascripts/effects.js
|
60
|
+
- test/render_other_test.rb
|
61
|
+
- test/lib/controller/fake_models.rb
|
52
62
|
- test/abstract_unit.rb
|
63
|
+
- test/template/scriptaculous_helper_test.rb
|
64
|
+
- test/template/prototype_helper_test.rb
|
65
|
+
- test/template/render_test.rb
|
53
66
|
- test/assert_select_test.rb
|
54
67
|
- test/controller/caching_test.rb
|
55
|
-
- test/controller/content_type_test.rb
|
56
|
-
- test/controller/mime_responds_test.rb
|
57
68
|
- test/controller/new_base/content_type_test.rb
|
58
69
|
- test/controller/new_base/render_rjs_test.rb
|
70
|
+
- test/controller/mime_responds_test.rb
|
71
|
+
- test/controller/content_type_test.rb
|
59
72
|
- test/controller/render_js_test.rb
|
60
|
-
- test/fixtures/functional_caching/_partial.erb
|
61
|
-
- test/fixtures/functional_caching/formatted_fragment_cached.js.rjs
|
62
73
|
- test/fixtures/functional_caching/js_fragment_cached_with_partial.js.rjs
|
74
|
+
- test/fixtures/functional_caching/formatted_fragment_cached.js.rjs
|
75
|
+
- test/fixtures/functional_caching/_partial.erb
|
63
76
|
- test/fixtures/old_content_type/render_default_for_rjs.rjs
|
64
|
-
- test/fixtures/respond_to/
|
77
|
+
- test/fixtures/respond_to/using_defaults_with_type_list.js.rjs
|
65
78
|
- test/fixtures/respond_to/layouts/standard.html.erb
|
79
|
+
- test/fixtures/respond_to/all_types_with_layout.js.rjs
|
66
80
|
- test/fixtures/respond_to/using_defaults.js.rjs
|
67
|
-
- test/fixtures/
|
68
|
-
- test/fixtures/respond_with/using_resource.js.rjs
|
69
|
-
- test/fixtures/test/_one.html.erb
|
70
|
-
- test/fixtures/test/_partial.html.erb
|
71
|
-
- test/fixtures/test/_partial.js.erb
|
72
|
-
- test/fixtures/test/_two.html.erb
|
81
|
+
- test/fixtures/test/render_implicit_html_template.js.rjs
|
73
82
|
- test/fixtures/test/delete_with_js.rjs
|
83
|
+
- test/fixtures/test/_partial.html.erb
|
74
84
|
- test/fixtures/test/enum_rjs_test.rjs
|
75
|
-
- test/fixtures/test/greeting.js.rjs
|
76
85
|
- test/fixtures/test/render_explicit_html_template.js.rjs
|
77
|
-
- test/fixtures/test/
|
86
|
+
- test/fixtures/test/_partial.js.erb
|
87
|
+
- test/fixtures/test/greeting.js.rjs
|
88
|
+
- test/fixtures/test/_one.html.erb
|
89
|
+
- test/fixtures/test/_two.html.erb
|
90
|
+
- test/fixtures/respond_with/using_resource.js.rjs
|
78
91
|
- test/javascript_helper_test.rb
|
79
|
-
- test/lib/controller/fake_models.rb
|
80
|
-
- test/render_other_test.rb
|
81
|
-
- test/template/prototype_helper_test.rb
|
82
|
-
- test/template/render_test.rb
|
83
|
-
- test/template/scriptaculous_helper_test.rb
|
84
92
|
homepage: http://github.com/rails/prototype-rails
|
85
93
|
licenses: []
|
86
94
|
post_install_message:
|