Skip to content

Instantly share code, notes, and snippets.

Avatar

Jan Dudek jdudek

View GitHub Profile
@jdudek
jdudek / bbq_java.rb
Created Feb 8, 2012 — forked from paneq/bbq_java.rb
bbq factories
View bbq_java.rb
class Session
# some kind of delegator is needed here
# delegate everything to @session
def initialize(options)
@session = Capybara::Session.new(options[:driver], Bbq.app)
end
def kill
page.driver.quit if page.driver.browser?