kbaum-webrat 0.5.1 → 0.6.1.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -1
- data/Gemfile +19 -0
- data/History.txt +11 -1
- data/Rakefile +25 -66
- data/Thorfile +117 -0
- data/lib/webrat/adapters/rails.rb +1 -16
- data/lib/webrat/core/elements/link.rb +1 -1
- data/lib/webrat/core/session.rb +1 -1
- data/lib/webrat/integrations/merb.rb +1 -1
- data/lib/webrat/integrations/rails.rb +16 -0
- data/lib/webrat/integrations/rspec-rails.rb +2 -1
- data/lib/webrat/integrations/selenium.rb +1 -1
- data/lib/webrat/rspec-rails.rb +1 -1
- data/lib/webrat/selenium/application_servers/external.rb +1 -1
- data/lib/webrat/selenium/application_servers.rb +1 -1
- data/lib/webrat/selenium/location_strategy_javascript/label.js +31 -13
- data/lib/webrat/selenium/location_strategy_javascript/webrat.js +1 -0
- data/lib/webrat/selenium/location_strategy_javascript/webratlink.js +24 -4
- data/lib/webrat/selenium/selenium_rc_server.rb +2 -2
- data/lib/webrat/selenium/selenium_session.rb +19 -2
- data/lib/webrat/selenium/silence_stream.rb +1 -1
- data/lib/webrat.rb +1 -1
- data/spec/integration/mechanize/spec/spec_helper.rb +3 -1
- data/spec/integration/rails/app/controllers/{application.rb → application_controller.rb} +0 -0
- data/spec/integration/rails/app/controllers/webrat_controller.rb +3 -0
- data/spec/integration/rails/app/views/buttons/show.html.erb +0 -2
- data/spec/integration/rails/app/views/webrat/buttons.html.erb +0 -2
- data/spec/integration/rails/app/views/webrat/within.html.erb +3 -0
- data/spec/integration/rails/config/environment.rb +1 -1
- data/spec/integration/rails/config/routes.rb +1 -0
- data/spec/integration/rails/test/integration/button_click_test.rb +12 -26
- data/spec/integration/rails/test/integration/fill_in_test.rb +1 -1
- data/spec/integration/rails/test/integration/link_click_test.rb +1 -1
- data/spec/integration/rails/test/integration/webrat_test.rb +35 -9
- data/spec/integration/rails/test/test_helper.rb +1 -0
- data/spec/private/core/field_spec.rb +9 -11
- data/spec/private/rails/rails_adapter_spec.rb +0 -24
- data/spec/public/basic_auth_spec.rb +13 -2
- data/spec/public/click_link_spec.rb +21 -0
- data/spec/public/fill_in_spec.rb +1 -1
- data/spec/public/matchers/have_selector_spec.rb +1 -1
- data/webrat.gemspec +307 -315
- metadata +13 -42
- data/VERSION +0 -1
- data/selenium_rc_server.patch +0 -20
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kbaum-webrat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.1.pre
|
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-11-28 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -32,36 +32,6 @@ dependencies:
|
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: "1.0"
|
34
34
|
version:
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: rails
|
37
|
-
type: :development
|
38
|
-
version_requirement:
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
40
|
-
requirements:
|
41
|
-
- - ">="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: "2.3"
|
44
|
-
version:
|
45
|
-
- !ruby/object:Gem::Dependency
|
46
|
-
name: merb-core
|
47
|
-
type: :development
|
48
|
-
version_requirement:
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - ">="
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: "1.0"
|
54
|
-
version:
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: launchy
|
57
|
-
type: :development
|
58
|
-
version_requirement:
|
59
|
-
version_requirements: !ruby/object:Gem::Requirement
|
60
|
-
requirements:
|
61
|
-
- - ">="
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: "0"
|
64
|
-
version:
|
65
35
|
description: |-
|
66
36
|
Webrat lets you quickly write expressive and robust acceptance tests
|
67
37
|
for a Ruby web application. It supports simulating a browser inside
|
@@ -75,17 +45,18 @@ executables: []
|
|
75
45
|
extensions: []
|
76
46
|
|
77
47
|
extra_rdoc_files:
|
78
|
-
- History.txt
|
79
|
-
- MIT-LICENSE.txt
|
80
48
|
- README.rdoc
|
49
|
+
- MIT-LICENSE.txt
|
50
|
+
- History.txt
|
81
51
|
files:
|
82
52
|
- .document
|
83
53
|
- .gitignore
|
54
|
+
- Gemfile
|
84
55
|
- History.txt
|
85
56
|
- MIT-LICENSE.txt
|
86
57
|
- README.rdoc
|
87
58
|
- Rakefile
|
88
|
-
-
|
59
|
+
- Thorfile
|
89
60
|
- install.rb
|
90
61
|
- lib/webrat.rb
|
91
62
|
- lib/webrat/adapters/mechanize.rb
|
@@ -161,7 +132,6 @@ files:
|
|
161
132
|
- lib/webrat/selenium/selenium_rc_server.rb
|
162
133
|
- lib/webrat/selenium/selenium_session.rb
|
163
134
|
- lib/webrat/selenium/silence_stream.rb
|
164
|
-
- selenium_rc_server.patch
|
165
135
|
- spec/fakes/test_adapter.rb
|
166
136
|
- spec/integration/mechanize/Rakefile
|
167
137
|
- spec/integration/mechanize/config.ru
|
@@ -199,7 +169,7 @@ files:
|
|
199
169
|
- spec/integration/rack/test/webrat_rack_test.rb
|
200
170
|
- spec/integration/rails/.gitignore
|
201
171
|
- spec/integration/rails/Rakefile
|
202
|
-
- spec/integration/rails/app/controllers/
|
172
|
+
- spec/integration/rails/app/controllers/application_controller.rb
|
203
173
|
- spec/integration/rails/app/controllers/buttons_controller.rb
|
204
174
|
- spec/integration/rails/app/controllers/fields_controller.rb
|
205
175
|
- spec/integration/rails/app/controllers/links_controller.rb
|
@@ -213,6 +183,7 @@ files:
|
|
213
183
|
- spec/integration/rails/app/views/webrat/before_redirect_form.html.erb
|
214
184
|
- spec/integration/rails/app/views/webrat/buttons.html.erb
|
215
185
|
- spec/integration/rails/app/views/webrat/form.html.erb
|
186
|
+
- spec/integration/rails/app/views/webrat/within.html.erb
|
216
187
|
- spec/integration/rails/config/boot.rb
|
217
188
|
- spec/integration/rails/config/environment.rb
|
218
189
|
- spec/integration/rails/config/environments/development.rb
|
@@ -297,8 +268,8 @@ homepage: http://github.com/brynary/webrat
|
|
297
268
|
licenses: []
|
298
269
|
|
299
270
|
post_install_message:
|
300
|
-
rdoc_options:
|
301
|
-
|
271
|
+
rdoc_options: []
|
272
|
+
|
302
273
|
require_paths:
|
303
274
|
- lib
|
304
275
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -309,9 +280,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
309
280
|
version:
|
310
281
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
311
282
|
requirements:
|
312
|
-
- - "
|
283
|
+
- - ">"
|
313
284
|
- !ruby/object:Gem::Version
|
314
|
-
version:
|
285
|
+
version: 1.3.1
|
315
286
|
version:
|
316
287
|
requirements: []
|
317
288
|
|
@@ -344,7 +315,7 @@ test_files:
|
|
344
315
|
- spec/integration/rack/app.rb
|
345
316
|
- spec/integration/rack/test/helper.rb
|
346
317
|
- spec/integration/rack/test/webrat_rack_test.rb
|
347
|
-
- spec/integration/rails/app/controllers/
|
318
|
+
- spec/integration/rails/app/controllers/application_controller.rb
|
348
319
|
- spec/integration/rails/app/controllers/buttons_controller.rb
|
349
320
|
- spec/integration/rails/app/controllers/fields_controller.rb
|
350
321
|
- spec/integration/rails/app/controllers/links_controller.rb
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.5.1
|
data/selenium_rc_server.patch
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
--- old_selenium_rc_server.rb 2009-07-06 14:11:57.000000000 -0400
|
2
|
-
+++ selenium_rc_server.rb 2009-07-06 14:12:18.000000000 -0400
|
3
|
-
@@ -30,7 +30,7 @@
|
4
|
-
def remote_control
|
5
|
-
return @remote_control if @remote_control
|
6
|
-
|
7
|
-
- @remote_control = ::Selenium::RemoteControl::RemoteControl.new("0.0.0.0", Webrat.configuration.selenium_server_port, 5)
|
8
|
-
+ @remote_control = ::Selenium::RemoteControl::RemoteControl.new("0.0.0.0", Webrat.configuration.selenium_server_port, :timeout => 5)
|
9
|
-
@remote_control.jar_file = jar_path
|
10
|
-
|
11
|
-
return @remote_control
|
12
|
-
@@ -70,7 +70,7 @@
|
13
|
-
|
14
|
-
def stop
|
15
|
-
silence_stream(STDOUT) do
|
16
|
-
- ::Selenium::RemoteControl::RemoteControl.new("0.0.0.0", Webrat.configuration.selenium_server_port, 5).stop
|
17
|
-
+ ::Selenium::RemoteControl::RemoteControl.new("0.0.0.0", Webrat.configuration.selenium_server_port, :timeout => 5).stop
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|