Spec for current_url

This commit is contained in:
Tom Simnett 2009-12-17 11:22:47 +00:00
parent 0732ac5ff2
commit fe2a3fae58
1 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,11 @@ shared_examples_for 'driver' do
@driver.visit('/foo')
@driver.body.should include('Another World')
end
it "should show the correct URL" do
@driver.visit('/foo')
@driver.current_url.should include('/foo')
end
end
describe '#body' do