capybara 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +6 -6
- data/lib/capybara.rb +1 -1
- data/lib/capybara/driver/culerity_driver.rb +1 -1
- data/spec/session_spec.rb +0 -4
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -60,7 +60,7 @@ You can change the driver temporarily:
|
|
60
60
|
|
61
61
|
== Cucumber and Tags
|
62
62
|
|
63
|
-
Capybara sets up some [
|
63
|
+
Capybara sets up some {tags}[http://wiki.github.com/aslakhellesoy/cucumber/tags]
|
64
64
|
for you to use in Cucumber. Often you'll want to use run only some scenarios
|
65
65
|
with a driver that supports JavaScript, Capybara makes this easy: simply tag the
|
66
66
|
scenario (or feature) with <tt>@javascript</tt>:
|
@@ -91,10 +91,10 @@ Interaction:
|
|
91
91
|
|
92
92
|
click_link
|
93
93
|
click_button
|
94
|
-
fill_in
|
94
|
+
fill_in
|
95
95
|
choose
|
96
96
|
check
|
97
|
-
uncheck
|
97
|
+
uncheck
|
98
98
|
attach_file
|
99
99
|
select
|
100
100
|
|
@@ -151,6 +151,9 @@ Capybara is hosted on Gemcutter, install it with:
|
|
151
151
|
|
152
152
|
== Gotchas:
|
153
153
|
|
154
|
+
* Install JRuby and the 'jarib-celerity' gem (not the 'celerity' gem) for
|
155
|
+
Culerity support.
|
156
|
+
|
154
157
|
* Everything is *case sensitive*. Capybara heavily relies on XPath, which
|
155
158
|
doesn't support case insensitive searches.
|
156
159
|
|
@@ -159,9 +162,6 @@ Capybara is hosted on Gemcutter, install it with:
|
|
159
162
|
<tt>page.should have_xpath('//ul/li')</tt> and <tt>page.should
|
160
163
|
have_content('Monkey')</tt> instead.
|
161
164
|
|
162
|
-
* Unchecking checkboxes and filling in password fields is currently broken under
|
163
|
-
Culerity.
|
164
|
-
|
165
165
|
* Domain names (including subdomains) don't work under rack-test. Since it's a
|
166
166
|
pain to set up subdomains for the other drivers anyway, you should consider an
|
167
167
|
alternate solution. You might use
|
data/lib/capybara.rb
CHANGED
data/spec/session_spec.rb
CHANGED
@@ -197,14 +197,12 @@ shared_examples_for "session" do
|
|
197
197
|
end
|
198
198
|
|
199
199
|
it "should fill in a password field by id" do
|
200
|
-
pending "Culerity doesn't like password fields for some reason" if @session.mode == :culerity
|
201
200
|
@session.fill_in('form_password', :with => 'supasikrit')
|
202
201
|
@session.click_button('awesome')
|
203
202
|
extract_results(@session)['password'].should == 'supasikrit'
|
204
203
|
end
|
205
204
|
|
206
205
|
it "should fill in a password field by label" do
|
207
|
-
pending "Culerity doesn't like password fields for some reason" if @session.mode == :culerity
|
208
206
|
@session.fill_in('Password', :with => 'supasikrit')
|
209
207
|
@session.click_button('awesome')
|
210
208
|
extract_results(@session)['password'].should == 'supasikrit'
|
@@ -261,7 +259,6 @@ shared_examples_for "session" do
|
|
261
259
|
end
|
262
260
|
|
263
261
|
it "should uncheck a checkbox by id" do
|
264
|
-
pending "Culerity doesn't seem to uncheck this" if @session.mode == :culerity
|
265
262
|
@session.uncheck("form_pets_hamster")
|
266
263
|
@session.click_button('awesome')
|
267
264
|
extract_results(@session)['pets'].should include('dog')
|
@@ -269,7 +266,6 @@ shared_examples_for "session" do
|
|
269
266
|
end
|
270
267
|
|
271
268
|
it "should uncheck a checkbox by label" do
|
272
|
-
pending "Culerity doesn't seem to uncheck this" if @session.mode == :culerity
|
273
269
|
@session.uncheck("Hamster")
|
274
270
|
@session.click_button('awesome')
|
275
271
|
extract_results(@session)['pets'].should include('dog')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Nicklas
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-20 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|