Skip to content

Commit

Permalink
Wee, Culerity passes all specs!
Browse files Browse the repository at this point in the history
  • Loading branch information
jnicklas committed Nov 20, 2009
1 parent 1e32606 commit 7f1a86f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 5 additions & 4 deletions README.rdoc
Expand Up @@ -60,7 +60,7 @@ You can change the driver temporarily:

== Cucumber and Tags

Capybara sets up some [tags](http://wiki.github.com/aslakhellesoy/cucumber/tags)
Capybara sets up some {tags}[http://wiki.github.com/aslakhellesoy/cucumber/tags]
for you to use in Cucumber. Often you'll want to use run only some scenarios
with a driver that supports JavaScript, Capybara makes this easy: simply tag the
scenario (or feature) with <tt>@javascript</tt>:
Expand Down Expand Up @@ -91,7 +91,7 @@ Interaction:

click_link
click_button
fill_in – Currently broken with password fields under Culerity
fill_in
choose
check
uncheck
Expand Down Expand Up @@ -151,6 +151,9 @@ Capybara is hosted on Gemcutter, install it with:

== Gotchas:

* Install JRuby and the 'jarib-celerity' gem (not the 'celerity' gem) for
Culerity support.

* Everything is *case sensitive*. Capybara heavily relies on XPath, which
doesn't support case insensitive searches.

Expand All @@ -159,8 +162,6 @@ Capybara is hosted on Gemcutter, install it with:
<tt>page.should have_xpath('//ul/li')</tt> and <tt>page.should
have_content('Monkey')</tt> instead.

* Filling in password fields is currently broken under Culerity.

* Domain names (including subdomains) don't work under rack-test. Since it's a
pain to set up subdomains for the other drivers anyway, you should consider an
alternate solution. You might use
Expand Down
2 changes: 0 additions & 2 deletions spec/session_spec.rb
Expand Up @@ -197,14 +197,12 @@ def extract_results(session)
end

it "should fill in a password field by id" do
pending "Culerity doesn't like password fields for some reason" if @session.mode == :culerity
@session.fill_in('form_password', :with => 'supasikrit')
@session.click_button('awesome')
extract_results(@session)['password'].should == 'supasikrit'
end

it "should fill in a password field by label" do
pending "Culerity doesn't like password fields for some reason" if @session.mode == :culerity
@session.fill_in('Password', :with => 'supasikrit')
@session.click_button('awesome')
extract_results(@session)['password'].should == 'supasikrit'
Expand Down

0 comments on commit 7f1a86f

Please sign in to comment.