Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updating poltergeist driver for capybara 2

  • Loading branch information...
commit ee054d2bdf2be8e9756c8c698fb23b1118d31f0c 1 parent 29bebe3
@nruth authored
View
2  lib/show_me_the_cookies.rb
@@ -1,5 +1,6 @@
module ShowMeTheCookies
require 'show_me_the_cookies/adapters/rack_test'
+ require 'show_me_the_cookies/adapters/poltergeist'
require 'show_me_the_cookies/adapters/selenium'
@adapters = {}
@@ -17,6 +18,7 @@ def register_adapter(driver, adapter)
# to register your own adapter/driver do this in your test setup code somewhere e.g. spec/support
register_adapter(:selenium, ShowMeTheCookies::Selenium)
register_adapter(:rack_test, ShowMeTheCookies::RackTest)
+ register_adapter(:rack_test, ShowMeTheCookies::Poltergeist)
# puts a string summary of the cookie
def show_me_the_cookie(cookie_name)
View
0  lib/show_me_the_cookies/poltergeist.rb → lib/show_me_the_cookies/adapters/poltergeist.rb
File renamed without changes
View
2  spec/request/poltergeist_spec.rb → spec/drivers/poltergeist_spec.rb
@@ -2,7 +2,7 @@
require 'shared_examples_for_api'
require 'capybara/poltergeist'
-describe "Poltergeist", :type => :request do
+describe "Poltergeist", :type => :feature do
before(:each) do
Capybara.current_driver = :poltergeist
end
Please sign in to comment.
Something went wrong with that request. Please try again.