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

Fixed some failing stuff

This commit is contained in:
Jonas Nicklas 2011-04-08 16:14:05 +01:00
parent 765d92547b
commit fd5996f5f7
2 changed files with 2 additions and 1 deletions

View file

@ -72,4 +72,5 @@ class Capybara::RackTest::Driver < Capybara::Driver::Base
def post(*args, &block); browser.post(*args, &block); end def post(*args, &block); browser.post(*args, &block); end
def put(*args, &block); browser.put(*args, &block); end def put(*args, &block); browser.put(*args, &block); end
def delete(*args, &block); browser.delete(*args, &block); end def delete(*args, &block); browser.delete(*args, &block); end
def header(key, value); browser.header(key, value); end
end end

View file

@ -17,7 +17,7 @@ describe Capybara do
describe '.register_driver' do describe '.register_driver' do
it "should add a new driver" do it "should add a new driver" do
Capybara.register_driver :schmoo do |app| Capybara.register_driver :schmoo do |app|
Capybara::Driver::RackTest.new(app) Capybara::RackTest::Driver.new(app)
end end
session = Capybara::Session.new(:schmoo, TestApp) session = Capybara::Session.new(:schmoo, TestApp)
session.visit('/') session.visit('/')