kbaum-webrat 0.5.1 → 0.6.1.pre

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.
Files changed (45) hide show
  1. data/.gitignore +4 -1
  2. data/Gemfile +19 -0
  3. data/History.txt +11 -1
  4. data/Rakefile +25 -66
  5. data/Thorfile +117 -0
  6. data/lib/webrat/adapters/rails.rb +1 -16
  7. data/lib/webrat/core/elements/link.rb +1 -1
  8. data/lib/webrat/core/session.rb +1 -1
  9. data/lib/webrat/integrations/merb.rb +1 -1
  10. data/lib/webrat/integrations/rails.rb +16 -0
  11. data/lib/webrat/integrations/rspec-rails.rb +2 -1
  12. data/lib/webrat/integrations/selenium.rb +1 -1
  13. data/lib/webrat/rspec-rails.rb +1 -1
  14. data/lib/webrat/selenium/application_servers/external.rb +1 -1
  15. data/lib/webrat/selenium/application_servers.rb +1 -1
  16. data/lib/webrat/selenium/location_strategy_javascript/label.js +31 -13
  17. data/lib/webrat/selenium/location_strategy_javascript/webrat.js +1 -0
  18. data/lib/webrat/selenium/location_strategy_javascript/webratlink.js +24 -4
  19. data/lib/webrat/selenium/selenium_rc_server.rb +2 -2
  20. data/lib/webrat/selenium/selenium_session.rb +19 -2
  21. data/lib/webrat/selenium/silence_stream.rb +1 -1
  22. data/lib/webrat.rb +1 -1
  23. data/spec/integration/mechanize/spec/spec_helper.rb +3 -1
  24. data/spec/integration/rails/app/controllers/{application.rb → application_controller.rb} +0 -0
  25. data/spec/integration/rails/app/controllers/webrat_controller.rb +3 -0
  26. data/spec/integration/rails/app/views/buttons/show.html.erb +0 -2
  27. data/spec/integration/rails/app/views/webrat/buttons.html.erb +0 -2
  28. data/spec/integration/rails/app/views/webrat/within.html.erb +3 -0
  29. data/spec/integration/rails/config/environment.rb +1 -1
  30. data/spec/integration/rails/config/routes.rb +1 -0
  31. data/spec/integration/rails/test/integration/button_click_test.rb +12 -26
  32. data/spec/integration/rails/test/integration/fill_in_test.rb +1 -1
  33. data/spec/integration/rails/test/integration/link_click_test.rb +1 -1
  34. data/spec/integration/rails/test/integration/webrat_test.rb +35 -9
  35. data/spec/integration/rails/test/test_helper.rb +1 -0
  36. data/spec/private/core/field_spec.rb +9 -11
  37. data/spec/private/rails/rails_adapter_spec.rb +0 -24
  38. data/spec/public/basic_auth_spec.rb +13 -2
  39. data/spec/public/click_link_spec.rb +21 -0
  40. data/spec/public/fill_in_spec.rb +1 -1
  41. data/spec/public/matchers/have_selector_spec.rb +1 -1
  42. data/webrat.gemspec +307 -315
  43. metadata +13 -42
  44. data/VERSION +0 -1
  45. 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.5.1
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-04 00:00:00 -05:00
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
- - VERSION
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/application.rb
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
- - --charset=UTF-8
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: "0"
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/application.rb
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
@@ -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
-