Sha256: e8eb48e8be9e4b1779b4ff7b1ab718267f26761da816d58adaf72b9bfaa85c3b

Contents?: true

Size: 787 Bytes

Versions: 25

Compression:

Stored size: 787 Bytes

Contents

guard :rspec, {
  cmd: "bundle exec rspec",
  all_on_start: true,
  all_after_pass: true,
  failed_mode: :focus
  } do
  require "guard/rspec/dsl"
  dsl = Guard::RSpec::Dsl.new(self)

  rspec = dsl.rspec
  watch(rspec.spec_helper) { rspec.spec_dir }
  watch(rspec.spec_support) { rspec.spec_dir }
  watch(rspec.spec_files)

  ruby = dsl.ruby
  dsl.watch_spec_files_for(ruby.lib_files)

  watch(/.+\.rb$/) { |m| puts m }
  watch(/.+\.rb$/) { "spec" }
end

require_relative "lib/webdriver"

Process.spawn "chromedriver"

begin
  Net::HTTP.get URI("http://localhost:9515/status")
rescue Errno::ECONNREFUSED
  print "."
  sleep 0.1
  retry
end


$client = Webdriver::Client.new "http://localhost:9515"

at_exit do
  puts "killing chromedriver"
  Process.kill "TERM", $__chromedriver_pid
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
webdriver-0.19.0 Guardfile
webdriver-0.18.0 Guardfile
webdriver-0.17.0 Guardfile
webdriver-0.16.0 Guardfile
webdriver-0.15.0 Guardfile
webdriver-0.14.0 Guardfile
webdriver-0.13.0 Guardfile
webdriver-0.12.0 Guardfile
webdriver-0.11.1 Guardfile
webdriver-0.11.0 Guardfile
webdriver-0.10.0 Guardfile
webdriver-0.9.1 Guardfile
webdriver-0.9.0 Guardfile
webdriver-0.8.0 Guardfile
webdriver-0.7.0 Guardfile
webdriver-0.6.4 Guardfile
webdriver-0.6.3 Guardfile
webdriver-0.6.2 Guardfile
webdriver-0.6.0 Guardfile
webdriver-0.5.0 Guardfile