1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/spec/dsl/current_url_spec.rb
2009-12-17 18:41:05 +01:00

10 lines
No EOL
258 B
Ruby

module CurrentUrlSpec
shared_examples_for "current_url" do
describe '#current_url' do
it "should return the current url" do
@session.visit('/form')
@session.current_url.should =~ %r(http://[^/]+/form)
end
end
end
end