diabolo-webrat 0.4.3 → 0.4.4
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.
- data/History.txt +8 -0
- data/Rakefile +5 -1
- data/lib/webrat/core/locators/field_labeled_locator.rb +1 -1
- data/lib/webrat/core/locators/label_locator.rb +1 -1
- data/lib/webrat/core_extensions/tcp_socket.rb +27 -0
- data/lib/webrat/selenium/application_server.rb +71 -0
- data/lib/webrat/selenium/merb_application_server.rb +48 -0
- data/lib/webrat/selenium/rails_application_server.rb +42 -0
- data/lib/webrat/selenium/selenium_rc_server.rb +80 -0
- data/lib/webrat/selenium/sinatra_application_server.rb +35 -0
- data/spec/fakes/test_session.rb +34 -0
- data/spec/integration/merb/app/controllers/application.rb +2 -0
- data/spec/integration/merb/app/controllers/exceptions.rb +13 -0
- data/spec/integration/merb/app/controllers/testing.rb +18 -0
- data/spec/integration/merb/config/environments/development.rb +15 -0
- data/spec/integration/merb/config/environments/rake.rb +11 -0
- data/spec/integration/merb/config/environments/test.rb +14 -0
- data/spec/integration/merb/config/init.rb +25 -0
- data/spec/integration/merb/config/rack.rb +11 -0
- data/spec/integration/merb/config/router.rb +33 -0
- data/spec/integration/merb/spec/spec_helper.rb +24 -0
- data/spec/integration/merb/spec/webrat_spec.rb +32 -0
- data/spec/integration/merb/tasks/merb.thor/app_script.rb +31 -0
- data/spec/integration/merb/tasks/merb.thor/common.rb +64 -0
- data/spec/integration/merb/tasks/merb.thor/gem_ext.rb +124 -0
- data/spec/integration/merb/tasks/merb.thor/ops.rb +93 -0
- data/spec/integration/merb/tasks/merb.thor/utils.rb +40 -0
- data/spec/integration/rails/app/controllers/application.rb +15 -0
- data/spec/integration/rails/app/controllers/webrat_controller.rb +39 -0
- data/spec/integration/rails/config/boot.rb +109 -0
- data/spec/integration/rails/config/environment.rb +12 -0
- data/spec/integration/rails/config/environments/development.rb +17 -0
- data/spec/integration/rails/config/environments/selenium.rb +22 -0
- data/spec/integration/rails/config/environments/test.rb +22 -0
- data/spec/integration/rails/config/initializers/inflections.rb +10 -0
- data/spec/integration/rails/config/initializers/mime_types.rb +5 -0
- data/spec/integration/rails/config/initializers/new_rails_defaults.rb +17 -0
- data/spec/integration/rails/config/routes.rb +14 -0
- data/spec/integration/rails/test/integration/webrat_test.rb +80 -0
- data/spec/integration/rails/test/test_helper.rb +25 -0
- data/spec/integration/sinatra/classic_app.rb +64 -0
- data/spec/integration/sinatra/modular_app.rb +16 -0
- data/spec/integration/sinatra/test/classic_app_test.rb +37 -0
- data/spec/integration/sinatra/test/modular_app_test.rb +18 -0
- data/spec/integration/sinatra/test/test_helper.rb +16 -0
- data/spec/private/core/configuration_spec.rb +104 -0
- data/spec/private/core/field_spec.rb +67 -0
- data/spec/private/core/link_spec.rb +24 -0
- data/spec/private/core/logging_spec.rb +10 -0
- data/spec/private/core/session_spec.rb +198 -0
- data/spec/private/mechanize/mechanize_session_spec.rb +81 -0
- data/spec/private/merb/merb_session_spec.rb +42 -0
- data/spec/private/nokogiri_spec.rb +77 -0
- data/spec/private/rails/attaches_file_spec.rb +81 -0
- data/spec/private/rails/rails_session_spec.rb +110 -0
- data/spec/public/basic_auth_spec.rb +24 -0
- data/spec/public/check_spec.rb +191 -0
- data/spec/public/choose_spec.rb +118 -0
- data/spec/public/click_area_spec.rb +106 -0
- data/spec/public/click_button_spec.rb +502 -0
- data/spec/public/click_link_spec.rb +541 -0
- data/spec/public/fill_in_spec.rb +209 -0
- data/spec/public/locators/field_by_xpath_spec.rb +19 -0
- data/spec/public/locators/field_labeled_spec.rb +172 -0
- data/spec/public/locators/field_with_id_spec.rb +16 -0
- data/spec/public/matchers/contain_spec.rb +114 -0
- data/spec/public/matchers/have_selector_spec.rb +135 -0
- data/spec/public/matchers/have_tag_spec.rb +39 -0
- data/spec/public/matchers/have_xpath_spec.rb +123 -0
- data/spec/public/reload_spec.rb +10 -0
- data/spec/public/save_and_open_spec.rb +51 -0
- data/spec/public/select_date_spec.rb +112 -0
- data/spec/public/select_datetime_spec.rb +137 -0
- data/spec/public/select_spec.rb +261 -0
- data/spec/public/select_time_spec.rb +100 -0
- data/spec/public/set_hidden_field_spec.rb +5 -0
- data/spec/public/submit_form_spec.rb +5 -0
- data/spec/public/visit_spec.rb +58 -0
- data/spec/public/within_spec.rb +177 -0
- data/spec/spec_helper.rb +50 -0
- metadata +90 -25
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: diabolo-webrat
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bryan Helmkamp
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-
|
|
12
|
+
date: 2009-04-24 00:00:00 -07:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
@@ -29,18 +29,17 @@ executables: []
|
|
|
29
29
|
extensions: []
|
|
30
30
|
|
|
31
31
|
extra_rdoc_files:
|
|
32
|
-
- README.rdoc
|
|
33
32
|
- MIT-LICENSE.txt
|
|
33
|
+
- README.rdoc
|
|
34
34
|
files:
|
|
35
35
|
- History.txt
|
|
36
|
-
- install.rb
|
|
37
36
|
- MIT-LICENSE.txt
|
|
38
37
|
- README.rdoc
|
|
39
38
|
- Rakefile
|
|
40
|
-
-
|
|
41
|
-
- lib/webrat
|
|
39
|
+
- install.rb
|
|
40
|
+
- lib/webrat.rb
|
|
41
|
+
- lib/webrat/core.rb
|
|
42
42
|
- lib/webrat/core/configuration.rb
|
|
43
|
-
- lib/webrat/core/elements
|
|
44
43
|
- lib/webrat/core/elements/area.rb
|
|
45
44
|
- lib/webrat/core/elements/element.rb
|
|
46
45
|
- lib/webrat/core/elements/field.rb
|
|
@@ -48,7 +47,7 @@ files:
|
|
|
48
47
|
- lib/webrat/core/elements/label.rb
|
|
49
48
|
- lib/webrat/core/elements/link.rb
|
|
50
49
|
- lib/webrat/core/elements/select_option.rb
|
|
51
|
-
- lib/webrat/core/locators
|
|
50
|
+
- lib/webrat/core/locators.rb
|
|
52
51
|
- lib/webrat/core/locators/area_locator.rb
|
|
53
52
|
- lib/webrat/core/locators/button_locator.rb
|
|
54
53
|
- lib/webrat/core/locators/field_by_id_locator.rb
|
|
@@ -60,62 +59,59 @@ files:
|
|
|
60
59
|
- lib/webrat/core/locators/link_locator.rb
|
|
61
60
|
- lib/webrat/core/locators/locator.rb
|
|
62
61
|
- lib/webrat/core/locators/select_option_locator.rb
|
|
63
|
-
- lib/webrat/core/locators.rb
|
|
64
62
|
- lib/webrat/core/logging.rb
|
|
65
|
-
- lib/webrat/core/matchers
|
|
63
|
+
- lib/webrat/core/matchers.rb
|
|
66
64
|
- lib/webrat/core/matchers/have_content.rb
|
|
67
65
|
- lib/webrat/core/matchers/have_selector.rb
|
|
68
66
|
- lib/webrat/core/matchers/have_tag.rb
|
|
69
67
|
- lib/webrat/core/matchers/have_xpath.rb
|
|
70
|
-
- lib/webrat/core/matchers.rb
|
|
71
68
|
- lib/webrat/core/methods.rb
|
|
72
69
|
- lib/webrat/core/mime.rb
|
|
73
70
|
- lib/webrat/core/save_and_open_page.rb
|
|
74
71
|
- lib/webrat/core/scope.rb
|
|
75
72
|
- lib/webrat/core/session.rb
|
|
76
|
-
- lib/webrat/core/xml
|
|
73
|
+
- lib/webrat/core/xml.rb
|
|
77
74
|
- lib/webrat/core/xml/hpricot.rb
|
|
78
75
|
- lib/webrat/core/xml/nokogiri.rb
|
|
79
76
|
- lib/webrat/core/xml/rexml.rb
|
|
80
|
-
- lib/webrat/core/xml.rb
|
|
81
|
-
- lib/webrat/core.rb
|
|
82
|
-
- lib/webrat/core_extensions
|
|
83
77
|
- lib/webrat/core_extensions/blank.rb
|
|
84
78
|
- lib/webrat/core_extensions/deprecate.rb
|
|
85
79
|
- lib/webrat/core_extensions/detect_mapped.rb
|
|
86
80
|
- lib/webrat/core_extensions/meta_class.rb
|
|
87
81
|
- lib/webrat/core_extensions/nil_to_param.rb
|
|
82
|
+
- lib/webrat/core_extensions/tcp_socket.rb
|
|
88
83
|
- lib/webrat/mechanize.rb
|
|
89
84
|
- lib/webrat/merb.rb
|
|
90
85
|
- lib/webrat/merb_session.rb
|
|
91
86
|
- lib/webrat/rack.rb
|
|
92
87
|
- lib/webrat/rails.rb
|
|
93
88
|
- lib/webrat/rspec-rails.rb
|
|
94
|
-
- lib/webrat/selenium
|
|
95
|
-
- lib/webrat/selenium/
|
|
89
|
+
- lib/webrat/selenium.rb
|
|
90
|
+
- lib/webrat/selenium/application_server.rb
|
|
96
91
|
- lib/webrat/selenium/location_strategy_javascript/button.js
|
|
97
92
|
- lib/webrat/selenium/location_strategy_javascript/label.js
|
|
98
93
|
- lib/webrat/selenium/location_strategy_javascript/webrat.js
|
|
99
94
|
- lib/webrat/selenium/location_strategy_javascript/webratlink.js
|
|
100
95
|
- lib/webrat/selenium/location_strategy_javascript/webratlinkwithin.js
|
|
101
96
|
- lib/webrat/selenium/location_strategy_javascript/webratselectwithoption.js
|
|
102
|
-
- lib/webrat/selenium/matchers
|
|
97
|
+
- lib/webrat/selenium/matchers.rb
|
|
103
98
|
- lib/webrat/selenium/matchers/have_content.rb
|
|
104
99
|
- lib/webrat/selenium/matchers/have_selector.rb
|
|
105
100
|
- lib/webrat/selenium/matchers/have_tag.rb
|
|
106
101
|
- lib/webrat/selenium/matchers/have_xpath.rb
|
|
107
|
-
- lib/webrat/selenium/
|
|
102
|
+
- lib/webrat/selenium/merb_application_server.rb
|
|
103
|
+
- lib/webrat/selenium/rails_application_server.rb
|
|
108
104
|
- lib/webrat/selenium/selenium_extensions.js
|
|
105
|
+
- lib/webrat/selenium/selenium_rc_server.rb
|
|
109
106
|
- lib/webrat/selenium/selenium_session.rb
|
|
110
|
-
- lib/webrat/selenium.rb
|
|
107
|
+
- lib/webrat/selenium/sinatra_application_server.rb
|
|
111
108
|
- lib/webrat/sinatra.rb
|
|
112
|
-
- lib/webrat.rb
|
|
113
109
|
- vendor/selenium-server.jar
|
|
114
110
|
has_rdoc: true
|
|
115
111
|
homepage: http://github.com/brynary/webrat
|
|
116
112
|
post_install_message:
|
|
117
|
-
rdoc_options:
|
|
118
|
-
|
|
113
|
+
rdoc_options:
|
|
114
|
+
- --charset=UTF-8
|
|
119
115
|
require_paths:
|
|
120
116
|
- lib
|
|
121
117
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
@@ -137,5 +133,74 @@ rubygems_version: 1.2.0
|
|
|
137
133
|
signing_key:
|
|
138
134
|
specification_version: 2
|
|
139
135
|
summary: Webrat. Ruby Acceptance Testing for Web applications
|
|
140
|
-
test_files:
|
|
141
|
-
|
|
136
|
+
test_files:
|
|
137
|
+
- spec/fakes/test_session.rb
|
|
138
|
+
- spec/integration/merb/app/controllers/application.rb
|
|
139
|
+
- spec/integration/merb/app/controllers/exceptions.rb
|
|
140
|
+
- spec/integration/merb/app/controllers/testing.rb
|
|
141
|
+
- spec/integration/merb/config/environments/development.rb
|
|
142
|
+
- spec/integration/merb/config/environments/rake.rb
|
|
143
|
+
- spec/integration/merb/config/environments/test.rb
|
|
144
|
+
- spec/integration/merb/config/init.rb
|
|
145
|
+
- spec/integration/merb/config/rack.rb
|
|
146
|
+
- spec/integration/merb/config/router.rb
|
|
147
|
+
- spec/integration/merb/spec/spec_helper.rb
|
|
148
|
+
- spec/integration/merb/spec/webrat_spec.rb
|
|
149
|
+
- spec/integration/merb/tasks/merb.thor/app_script.rb
|
|
150
|
+
- spec/integration/merb/tasks/merb.thor/common.rb
|
|
151
|
+
- spec/integration/merb/tasks/merb.thor/gem_ext.rb
|
|
152
|
+
- spec/integration/merb/tasks/merb.thor/ops.rb
|
|
153
|
+
- spec/integration/merb/tasks/merb.thor/utils.rb
|
|
154
|
+
- spec/integration/rails/app/controllers/application.rb
|
|
155
|
+
- spec/integration/rails/app/controllers/webrat_controller.rb
|
|
156
|
+
- spec/integration/rails/config/boot.rb
|
|
157
|
+
- spec/integration/rails/config/environment.rb
|
|
158
|
+
- spec/integration/rails/config/environments/development.rb
|
|
159
|
+
- spec/integration/rails/config/environments/selenium.rb
|
|
160
|
+
- spec/integration/rails/config/environments/test.rb
|
|
161
|
+
- spec/integration/rails/config/initializers/inflections.rb
|
|
162
|
+
- spec/integration/rails/config/initializers/mime_types.rb
|
|
163
|
+
- spec/integration/rails/config/initializers/new_rails_defaults.rb
|
|
164
|
+
- spec/integration/rails/config/routes.rb
|
|
165
|
+
- spec/integration/rails/test/integration/webrat_test.rb
|
|
166
|
+
- spec/integration/rails/test/test_helper.rb
|
|
167
|
+
- spec/integration/sinatra/classic_app.rb
|
|
168
|
+
- spec/integration/sinatra/modular_app.rb
|
|
169
|
+
- spec/integration/sinatra/test/classic_app_test.rb
|
|
170
|
+
- spec/integration/sinatra/test/modular_app_test.rb
|
|
171
|
+
- spec/integration/sinatra/test/test_helper.rb
|
|
172
|
+
- spec/private/core/configuration_spec.rb
|
|
173
|
+
- spec/private/core/field_spec.rb
|
|
174
|
+
- spec/private/core/link_spec.rb
|
|
175
|
+
- spec/private/core/logging_spec.rb
|
|
176
|
+
- spec/private/core/session_spec.rb
|
|
177
|
+
- spec/private/mechanize/mechanize_session_spec.rb
|
|
178
|
+
- spec/private/merb/merb_session_spec.rb
|
|
179
|
+
- spec/private/nokogiri_spec.rb
|
|
180
|
+
- spec/private/rails/attaches_file_spec.rb
|
|
181
|
+
- spec/private/rails/rails_session_spec.rb
|
|
182
|
+
- spec/public/basic_auth_spec.rb
|
|
183
|
+
- spec/public/check_spec.rb
|
|
184
|
+
- spec/public/choose_spec.rb
|
|
185
|
+
- spec/public/click_area_spec.rb
|
|
186
|
+
- spec/public/click_button_spec.rb
|
|
187
|
+
- spec/public/click_link_spec.rb
|
|
188
|
+
- spec/public/fill_in_spec.rb
|
|
189
|
+
- spec/public/locators/field_by_xpath_spec.rb
|
|
190
|
+
- spec/public/locators/field_labeled_spec.rb
|
|
191
|
+
- spec/public/locators/field_with_id_spec.rb
|
|
192
|
+
- spec/public/matchers/contain_spec.rb
|
|
193
|
+
- spec/public/matchers/have_selector_spec.rb
|
|
194
|
+
- spec/public/matchers/have_tag_spec.rb
|
|
195
|
+
- spec/public/matchers/have_xpath_spec.rb
|
|
196
|
+
- spec/public/reload_spec.rb
|
|
197
|
+
- spec/public/save_and_open_spec.rb
|
|
198
|
+
- spec/public/select_date_spec.rb
|
|
199
|
+
- spec/public/select_datetime_spec.rb
|
|
200
|
+
- spec/public/select_spec.rb
|
|
201
|
+
- spec/public/select_time_spec.rb
|
|
202
|
+
- spec/public/set_hidden_field_spec.rb
|
|
203
|
+
- spec/public/submit_form_spec.rb
|
|
204
|
+
- spec/public/visit_spec.rb
|
|
205
|
+
- spec/public/within_spec.rb
|
|
206
|
+
- spec/spec_helper.rb
|