1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Some tweaks for click_button spec

This commit is contained in:
Jonas Nicklas 2010-06-30 00:20:23 +02:00
parent 74c6c86b3e
commit 89a5cd2151
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ module Capybara
:has_no_content?, :has_no_css?, :has_no_xpath?, :has_xpath?, :locate, :save_and_open_page, :select, :source, :uncheck,
:visit, :wait_until, :within, :within_fieldset, :within_table, :within_frame, :has_link?, :has_no_link?, :has_button?,
:has_no_button?, :has_field?, :has_no_field?, :has_checked_field?, :has_unchecked_field?, :has_no_table?, :has_table?,
:unselect, :has_select?, :has_no_select?, :current_path
:unselect, :has_select?, :has_no_select?, :current_path, :scope_to
]
attr_reader :mode, :app

View file

@ -224,7 +224,7 @@ shared_examples_for "click_button" do
it "should follow redirects" do
@session.click_button('Go FAR')
@session.driver.current_url.should match(%r{/landed$})
@session.current_url.should match(%r{/landed$})
@session.body.should include('You landed')
end