honkster-webrat 0.6.0 → 0.6.0.9
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/.gitignore +4 -1
- data/Gemfile +19 -0
- data/History.txt +4 -1
- data/Rakefile +0 -44
- data/Thorfile +117 -0
- data/honkster-webrat.gemspec +348 -0
- data/lib/webrat/core/configuration.rb +4 -0
- data/lib/webrat/core/elements/link.rb +1 -1
- data/lib/webrat/core/locators/link_locator.rb +15 -2
- data/lib/webrat/core/session.rb +1 -1
- data/lib/webrat/integrations/rspec-rails.rb +2 -1
- data/lib/webrat/selenium/selenium_session.rb +8 -3
- data/lib/webrat.rb +1 -5
- 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/views/buttons/show.html.erb +0 -2
- data/spec/integration/rails/app/views/webrat/buttons.html.erb +0 -2
- data/spec/integration/rails/config/environment.rb +1 -1
- data/spec/integration/rails/test/integration/button_click_test.rb +11 -25
- data/spec/integration/rails/test/integration/webrat_test.rb +1 -0
- data/spec/integration/rails/test/test_helper.rb +1 -0
- data/spec/private/core/configuration_spec.rb +5 -0
- data/spec/private/core/field_spec.rb +9 -11
- data/spec/private/core/session_spec.rb +1 -0
- data/spec/public/basic_auth_spec.rb +13 -2
- data/spec/public/click_link_spec.rb +105 -56
- data/spec/public/save_and_open_spec.rb +1 -0
- data/spec/public/selenium/application_servers/external_spec.rb +3 -1
- data/spec/public/selenium/selenium_session_spec.rb +3 -3
- metadata +12 -41
- data/VERSION +0 -1
- data/webrat.gemspec +0 -360
@@ -132,6 +132,7 @@ module Webrat
|
|
132
132
|
selenium.wait_for_element locator, :timeout_in_seconds => 5
|
133
133
|
selenium.click locator
|
134
134
|
end
|
135
|
+
|
135
136
|
alias_method :uncheck, :check
|
136
137
|
|
137
138
|
webrat_deprecate :checks, :check
|
@@ -182,7 +183,7 @@ module Webrat
|
|
182
183
|
HTML of the page was:
|
183
184
|
|
184
185
|
#{selenium.get_html_source}"
|
185
|
-
EOS
|
186
|
+
EOS
|
186
187
|
end
|
187
188
|
|
188
189
|
raise Webrat::TimeoutError.new(error_message)
|
@@ -235,8 +236,12 @@ EOS
|
|
235
236
|
|
236
237
|
|
237
238
|
def create_browser
|
238
|
-
$browser = ::Selenium::Client::Driver.new(
|
239
|
-
|
239
|
+
$browser = ::Selenium::Client::Driver.new(
|
240
|
+
Webrat.configuration.selenium_server_address || "localhost",
|
241
|
+
Webrat.configuration.selenium_server_port,
|
242
|
+
Webrat.configuration.selenium_browser_key,
|
243
|
+
"http://#{Webrat.configuration.application_address}:#{Webrat.configuration.application_port}"),
|
244
|
+
Webrat.configuration.default_timeout_in_seconds || 10
|
240
245
|
$browser.set_speed(0) unless Webrat.configuration.selenium_server_address
|
241
246
|
|
242
247
|
at_exit do
|
data/lib/webrat.rb
CHANGED
@@ -2,11 +2,7 @@ require "rack"
|
|
2
2
|
require "nokogiri"
|
3
3
|
|
4
4
|
module Webrat
|
5
|
-
|
6
|
-
class WebratError < StandardError
|
7
|
-
end
|
8
|
-
|
9
|
-
VERSION = "0.6.rc1"
|
5
|
+
VERSION = "0.6.0.9"
|
10
6
|
|
11
7
|
autoload :MechanizeAdapter, "webrat/adapters/mechanize"
|
12
8
|
autoload :MerbAdapter, "webrat/adapters/merb"
|
File without changes
|
@@ -1,11 +1,9 @@
|
|
1
1
|
<h1 id='form_title' class='form title'>Webrat Buttons Form</h1>
|
2
2
|
|
3
3
|
<% form_tag "/buttons" do %>
|
4
|
-
<input type="button" id="input_button_id" value="input_button_value" />
|
5
4
|
<input type="submit" id="input_submit_id" value="input_submit_value" />
|
6
5
|
<input type="image" id="input_image_id" value="input_image_value" alt="input_image_alt" src="" />
|
7
6
|
|
8
|
-
<button type="button" id="button_button_id" value="button_button_value">button_button_text</button>
|
9
7
|
<button type="submit" id="button_submit_id" value="button_submit_value">button_submit_text</button>
|
10
8
|
<button type="image" id="button_image_id" value="button_image_value">button_image_text</button>
|
11
9
|
<% end %>
|
@@ -1,11 +1,9 @@
|
|
1
1
|
<h1 id='form_title' class='form title'>Webrat Buttons Form</h1>
|
2
2
|
|
3
3
|
<% form_tag submit_path do %>
|
4
|
-
<input type="button" id="input_button_id" value="input_button_value">
|
5
4
|
<input type="submit" id="input_submit_id" value="input_submit_value">
|
6
5
|
<input type="image" id="input_image_id" value="input_image_value" alt="input_image_alt" src="">
|
7
6
|
|
8
|
-
<button type="button" id="button_button_id" value="button_button_value">button_button_text</button>
|
9
7
|
<button type="submit" id="button_submit_id" value="button_submit_value">button_submit_text</button>
|
10
8
|
<button type="image" id="button_image_id" value="button_image_value">button_image_text</button>
|
11
9
|
<% end %>
|
@@ -1,80 +1,66 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
|
3
3
|
class ButtonClickTest < ActionController::IntegrationTest
|
4
|
-
# <button type="button" ...>
|
5
|
-
test "should click button with type button by id" do
|
6
|
-
visit buttons_path
|
7
|
-
click_button "button_button_id"
|
8
|
-
end
|
9
|
-
test "should click button with type button by value" do
|
10
|
-
visit buttons_path
|
11
|
-
click_button "button_button_value"
|
12
|
-
end
|
13
|
-
test "should click button with type button by html" do
|
14
|
-
visit buttons_path
|
15
|
-
click_button "button_button_text"
|
16
|
-
end
|
17
|
-
|
18
4
|
# <button type="submit" ...>
|
19
5
|
test "should click button with type submit by id" do
|
20
6
|
visit buttons_path
|
21
7
|
click_button "button_submit_id"
|
8
|
+
assert_contain "success"
|
22
9
|
end
|
23
10
|
test "should click button with type submit by value" do
|
24
11
|
visit buttons_path
|
25
12
|
click_button "button_submit_value"
|
13
|
+
assert_contain "success"
|
26
14
|
end
|
27
15
|
test "should click button with type submit by html" do
|
28
16
|
visit buttons_path
|
29
17
|
click_button "button_submit_text"
|
18
|
+
assert_contain "success"
|
30
19
|
end
|
31
20
|
|
32
21
|
# <button type="image" ...>
|
33
22
|
test "should click button with type image by id" do
|
34
23
|
visit buttons_path
|
35
24
|
click_button "button_image_id"
|
25
|
+
assert_contain "success"
|
36
26
|
end
|
37
27
|
test "should click button with type image by value" do
|
38
28
|
visit buttons_path
|
39
29
|
click_button "button_image_value"
|
30
|
+
assert_contain "success"
|
40
31
|
end
|
41
32
|
test "should click button with type image by html" do
|
42
33
|
visit buttons_path
|
43
34
|
click_button "button_image_text"
|
44
|
-
|
45
|
-
|
46
|
-
# <input type="button" ...>
|
47
|
-
test "should click image with type button by id" do
|
48
|
-
visit buttons_path
|
49
|
-
click_button "input_button_id"
|
50
|
-
end
|
51
|
-
test "should click input with type button by value" do
|
52
|
-
visit buttons_path
|
53
|
-
click_button "input_button_value"
|
35
|
+
assert_contain "success"
|
54
36
|
end
|
55
37
|
|
56
38
|
# <input type="submit" ...>
|
57
39
|
test "should click input with type submit by id" do
|
58
40
|
visit buttons_path
|
59
41
|
click_button "input_submit_id"
|
42
|
+
assert_contain "success"
|
60
43
|
end
|
61
44
|
test "should click input with type submit by value" do
|
62
45
|
visit buttons_path
|
63
46
|
click_button "input_submit_value"
|
47
|
+
assert_contain "success"
|
64
48
|
end
|
65
49
|
|
66
50
|
# <input type="image" ...>
|
67
51
|
test "should click input with type image by id" do
|
68
52
|
visit buttons_path
|
69
53
|
click_button "input_image_id"
|
54
|
+
assert_contain "success"
|
70
55
|
end
|
71
56
|
test "should click input with type image by value" do
|
72
57
|
visit buttons_path
|
73
58
|
click_button "input_image_value"
|
59
|
+
assert_contain "success"
|
74
60
|
end
|
75
61
|
test "should click input with type image by alt" do
|
76
62
|
visit buttons_path
|
77
63
|
click_button "input_image_alt"
|
64
|
+
assert_contain "success"
|
78
65
|
end
|
79
|
-
|
80
66
|
end
|
@@ -22,6 +22,11 @@ describe Webrat::Configuration do
|
|
22
22
|
config.infinite_redirect_limit.should == 10
|
23
23
|
end
|
24
24
|
|
25
|
+
it "should timeout after 10 seconds by default" do
|
26
|
+
config = Webrat::Configuration.new
|
27
|
+
config.default_timeout_in_seconds.should == 10
|
28
|
+
end
|
29
|
+
|
25
30
|
it "should be configurable with a block" do
|
26
31
|
Webrat.configure do |config|
|
27
32
|
config.open_error_files = false
|
@@ -2,18 +2,16 @@ require File.expand_path(File.dirname(__FILE__) + "/../../spec_helper")
|
|
2
2
|
|
3
3
|
module Webrat
|
4
4
|
describe Field do
|
5
|
-
|
6
|
-
|
7
|
-
html
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
HTML
|
5
|
+
it "should have nice inspect output" do
|
6
|
+
html = <<-HTML
|
7
|
+
<html>
|
8
|
+
<input type='checkbox' checked='checked' />
|
9
|
+
</html>
|
10
|
+
HTML
|
12
11
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
end
|
12
|
+
element = Webrat::XML.document(html).css("input").first
|
13
|
+
checkbox = CheckboxField.new(nil, element)
|
14
|
+
checkbox.inspect.should =~ /^#<Webrat::CheckboxField @element=/
|
17
15
|
end
|
18
16
|
end
|
19
17
|
|
@@ -23,6 +23,7 @@ describe Webrat::Session do
|
|
23
23
|
|
24
24
|
it "should provide a current_page for backwards compatibility" do
|
25
25
|
session = Webrat::Session.new
|
26
|
+
session.stub!(:warn)
|
26
27
|
current_page = session.current_page
|
27
28
|
current_page.should_not be_nil
|
28
29
|
current_page.should respond_to(:url)
|
@@ -6,7 +6,7 @@ describe "Basic Auth HTTP headers" do
|
|
6
6
|
end
|
7
7
|
|
8
8
|
it "should be present in visit" do
|
9
|
-
webrat_session.should_receive(:get).with("/", {}, {'HTTP_AUTHORIZATION' => "Basic dXNlcjpzZWNyZXQ
|
9
|
+
webrat_session.should_receive(:get).with("/", {}, {'HTTP_AUTHORIZATION' => "Basic dXNlcjpzZWNyZXQ="})
|
10
10
|
visit("/")
|
11
11
|
end
|
12
12
|
|
@@ -18,7 +18,18 @@ describe "Basic Auth HTTP headers" do
|
|
18
18
|
</form>
|
19
19
|
</html>
|
20
20
|
HTML
|
21
|
-
webrat_session.should_receive(:post).with("/form1", {}, {'HTTP_AUTHORIZATION' => "Basic dXNlcjpzZWNyZXQ
|
21
|
+
webrat_session.should_receive(:post).with("/form1", {}, {'HTTP_AUTHORIZATION' => "Basic dXNlcjpzZWNyZXQ="})
|
22
22
|
click_button
|
23
23
|
end
|
24
|
+
|
25
|
+
context "with long username and password combination" do
|
26
|
+
before do
|
27
|
+
basic_auth('user', 'secret1234567890123456789012345678901234567890123456789012345678901234567890')
|
28
|
+
end
|
29
|
+
|
30
|
+
it "should be present, without new lines, in visit" do
|
31
|
+
webrat_session.should_receive(:get).with("/", {}, {'HTTP_AUTHORIZATION' => "Basic dXNlcjpzZWNyZXQxMjM0NTY3ODkwMTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkw"})
|
32
|
+
visit("/")
|
33
|
+
end
|
34
|
+
end
|
24
35
|
end
|
@@ -144,6 +144,27 @@ describe "click_link" do
|
|
144
144
|
click_link "Posts"
|
145
145
|
end
|
146
146
|
|
147
|
+
it "should click rails 2.3.4 javascript links with authenticity tokens" do
|
148
|
+
with_html <<-HTML
|
149
|
+
<html>
|
150
|
+
<a href="/posts" onclick="var f = document.createElement('form');
|
151
|
+
f.style.display = 'none';
|
152
|
+
this.parentNode.appendChild(f);
|
153
|
+
f.method = 'POST';
|
154
|
+
f.action = this.href;
|
155
|
+
var s = document.createElement('input');
|
156
|
+
s.setAttribute('type', 'hidden');
|
157
|
+
s.setAttribute('name', 'authenticity_token');
|
158
|
+
s.setAttribute('value', 'aa79cb354597a60a3786e7e291ed4f74d77d3a62=/$a');
|
159
|
+
f.appendChild(s);
|
160
|
+
f.submit();
|
161
|
+
return false;">Posts</a>
|
162
|
+
</html>
|
163
|
+
HTML
|
164
|
+
webrat_session.should_receive(:post).with("/posts", "authenticity_token" => "aa79cb354597a60a3786e7e291ed4f74d77d3a62=/$a")
|
165
|
+
click_link "Posts"
|
166
|
+
end
|
167
|
+
|
147
168
|
it "should click rails javascript delete links" do
|
148
169
|
with_html <<-HTML
|
149
170
|
<html>
|
@@ -284,7 +305,7 @@ describe "click_link" do
|
|
284
305
|
end
|
285
306
|
end
|
286
307
|
|
287
|
-
it "should fail
|
308
|
+
it "should fail if the link doesn't exist" do
|
288
309
|
with_html <<-HTML
|
289
310
|
<html>
|
290
311
|
<a href="/page">Link text</a>
|
@@ -361,17 +382,15 @@ describe "click_link" do
|
|
361
382
|
end
|
362
383
|
|
363
384
|
it "should not match on non-text contents" do
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
HTML
|
385
|
+
with_html <<-HTML
|
386
|
+
<html>
|
387
|
+
<a href="/page1"><span class="location">My house</span></a>
|
388
|
+
<a href="/page2">Location</a>
|
389
|
+
</html>
|
390
|
+
HTML
|
371
391
|
|
372
|
-
|
373
|
-
|
374
|
-
end
|
392
|
+
webrat_session.should_receive(:get).with("/page2", {})
|
393
|
+
click_link "Location"
|
375
394
|
end
|
376
395
|
|
377
396
|
it "should click link within a selector" do
|
@@ -442,70 +461,100 @@ describe "click_link" do
|
|
442
461
|
click_link "Jump to foo bar"
|
443
462
|
end
|
444
463
|
|
445
|
-
it "should
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
464
|
+
it "should match on regexp" do
|
465
|
+
with_html <<-HTML
|
466
|
+
<html>
|
467
|
+
<a href="/page">Link Text</a>
|
468
|
+
</html>
|
469
|
+
HTML
|
470
|
+
webrat_session.should_receive(:get).with("/page", {})
|
471
|
+
click_link /link/i
|
450
472
|
end
|
451
473
|
|
452
|
-
it "should
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
474
|
+
it "should match on link_text" do
|
475
|
+
with_html <<-HTML
|
476
|
+
<html>
|
477
|
+
<a href="/page">Link Text</a>
|
478
|
+
</html>
|
479
|
+
HTML
|
480
|
+
webrat_session.should_receive(:get).with("/page", {})
|
481
|
+
click_link "Link Text"
|
457
482
|
end
|
458
483
|
|
459
|
-
it "should
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
484
|
+
it "should match on substring" do
|
485
|
+
with_html <<-HTML
|
486
|
+
<html>
|
487
|
+
<a href="/page">Link Text</a>
|
488
|
+
</html>
|
489
|
+
HTML
|
490
|
+
webrat_session.should_receive(:get).with("/page", {})
|
491
|
+
click_link "nk Te"
|
464
492
|
end
|
465
493
|
|
466
|
-
it "should not
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
494
|
+
it "should not match on link_text case insensitive" do
|
495
|
+
with_html <<-HTML
|
496
|
+
<html>
|
497
|
+
<a href="/page">Link Text</a>
|
498
|
+
</html>
|
499
|
+
HTML
|
500
|
+
lambda do
|
501
|
+
click_link "link_text"
|
502
|
+
end.should raise_error(Webrat::NotFoundError)
|
473
503
|
end
|
474
504
|
|
475
505
|
it "should match text not include " do
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
506
|
+
with_html <<-HTML
|
507
|
+
<html>
|
508
|
+
<a href="/page">LinkText</a>
|
509
|
+
</html>
|
510
|
+
HTML
|
511
|
+
webrat_session.should_receive(:get).with("/page", {})
|
512
|
+
click_link "LinkText"
|
480
513
|
end
|
481
514
|
|
482
|
-
it "should not
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
515
|
+
it "should not match on wrong text" do
|
516
|
+
with_html <<-HTML
|
517
|
+
<html>
|
518
|
+
<a href="/page">Some Other Link</a>
|
519
|
+
</html>
|
520
|
+
HTML
|
521
|
+
lambda do
|
522
|
+
click_link "Link Text"
|
523
|
+
end.should raise_error(Webrat::NotFoundError)
|
490
524
|
end
|
491
525
|
|
492
526
|
it "should match text including character reference" do
|
493
|
-
|
494
|
-
no_ko_gi_ri = [0x30CE,0x30B3,0x30AE,0x30EA]
|
527
|
+
no_ko_gi_ri = [0x30CE, 0x30B3, 0x30AE, 0x30EA]
|
495
528
|
nokogiri_ja_kana = no_ko_gi_ri.pack("U*")
|
496
529
|
nokogiri_char_ref = no_ko_gi_ri.map{|c| "&#x%X;" % c }.join("")
|
497
530
|
|
498
|
-
|
499
|
-
|
500
|
-
|
531
|
+
with_html <<-HTML
|
532
|
+
<html>
|
533
|
+
<a href="/page">#{nokogiri_char_ref}</a>
|
534
|
+
</html>
|
535
|
+
HTML
|
536
|
+
webrat_session.should_receive(:get).with("/page", {})
|
537
|
+
click_link nokogiri_ja_kana
|
538
|
+
end
|
539
|
+
|
540
|
+
it "should match img link by src" do
|
541
|
+
with_html <<-HTML
|
542
|
+
<html>
|
543
|
+
<a href="/page"><img src="logo.png" /></a>
|
544
|
+
</html>
|
545
|
+
HTML
|
546
|
+
webrat_session.should_receive(:get).with("/page", {})
|
547
|
+
click_link "logo.png"
|
501
548
|
end
|
502
549
|
|
503
|
-
it "should match img link" do
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
550
|
+
it "should match img link by title" do
|
551
|
+
with_html <<-HTML
|
552
|
+
<html>
|
553
|
+
<a href="/foo"><img src="foo.jpg" title="My image" /></a>
|
554
|
+
</html>
|
555
|
+
HTML
|
556
|
+
webrat_session.should_receive(:get).with("/foo", {})
|
557
|
+
click_link "My image"
|
509
558
|
end
|
510
559
|
|
511
560
|
end
|
@@ -6,7 +6,9 @@ require "webrat/selenium/application_servers/external"
|
|
6
6
|
describe Webrat::Selenium::ApplicationServers::External do
|
7
7
|
|
8
8
|
it "should just boot up with no exceptions" do
|
9
|
-
Webrat::Selenium::ApplicationServers::External.new
|
9
|
+
server = Webrat::Selenium::ApplicationServers::External.new
|
10
|
+
server.stub!(:warn)
|
11
|
+
server.boot
|
10
12
|
end
|
11
13
|
|
12
14
|
end
|
@@ -10,7 +10,7 @@ describe Webrat::SeleniumSession do
|
|
10
10
|
@selenium = Webrat::SeleniumSession.new()
|
11
11
|
end
|
12
12
|
|
13
|
-
it "should throw
|
13
|
+
it "should throw TimeoutError instead of Spec::Expectations::ExpectationNotMetError" do
|
14
14
|
lambda {
|
15
15
|
@selenium.wait_for(:timeout => 0.0001) do
|
16
16
|
raise ::Spec::Expectations::ExpectationNotMetError
|
@@ -18,7 +18,7 @@ describe Webrat::SeleniumSession do
|
|
18
18
|
}.should raise_error(Webrat::TimeoutError)
|
19
19
|
end
|
20
20
|
|
21
|
-
it "should throw
|
21
|
+
it "should throw TimeoutError instead of Selenium::CommandError" do
|
22
22
|
lambda {
|
23
23
|
@selenium.wait_for(:timeout => 0.0001) do
|
24
24
|
raise ::Selenium::CommandError
|
@@ -26,7 +26,7 @@ describe Webrat::SeleniumSession do
|
|
26
26
|
}.should raise_error(Webrat::TimeoutError)
|
27
27
|
end
|
28
28
|
|
29
|
-
it "should throw
|
29
|
+
it "should throw TimeoutError instead of WebratError" do
|
30
30
|
lambda {
|
31
31
|
@selenium.wait_for(:timeout => 0.0001) do
|
32
32
|
raise Webrat::WebratError.new
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: honkster-webrat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.0
|
4
|
+
version: 0.6.0.9
|
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-12-21 00:00:00 -08: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,19 @@ 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
|
60
|
+
- honkster-webrat.gemspec
|
89
61
|
- install.rb
|
90
62
|
- lib/webrat.rb
|
91
63
|
- lib/webrat/adapters/mechanize.rb
|
@@ -198,7 +170,7 @@ files:
|
|
198
170
|
- spec/integration/rack/test/webrat_rack_test.rb
|
199
171
|
- spec/integration/rails/.gitignore
|
200
172
|
- spec/integration/rails/Rakefile
|
201
|
-
- spec/integration/rails/app/controllers/
|
173
|
+
- spec/integration/rails/app/controllers/application_controller.rb
|
202
174
|
- spec/integration/rails/app/controllers/buttons_controller.rb
|
203
175
|
- spec/integration/rails/app/controllers/fields_controller.rb
|
204
176
|
- spec/integration/rails/app/controllers/links_controller.rb
|
@@ -291,14 +263,13 @@ files:
|
|
291
263
|
- spec/spec.opts
|
292
264
|
- spec/spec_helper.rb
|
293
265
|
- vendor/selenium-server.jar
|
294
|
-
- webrat.gemspec
|
295
266
|
has_rdoc: true
|
296
267
|
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
|
@@ -315,7 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
315
286
|
version:
|
316
287
|
requirements: []
|
317
288
|
|
318
|
-
rubyforge_project:
|
289
|
+
rubyforge_project: webrat
|
319
290
|
rubygems_version: 1.3.5
|
320
291
|
signing_key:
|
321
292
|
specification_version: 3
|
@@ -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.6.0
|