emipair-webrat 0.0.1 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +4 -0
- data/.gitignore +15 -0
- data/History.txt +34 -1
- data/Rakefile +45 -78
- data/VERSION +1 -0
- data/emipair-webrat.gemspec +354 -0
- data/lib/webrat.rb +3 -24
- data/lib/webrat/core/configuration.rb +5 -1
- data/lib/webrat/core/elements/field.rb +3 -3
- data/lib/webrat/core/logging.rb +3 -4
- data/lib/webrat/core/methods.rb +4 -4
- data/lib/webrat/core/mime.rb +11 -22
- data/lib/webrat/core/session.rb +27 -12
- data/lib/webrat/mechanize.rb +5 -1
- data/lib/webrat/{merb_session.rb → merb_adapter.rb} +4 -2
- data/lib/webrat/rack.rb +15 -14
- data/lib/webrat/rails.rb +7 -10
- data/lib/webrat/selenium.rb +0 -1
- data/lib/webrat/selenium/selenium_session.rb +8 -8
- data/lib/webrat/sinatra.rb +3 -36
- data/spec/fakes/{test_session.rb → test_adapter.rb} +6 -3
- data/spec/integration/mechanize/Rakefile +7 -0
- data/spec/integration/mechanize/config.ru +2 -0
- data/spec/integration/mechanize/sample_app.rb +20 -0
- data/spec/integration/mechanize/spec/mechanize_spec.rb +22 -0
- data/spec/integration/mechanize/spec/spec_helper.rb +27 -0
- data/spec/integration/merb/.gitignore +21 -0
- data/spec/integration/merb/Rakefile +35 -0
- data/spec/integration/merb/app/views/exceptions/not_acceptable.html.erb +63 -0
- data/spec/integration/merb/app/views/exceptions/not_found.html.erb +47 -0
- data/spec/integration/merb/app/views/layout/application.html.erb +12 -0
- data/spec/integration/merb/app/views/testing/show_form.html.erb +27 -0
- data/spec/integration/merb/app/views/testing/upload.html.erb +9 -0
- data/spec/integration/merb/spec/spec.opts +1 -0
- data/spec/integration/merb/spec/spec_helper.rb +2 -0
- data/spec/integration/merb/tasks/merb.thor/main.thor +150 -0
- data/spec/integration/rack/Rakefile +5 -0
- data/spec/integration/rack/app.rb +89 -0
- data/spec/integration/rack/test/helper.rb +21 -0
- data/spec/integration/rack/test/webrat_rack_test.rb +58 -52
- data/spec/integration/rails/.gitignore +3 -0
- data/spec/integration/rails/Rakefile +30 -0
- data/spec/integration/rails/app/views/buttons/show.html.erb +11 -0
- data/spec/integration/rails/app/views/fields/show.html.erb +9 -0
- data/spec/integration/rails/app/views/links/show.html.erb +5 -0
- data/spec/integration/rails/app/views/webrat/before_redirect_form.html.erb +4 -0
- data/spec/integration/rails/app/views/webrat/buttons.html.erb +11 -0
- data/spec/integration/rails/app/views/webrat/form.html.erb +28 -0
- data/spec/integration/rails/config/locales/en.yml +5 -0
- data/spec/integration/rails/public/404.html +30 -0
- data/spec/integration/rails/public/422.html +30 -0
- data/spec/integration/rails/public/500.html +33 -0
- data/spec/integration/rails/script/about +4 -0
- data/spec/integration/rails/script/console +3 -0
- data/spec/integration/rails/script/dbconsole +3 -0
- data/spec/integration/rails/script/destroy +3 -0
- data/spec/integration/rails/script/generate +3 -0
- data/spec/integration/rails/script/performance/benchmarker +3 -0
- data/spec/integration/rails/script/performance/profiler +3 -0
- data/spec/integration/rails/script/performance/request +3 -0
- data/spec/integration/rails/script/plugin +3 -0
- data/spec/integration/rails/script/process/inspector +3 -0
- data/spec/integration/rails/script/process/reaper +3 -0
- data/spec/integration/rails/script/process/spawner +3 -0
- data/spec/integration/rails/script/runner +3 -0
- data/spec/integration/rails/script/server +3 -0
- data/spec/integration/rails/test/test_helper.rb +2 -1
- data/spec/integration/sinatra/Rakefile +5 -0
- data/spec/integration/sinatra/test/test_helper.rb +2 -1
- data/spec/private/core/configuration_spec.rb +11 -2
- data/spec/private/core/field_spec.rb +1 -1
- data/spec/private/core/link_spec.rb +1 -1
- data/spec/private/core/session_spec.rb +5 -0
- data/spec/private/mechanize/{mechanize_session_spec.rb → mechanize_adapter_spec.rb} +4 -10
- data/spec/private/merb/{merb_session_spec.rb → merb_adapter_spec.rb} +5 -5
- data/spec/private/rails/{rails_session_spec.rb → rails_adapter_spec.rb} +17 -14
- data/spec/public/matchers/contain_spec.rb +4 -4
- data/spec/public/matchers/have_selector_spec.rb +2 -2
- data/spec/public/matchers/have_xpath_spec.rb +2 -2
- data/spec/rcov.opts +1 -0
- data/spec/spec.opts +2 -0
- data/spec/spec_helper.rb +3 -1
- metadata +172 -19
- data/lib/webrat/rack_test.rb +0 -32
- data/spec/integration/rack/rack_app.rb +0 -16
- data/spec/integration/rack/test/test_helper.rb +0 -20
- data/spec/private/core/logging_spec.rb +0 -10
@@ -7,7 +7,8 @@ require 'test_help'
|
|
7
7
|
# rescue MissingSourceFile
|
8
8
|
# end
|
9
9
|
|
10
|
-
|
10
|
+
$LOAD_PATH.unshift File.dirname(__FILE__) + "/../../../../lib"
|
11
|
+
require "webrat"
|
11
12
|
|
12
13
|
Webrat.configure do |config|
|
13
14
|
config.mode = ENV['WEBRAT_INTEGRATION_MODE'].to_sym
|
@@ -2,7 +2,8 @@ require "rubygems"
|
|
2
2
|
require "test/unit"
|
3
3
|
# require "redgreen"
|
4
4
|
|
5
|
-
|
5
|
+
$LOAD_PATH.unshift File.dirname(__FILE__) + "/../../../../lib"
|
6
|
+
require "webrat"
|
6
7
|
|
7
8
|
Webrat.configure do |config|
|
8
9
|
config.mode = :sinatra
|
@@ -68,9 +68,9 @@ describe Webrat::Configuration do
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
it "should require
|
71
|
+
it "should require merb_adapter when in merb mode" do
|
72
72
|
config = Webrat::Configuration.new
|
73
|
-
config.should_receive(:require).with("webrat/
|
73
|
+
config.should_receive(:require).with("webrat/merb_adapter")
|
74
74
|
config.mode = :merb
|
75
75
|
end
|
76
76
|
|
@@ -111,6 +111,15 @@ describe Webrat::Configuration do
|
|
111
111
|
@config.selenium_browser_startup_timeout = 10
|
112
112
|
@config.selenium_browser_startup_timeout.should == 10
|
113
113
|
end
|
114
|
+
|
115
|
+
it 'should default selenium timeout to 5 seconds' do
|
116
|
+
@config.selenium_timeout.should == 5
|
117
|
+
end
|
118
|
+
|
119
|
+
it 'should allow overriding of the selenium timeout' do
|
120
|
+
@config.selenium_timeout = 10
|
121
|
+
@config.selenium_timeout.should == 10
|
122
|
+
end
|
114
123
|
end
|
115
124
|
|
116
125
|
end
|
@@ -62,6 +62,11 @@ describe Webrat::Session do
|
|
62
62
|
it "should raise an error if a symbol Mime type is passed that does not exist" do
|
63
63
|
lambda { webrat_session.http_accept(:oogabooga) }.should raise_error(ArgumentError)
|
64
64
|
end
|
65
|
+
|
66
|
+
it "should recognize a couple of webrat-specific formats" do
|
67
|
+
webrat_session.http_accept(:multipart_form).should == "multipart/form-data"
|
68
|
+
webrat_session.http_accept(:url_encoded_form).should == "application/x-www-form-urlencoded"
|
69
|
+
end
|
65
70
|
end
|
66
71
|
|
67
72
|
describe "#request_page" do
|
@@ -2,19 +2,13 @@ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
|
|
2
2
|
|
3
3
|
require "webrat/mechanize"
|
4
4
|
|
5
|
-
describe Webrat::
|
5
|
+
describe Webrat::MechanizeAdapter do
|
6
6
|
before :each do
|
7
7
|
Webrat.configuration.mode = :mechanize
|
8
8
|
end
|
9
9
|
|
10
10
|
before(:each) do
|
11
|
-
@mech = Webrat::
|
12
|
-
end
|
13
|
-
|
14
|
-
describe "headers method" do
|
15
|
-
it "should return empty headers for a newly initialized session" do
|
16
|
-
@mech.headers.should == {}
|
17
|
-
end
|
11
|
+
@mech = Webrat::MechanizeAdapter.new
|
18
12
|
end
|
19
13
|
|
20
14
|
describe "post" do
|
@@ -34,13 +28,13 @@ describe Webrat::MechanizeSession do
|
|
34
28
|
mechanize = mock(:mechanize)
|
35
29
|
WWW::Mechanize.stub!(:new => mechanize)
|
36
30
|
mechanize.should_receive(:post).with(url, flattened_data)
|
37
|
-
Webrat::
|
31
|
+
Webrat::MechanizeAdapter.new.post(url, data)
|
38
32
|
end
|
39
33
|
end
|
40
34
|
|
41
35
|
describe "#absolute_url" do
|
42
36
|
before(:each) do
|
43
|
-
@session = Webrat::
|
37
|
+
@session = Webrat::MechanizeAdapter.new
|
44
38
|
@session.stub!(:current_url).and_return(absolute_url)
|
45
39
|
end
|
46
40
|
|
@@ -2,9 +2,9 @@ require File.expand_path(File.dirname(__FILE__) + "/../../spec_helper")
|
|
2
2
|
|
3
3
|
require "webrat/merb"
|
4
4
|
|
5
|
-
describe Webrat::
|
5
|
+
describe Webrat::MerbAdapter do
|
6
6
|
it "should not pass empty params if data is and empty hash" do
|
7
|
-
session = Webrat::
|
7
|
+
session = Webrat::MerbAdapter.new
|
8
8
|
response = OpenStruct.new
|
9
9
|
response.status = 200
|
10
10
|
session.should_receive(:request).with('url', {:params=> nil, :method=>"GET", :headers=>nil}).and_return(response)
|
@@ -13,7 +13,7 @@ describe Webrat::MerbSession do
|
|
13
13
|
|
14
14
|
%w{post put delete}.each do |request_method|
|
15
15
|
it "should call do request with method #{request_method.upcase} for a #{request_method} call" do
|
16
|
-
session = Webrat::
|
16
|
+
session = Webrat::MerbAdapter.new
|
17
17
|
response = OpenStruct.new
|
18
18
|
response.status = 200
|
19
19
|
|
@@ -24,7 +24,7 @@ describe Webrat::MerbSession do
|
|
24
24
|
|
25
25
|
%w{post put}.each do |request_method|
|
26
26
|
it "should call do request with method #{request_method.upcase} with a file attachment" do
|
27
|
-
session = Webrat::
|
27
|
+
session = Webrat::MerbAdapter.new
|
28
28
|
response = OpenStruct.new
|
29
29
|
response.status = 200
|
30
30
|
|
@@ -43,7 +43,7 @@ describe Webrat::MerbSession do
|
|
43
43
|
|
44
44
|
context "a session with a response" do
|
45
45
|
before do
|
46
|
-
@session = Webrat::
|
46
|
+
@session = Webrat::MerbAdapter.new
|
47
47
|
@response = OpenStruct.new
|
48
48
|
@response.status = 200
|
49
49
|
@response.body = 'test response'
|
@@ -1,8 +1,9 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
|
2
2
|
|
3
|
+
require "action_controller"
|
3
4
|
require "webrat/rails"
|
4
5
|
|
5
|
-
describe Webrat::
|
6
|
+
describe Webrat::RailsAdapter do
|
6
7
|
before :each do
|
7
8
|
Webrat.configuration.mode = :rails
|
8
9
|
@integration_session = mock("integration_session")
|
@@ -10,35 +11,35 @@ describe Webrat::RailsSession do
|
|
10
11
|
|
11
12
|
it "should delegate response_body to the session response body" do
|
12
13
|
@integration_session.stub!(:response => mock("response", :body => "<html>"))
|
13
|
-
Webrat::
|
14
|
+
Webrat::RailsAdapter.new(@integration_session).response_body.should == "<html>"
|
14
15
|
end
|
15
16
|
|
16
17
|
it "should delegate response_code to the session response code" do
|
17
18
|
@integration_session.stub!(:response => mock("response", :code => "42"))
|
18
|
-
Webrat::
|
19
|
+
Webrat::RailsAdapter.new(@integration_session).response_code.should == 42
|
19
20
|
end
|
20
21
|
|
21
22
|
it "should delegate get to the integration session" do
|
22
23
|
@integration_session.should_receive(:get).with("url", "data", "headers")
|
23
|
-
rails_session = Webrat::
|
24
|
+
rails_session = Webrat::RailsAdapter.new(@integration_session)
|
24
25
|
rails_session.get("url", "data", "headers")
|
25
26
|
end
|
26
27
|
|
27
28
|
it "should delegate post to the integration session" do
|
28
29
|
@integration_session.should_receive(:post).with("url", "data", "headers")
|
29
|
-
rails_session = Webrat::
|
30
|
+
rails_session = Webrat::RailsAdapter.new(@integration_session)
|
30
31
|
rails_session.post("url", "data", "headers")
|
31
32
|
end
|
32
33
|
|
33
34
|
it "should delegate put to the integration session" do
|
34
35
|
@integration_session.should_receive(:put).with("url", "data", "headers")
|
35
|
-
rails_session = Webrat::
|
36
|
+
rails_session = Webrat::RailsAdapter.new(@integration_session)
|
36
37
|
rails_session.put("url", "data", "headers")
|
37
38
|
end
|
38
39
|
|
39
40
|
it "should delegate delete to the integration session" do
|
40
41
|
@integration_session.should_receive(:delete).with("url", "data", "headers")
|
41
|
-
rails_session = Webrat::
|
42
|
+
rails_session = Webrat::RailsAdapter.new(@integration_session)
|
42
43
|
rails_session.delete("url", "data", "headers")
|
43
44
|
end
|
44
45
|
|
@@ -46,7 +47,7 @@ describe Webrat::RailsSession do
|
|
46
47
|
it "should pass the full url" do
|
47
48
|
@integration_session.stub!(:https!)
|
48
49
|
@integration_session.should_receive(:get).with("http://www.example.com/url", "data", "headers")
|
49
|
-
rails_session = Webrat::
|
50
|
+
rails_session = Webrat::RailsAdapter.new(@integration_session)
|
50
51
|
rails_session.get("http://www.example.com/url", "data", "headers")
|
51
52
|
end
|
52
53
|
end
|
@@ -55,7 +56,7 @@ describe Webrat::RailsSession do
|
|
55
56
|
it "should call #https! with true before the request before passing along the full url" do
|
56
57
|
@integration_session.should_receive(:https!).with(true)
|
57
58
|
@integration_session.should_receive(:get).with("https://www.example.com/url", "data", "headers")
|
58
|
-
rails_session = Webrat::
|
59
|
+
rails_session = Webrat::RailsAdapter.new(@integration_session)
|
59
60
|
rails_session.get("https://www.example.com/url", "data", "headers")
|
60
61
|
end
|
61
62
|
end
|
@@ -64,7 +65,7 @@ describe Webrat::RailsSession do
|
|
64
65
|
it "should call #https! with true before the request" do
|
65
66
|
@integration_session.stub!(:get)
|
66
67
|
@integration_session.should_receive(:https!).with(false)
|
67
|
-
rails_session = Webrat::
|
68
|
+
rails_session = Webrat::RailsAdapter.new(@integration_session)
|
68
69
|
rails_session.get("http://www.example.com/url", "data", "headers")
|
69
70
|
end
|
70
71
|
end
|
@@ -73,20 +74,22 @@ describe Webrat::RailsSession do
|
|
73
74
|
it "should strip out the anchor" do
|
74
75
|
@integration_session.should_receive(:https!).with(false)
|
75
76
|
@integration_session.should_receive(:get).with("http://www.example.com/url", "data", "headers")
|
76
|
-
rails_session = Webrat::
|
77
|
+
rails_session = Webrat::RailsAdapter.new(@integration_session)
|
77
78
|
rails_session.get("http://www.example.com/url#foo", "data", "headers")
|
78
79
|
end
|
79
80
|
end
|
80
81
|
|
81
82
|
it "should provide a saved_page_dir" do
|
82
|
-
Webrat::
|
83
|
+
Webrat::RailsAdapter.new(mock("integration session")).should respond_to(:saved_page_dir)
|
83
84
|
end
|
84
85
|
|
85
86
|
it "should provide a doc_root" do
|
86
|
-
Webrat::
|
87
|
+
Webrat::RailsAdapter.new(mock("integration session")).should respond_to(:doc_root)
|
87
88
|
end
|
88
89
|
|
89
90
|
it "should accept an ActiveRecord argument to #within and translate to a selector using dom_id" do
|
91
|
+
pending "Move this to spec/public/within_spec.rb"
|
92
|
+
|
90
93
|
body = <<-HTML
|
91
94
|
<a href="/page1">Edit</a>
|
92
95
|
<div id="new_object">
|
@@ -98,7 +101,7 @@ describe Webrat::RailsSession do
|
|
98
101
|
@integration_session.stub!(:response => response)
|
99
102
|
@integration_session.should_receive(:get).with("/page2", {}, nil)
|
100
103
|
|
101
|
-
rails_session = Webrat::
|
104
|
+
rails_session = Webrat::RailsAdapter.new(@integration_session)
|
102
105
|
|
103
106
|
object = Object.new
|
104
107
|
object.stub!(:id => nil)
|
@@ -56,13 +56,13 @@ describe "contain" do
|
|
56
56
|
it "should throw an exception when the body doesnt contain the text" do
|
57
57
|
lambda {
|
58
58
|
assert_contain("monkeys")
|
59
|
-
}.should raise_error(
|
59
|
+
}.should raise_error(AssertionFailedError)
|
60
60
|
end
|
61
61
|
|
62
62
|
it "should throw an exception when the body doesnt contain the regexp" do
|
63
63
|
lambda {
|
64
64
|
assert_contain(/monkeys/)
|
65
|
-
}.should raise_error(
|
65
|
+
}.should raise_error(AssertionFailedError)
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
@@ -78,13 +78,13 @@ describe "contain" do
|
|
78
78
|
it "should throw an exception when the body does contain the text" do
|
79
79
|
lambda {
|
80
80
|
assert_not_contain("hello, world")
|
81
|
-
}.should raise_error(
|
81
|
+
}.should raise_error(AssertionFailedError)
|
82
82
|
end
|
83
83
|
|
84
84
|
it "should throw an exception when the body does contain the regexp" do
|
85
85
|
lambda {
|
86
86
|
assert_not_contain(/hello, world/)
|
87
|
-
}.should raise_error(
|
87
|
+
}.should raise_error(AssertionFailedError)
|
88
88
|
end
|
89
89
|
end
|
90
90
|
end
|
@@ -122,7 +122,7 @@ describe "have_selector" do
|
|
122
122
|
it "should throw an exception when the body doesnt have matching selection" do
|
123
123
|
lambda {
|
124
124
|
assert_have_selector("p")
|
125
|
-
}.should raise_error(
|
125
|
+
}.should raise_error(AssertionFailedError)
|
126
126
|
end
|
127
127
|
end
|
128
128
|
|
@@ -134,7 +134,7 @@ describe "have_selector" do
|
|
134
134
|
it "should throw an exception when the body does contain the selection" do
|
135
135
|
lambda {
|
136
136
|
assert_have_no_selector("div")
|
137
|
-
}.should raise_error(
|
137
|
+
}.should raise_error(AssertionFailedError)
|
138
138
|
end
|
139
139
|
end
|
140
140
|
end
|
@@ -117,7 +117,7 @@ describe "have_xpath" do
|
|
117
117
|
it "should throw an exception when the body doesnt have matching xpath" do
|
118
118
|
lambda {
|
119
119
|
assert_have_xpath("//p")
|
120
|
-
}.should raise_error(
|
120
|
+
}.should raise_error(AssertionFailedError)
|
121
121
|
end
|
122
122
|
end
|
123
123
|
|
@@ -129,7 +129,7 @@ describe "have_xpath" do
|
|
129
129
|
it "should throw an exception when the body does contain the xpath" do
|
130
130
|
lambda {
|
131
131
|
assert_have_no_xpath("//div")
|
132
|
-
}.should raise_error(
|
132
|
+
}.should raise_error(AssertionFailedError)
|
133
133
|
end
|
134
134
|
end
|
135
135
|
end
|
data/spec/rcov.opts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
-x gems,spec
|
data/spec/spec.opts
ADDED
data/spec/spec_helper.rb
CHANGED
@@ -8,8 +8,10 @@ begin require "redgreen" unless ENV['TM_CURRENT_LINE']; rescue LoadError; end
|
|
8
8
|
webrat_path = File.expand_path(File.dirname(__FILE__) + "/../lib/")
|
9
9
|
$LOAD_PATH.unshift(webrat_path) unless $LOAD_PATH.include?(webrat_path)
|
10
10
|
|
11
|
+
AssertionFailedError = Test::Unit::AssertionFailedError rescue MiniTest::Assertion # ruby1.9 compat
|
12
|
+
|
11
13
|
require "webrat"
|
12
|
-
require File.expand_path(File.dirname(__FILE__) + "/fakes/
|
14
|
+
require File.expand_path(File.dirname(__FILE__) + "/fakes/test_adapter")
|
13
15
|
|
14
16
|
module Webrat
|
15
17
|
@@previous_config = nil
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emipair-webrat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Bryan Helmkamp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-08-
|
12
|
+
date: 2009-08-27 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -22,20 +22,40 @@ dependencies:
|
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: 1.2.0
|
24
24
|
version:
|
25
|
-
|
26
|
-
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rack
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: "1.0"
|
34
|
+
version:
|
35
|
+
description: |-
|
36
|
+
Webrat lets you quickly write expressive and robust acceptance tests
|
37
|
+
for a Ruby web application. It supports simulating a browser inside
|
38
|
+
a Ruby process to avoid the performance hit and browser dependency of
|
39
|
+
Selenium or Watir, but the same API can also be used to drive real
|
40
|
+
Selenium tests when necessary (eg. for testing AJAX interactions).
|
41
|
+
Most Ruby web frameworks and testing frameworks are supported.
|
42
|
+
email: bryan@brynary.com
|
27
43
|
executables: []
|
28
44
|
|
29
45
|
extensions: []
|
30
46
|
|
31
47
|
extra_rdoc_files:
|
48
|
+
- History.txt
|
32
49
|
- MIT-LICENSE.txt
|
33
50
|
- README.rdoc
|
34
51
|
files:
|
52
|
+
- .document
|
53
|
+
- .gitignore
|
35
54
|
- History.txt
|
36
55
|
- MIT-LICENSE.txt
|
37
56
|
- README.rdoc
|
38
57
|
- Rakefile
|
58
|
+
- VERSION
|
39
59
|
- install.rb
|
40
60
|
- lib/webrat.rb
|
41
61
|
- lib/webrat/core.rb
|
@@ -82,10 +102,9 @@ files:
|
|
82
102
|
- lib/webrat/core_extensions/tcp_socket.rb
|
83
103
|
- lib/webrat/mechanize.rb
|
84
104
|
- lib/webrat/merb.rb
|
105
|
+
- lib/webrat/merb_adapter.rb
|
85
106
|
- lib/webrat/merb_multipart_support.rb
|
86
|
-
- lib/webrat/merb_session.rb
|
87
107
|
- lib/webrat/rack.rb
|
88
|
-
- lib/webrat/rack_test.rb
|
89
108
|
- lib/webrat/rails.rb
|
90
109
|
- lib/webrat/rspec-rails.rb
|
91
110
|
- lib/webrat/selenium.rb
|
@@ -112,10 +131,142 @@ files:
|
|
112
131
|
- lib/webrat/selenium/selenium_session.rb
|
113
132
|
- lib/webrat/selenium/silence_stream.rb
|
114
133
|
- lib/webrat/sinatra.rb
|
134
|
+
- spec/fakes/test_adapter.rb
|
135
|
+
- spec/integration/mechanize/Rakefile
|
136
|
+
- spec/integration/mechanize/config.ru
|
137
|
+
- spec/integration/mechanize/sample_app.rb
|
138
|
+
- spec/integration/mechanize/spec/mechanize_spec.rb
|
139
|
+
- spec/integration/mechanize/spec/spec_helper.rb
|
140
|
+
- spec/integration/merb/.gitignore
|
141
|
+
- spec/integration/merb/Rakefile
|
142
|
+
- spec/integration/merb/app/controllers/application.rb
|
143
|
+
- spec/integration/merb/app/controllers/exceptions.rb
|
144
|
+
- spec/integration/merb/app/controllers/testing.rb
|
145
|
+
- spec/integration/merb/app/views/exceptions/not_acceptable.html.erb
|
146
|
+
- spec/integration/merb/app/views/exceptions/not_found.html.erb
|
147
|
+
- spec/integration/merb/app/views/layout/application.html.erb
|
148
|
+
- spec/integration/merb/app/views/testing/show_form.html.erb
|
149
|
+
- spec/integration/merb/app/views/testing/upload.html.erb
|
150
|
+
- spec/integration/merb/config/environments/development.rb
|
151
|
+
- spec/integration/merb/config/environments/rake.rb
|
152
|
+
- spec/integration/merb/config/environments/test.rb
|
153
|
+
- spec/integration/merb/config/init.rb
|
154
|
+
- spec/integration/merb/config/rack.rb
|
155
|
+
- spec/integration/merb/config/router.rb
|
156
|
+
- spec/integration/merb/spec/spec.opts
|
157
|
+
- spec/integration/merb/spec/spec_helper.rb
|
158
|
+
- spec/integration/merb/spec/webrat_spec.rb
|
159
|
+
- spec/integration/merb/tasks/merb.thor/app_script.rb
|
160
|
+
- spec/integration/merb/tasks/merb.thor/common.rb
|
161
|
+
- spec/integration/merb/tasks/merb.thor/gem_ext.rb
|
162
|
+
- spec/integration/merb/tasks/merb.thor/main.thor
|
163
|
+
- spec/integration/merb/tasks/merb.thor/ops.rb
|
164
|
+
- spec/integration/merb/tasks/merb.thor/utils.rb
|
165
|
+
- spec/integration/rack/Rakefile
|
166
|
+
- spec/integration/rack/app.rb
|
167
|
+
- spec/integration/rack/test/helper.rb
|
168
|
+
- spec/integration/rack/test/webrat_rack_test.rb
|
169
|
+
- spec/integration/rails/.gitignore
|
170
|
+
- spec/integration/rails/Rakefile
|
171
|
+
- spec/integration/rails/app/controllers/application.rb
|
172
|
+
- spec/integration/rails/app/controllers/buttons_controller.rb
|
173
|
+
- spec/integration/rails/app/controllers/fields_controller.rb
|
174
|
+
- spec/integration/rails/app/controllers/links_controller.rb
|
175
|
+
- spec/integration/rails/app/controllers/webrat_controller.rb
|
176
|
+
- spec/integration/rails/app/helpers/buttons_helper.rb
|
177
|
+
- spec/integration/rails/app/helpers/fields_helper.rb
|
178
|
+
- spec/integration/rails/app/helpers/links_helper.rb
|
179
|
+
- spec/integration/rails/app/views/buttons/show.html.erb
|
180
|
+
- spec/integration/rails/app/views/fields/show.html.erb
|
181
|
+
- spec/integration/rails/app/views/links/show.html.erb
|
182
|
+
- spec/integration/rails/app/views/webrat/before_redirect_form.html.erb
|
183
|
+
- spec/integration/rails/app/views/webrat/buttons.html.erb
|
184
|
+
- spec/integration/rails/app/views/webrat/form.html.erb
|
185
|
+
- spec/integration/rails/config/boot.rb
|
186
|
+
- spec/integration/rails/config/environment.rb
|
187
|
+
- spec/integration/rails/config/environments/development.rb
|
188
|
+
- spec/integration/rails/config/environments/selenium.rb
|
189
|
+
- spec/integration/rails/config/environments/test.rb
|
190
|
+
- spec/integration/rails/config/initializers/inflections.rb
|
191
|
+
- spec/integration/rails/config/initializers/mime_types.rb
|
192
|
+
- spec/integration/rails/config/initializers/new_rails_defaults.rb
|
193
|
+
- spec/integration/rails/config/locales/en.yml
|
194
|
+
- spec/integration/rails/config/routes.rb
|
195
|
+
- spec/integration/rails/public/404.html
|
196
|
+
- spec/integration/rails/public/422.html
|
197
|
+
- spec/integration/rails/public/500.html
|
198
|
+
- spec/integration/rails/script/about
|
199
|
+
- spec/integration/rails/script/console
|
200
|
+
- spec/integration/rails/script/dbconsole
|
201
|
+
- spec/integration/rails/script/destroy
|
202
|
+
- spec/integration/rails/script/generate
|
203
|
+
- spec/integration/rails/script/performance/benchmarker
|
204
|
+
- spec/integration/rails/script/performance/profiler
|
205
|
+
- spec/integration/rails/script/performance/request
|
206
|
+
- spec/integration/rails/script/plugin
|
207
|
+
- spec/integration/rails/script/process/inspector
|
208
|
+
- spec/integration/rails/script/process/reaper
|
209
|
+
- spec/integration/rails/script/process/spawner
|
210
|
+
- spec/integration/rails/script/runner
|
211
|
+
- spec/integration/rails/script/server
|
212
|
+
- spec/integration/rails/test/integration/button_click_test.rb
|
213
|
+
- spec/integration/rails/test/integration/fill_in_test.rb
|
214
|
+
- spec/integration/rails/test/integration/link_click_test.rb
|
215
|
+
- spec/integration/rails/test/integration/webrat_test.rb
|
216
|
+
- spec/integration/rails/test/test_helper.rb
|
217
|
+
- spec/integration/sinatra/Rakefile
|
218
|
+
- spec/integration/sinatra/classic_app.rb
|
219
|
+
- spec/integration/sinatra/modular_app.rb
|
220
|
+
- spec/integration/sinatra/test/classic_app_test.rb
|
221
|
+
- spec/integration/sinatra/test/modular_app_test.rb
|
222
|
+
- spec/integration/sinatra/test/test_helper.rb
|
223
|
+
- spec/private/core/configuration_spec.rb
|
224
|
+
- spec/private/core/field_spec.rb
|
225
|
+
- spec/private/core/link_spec.rb
|
226
|
+
- spec/private/core/session_spec.rb
|
227
|
+
- spec/private/mechanize/mechanize_adapter_spec.rb
|
228
|
+
- spec/private/merb/attaches_file_spec.rb
|
229
|
+
- spec/private/merb/merb_adapter_spec.rb
|
230
|
+
- spec/private/nokogiri_spec.rb
|
231
|
+
- spec/private/rails/attaches_file_spec.rb
|
232
|
+
- spec/private/rails/rails_adapter_spec.rb
|
233
|
+
- spec/private/selenium/application_servers/rails_spec.rb
|
234
|
+
- spec/public/basic_auth_spec.rb
|
235
|
+
- spec/public/check_spec.rb
|
236
|
+
- spec/public/choose_spec.rb
|
237
|
+
- spec/public/click_area_spec.rb
|
238
|
+
- spec/public/click_button_spec.rb
|
239
|
+
- spec/public/click_link_spec.rb
|
240
|
+
- spec/public/fill_in_spec.rb
|
241
|
+
- spec/public/locators/field_by_xpath_spec.rb
|
242
|
+
- spec/public/locators/field_labeled_spec.rb
|
243
|
+
- spec/public/locators/field_with_id_spec.rb
|
244
|
+
- spec/public/matchers/contain_spec.rb
|
245
|
+
- spec/public/matchers/have_selector_spec.rb
|
246
|
+
- spec/public/matchers/have_tag_spec.rb
|
247
|
+
- spec/public/matchers/have_xpath_spec.rb
|
248
|
+
- spec/public/reload_spec.rb
|
249
|
+
- spec/public/save_and_open_spec.rb
|
250
|
+
- spec/public/select_date_spec.rb
|
251
|
+
- spec/public/select_datetime_spec.rb
|
252
|
+
- spec/public/select_spec.rb
|
253
|
+
- spec/public/select_time_spec.rb
|
254
|
+
- spec/public/selenium/application_server_factory_spec.rb
|
255
|
+
- spec/public/selenium/application_servers/external_spec.rb
|
256
|
+
- spec/public/selenium/selenium_session_spec.rb
|
257
|
+
- spec/public/set_hidden_field_spec.rb
|
258
|
+
- spec/public/submit_form_spec.rb
|
259
|
+
- spec/public/visit_spec.rb
|
260
|
+
- spec/public/within_spec.rb
|
261
|
+
- spec/rcov.opts
|
262
|
+
- spec/spec.opts
|
263
|
+
- spec/spec_helper.rb
|
115
264
|
- vendor/selenium-server.jar
|
116
|
-
|
117
|
-
|
118
|
-
|
265
|
+
- emipair-webrat.gemspec
|
266
|
+
has_rdoc: true
|
267
|
+
homepage: http://github.com/brynary/webrat
|
268
|
+
licenses: []
|
269
|
+
|
119
270
|
post_install_message:
|
120
271
|
rdoc_options:
|
121
272
|
- --charset=UTF-8
|
@@ -136,12 +287,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
287
|
requirements: []
|
137
288
|
|
138
289
|
rubyforge_project: webrat
|
139
|
-
rubygems_version: 1.3.
|
290
|
+
rubygems_version: 1.3.4
|
140
291
|
signing_key:
|
141
292
|
specification_version: 3
|
142
|
-
summary:
|
293
|
+
summary: Ruby Acceptance Testing for Web applications
|
143
294
|
test_files:
|
144
|
-
- spec/fakes/
|
295
|
+
- spec/fakes/test_adapter.rb
|
296
|
+
- spec/integration/mechanize/sample_app.rb
|
297
|
+
- spec/integration/mechanize/spec/mechanize_spec.rb
|
298
|
+
- spec/integration/mechanize/spec/spec_helper.rb
|
145
299
|
- spec/integration/merb/app/controllers/application.rb
|
146
300
|
- spec/integration/merb/app/controllers/exceptions.rb
|
147
301
|
- spec/integration/merb/app/controllers/testing.rb
|
@@ -158,8 +312,8 @@ test_files:
|
|
158
312
|
- spec/integration/merb/tasks/merb.thor/gem_ext.rb
|
159
313
|
- spec/integration/merb/tasks/merb.thor/ops.rb
|
160
314
|
- spec/integration/merb/tasks/merb.thor/utils.rb
|
161
|
-
- spec/integration/rack/
|
162
|
-
- spec/integration/rack/test/
|
315
|
+
- spec/integration/rack/app.rb
|
316
|
+
- spec/integration/rack/test/helper.rb
|
163
317
|
- spec/integration/rack/test/webrat_rack_test.rb
|
164
318
|
- spec/integration/rails/app/controllers/application.rb
|
165
319
|
- spec/integration/rails/app/controllers/buttons_controller.rb
|
@@ -191,14 +345,13 @@ test_files:
|
|
191
345
|
- spec/private/core/configuration_spec.rb
|
192
346
|
- spec/private/core/field_spec.rb
|
193
347
|
- spec/private/core/link_spec.rb
|
194
|
-
- spec/private/core/logging_spec.rb
|
195
348
|
- spec/private/core/session_spec.rb
|
196
|
-
- spec/private/mechanize/
|
349
|
+
- spec/private/mechanize/mechanize_adapter_spec.rb
|
197
350
|
- spec/private/merb/attaches_file_spec.rb
|
198
|
-
- spec/private/merb/
|
351
|
+
- spec/private/merb/merb_adapter_spec.rb
|
199
352
|
- spec/private/nokogiri_spec.rb
|
200
353
|
- spec/private/rails/attaches_file_spec.rb
|
201
|
-
- spec/private/rails/
|
354
|
+
- spec/private/rails/rails_adapter_spec.rb
|
202
355
|
- spec/private/selenium/application_servers/rails_spec.rb
|
203
356
|
- spec/public/basic_auth_spec.rb
|
204
357
|
- spec/public/check_spec.rb
|