lib/konacha/runner.rb in konacha-2.2.0 vs lib/konacha/runner.rb in konacha-2.3.0
- old
+ new
@@ -6,15 +6,16 @@
new.run
end
attr_reader :reporter
- def initialize
+ def initialize(session = nil)
+ @session = session
@reporter = Konacha::Reporter.new(*formatters)
end
- def run
- session.visit('/')
+ def run(path = '/')
+ session.visit path
events_consumed = 0
done = false
begin
sleep 0.1