Sha256: 6b1c86db2666f21131c3959a1ddea321a75d183536132fde985eed308d3a1e14
Contents?: true
Size: 643 Bytes
Versions: 2
Compression:
Stored size: 643 Bytes
Contents
class DriverFactory attr_reader :drivers_count def initialize(log_path) @log = File.open(log_path, 'w') @drivers = [] end def get_driver(app) @log.puts "Driver created" driver = TestDriver.new(app) @drivers << driver driver end def drivers_clean? @drivers.all?(&:clean?) end def drivers_count @drivers.size end class TestDriver def initialize(app) @app = app @clean = true end def visit(path) @clean = false end def reset! @clean = true end def clean? @clean end def needs_server? false end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bbq-0.2.1 | test/support/driver_factory.rb |
bbq-0.2.0 | test/support/driver_factory.rb |