capybara 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -60,7 +60,7 @@ You can change the driver temporarily:
60
60
 
61
61
  == Cucumber and Tags
62
62
 
63
- Capybara sets up some [tags](http://wiki.github.com/aslakhellesoy/cucumber/tags)
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 – Currently broken with password fields under Culerity
94
+ fill_in
95
95
  choose
96
96
  check
97
- uncheck – Currently broken under Culerity
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
@@ -1,7 +1,7 @@
1
1
  require 'nokogiri'
2
2
 
3
3
  module Capybara
4
- VERSION = '0.1'
4
+ VERSION = '0.1.1'
5
5
 
6
6
  class CapybaraError < StandardError; end
7
7
  class DriverNotFoundError < CapybaraError; end
@@ -16,7 +16,7 @@ class Capybara::Driver::Culerity
16
16
  end
17
17
 
18
18
  def set(value)
19
- node.set(value.to_s)
19
+ node.set(value)
20
20
  end
21
21
 
22
22
  def select(option)
@@ -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: "0.1"
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-19 00:00:00 +01:00
12
+ date: 2009-11-20 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency