From 7f1a86f46d1d84b999258d4fc0b0d75b22c54ecf Mon Sep 17 00:00:00 2001 From: Jonas Nicklas Date: Fri, 20 Nov 2009 19:15:19 +0100 Subject: [PATCH] Wee, Culerity passes all specs! --- README.rdoc | 9 +++++---- spec/session_spec.rb | 2 -- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.rdoc b/README.rdoc index 4627b2cda..a8b560c33 100644 --- a/README.rdoc +++ b/README.rdoc @@ -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 @javascript: @@ -91,7 +91,7 @@ Interaction: click_link click_button - fill_in – Currently broken with password fields under Culerity + fill_in choose check uncheck @@ -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. @@ -159,8 +162,6 @@ Capybara is hosted on Gemcutter, install it with: page.should have_xpath('//ul/li') and page.should have_content('Monkey') 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 diff --git a/spec/session_spec.rb b/spec/session_spec.rb index efc2c8e52..f91fa94ea 100644 --- a/spec/session_spec.rb +++ b/spec/session_spec.rb @@ -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'