mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
10 lines
258 B
Ruby
10 lines
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
|