Sha256: 25244562d0d26218f61d279b14f8f0f682eed119784320076d2183f2219bdf9c

Contents?: true

Size: 526 Bytes

Versions: 2

Compression:

Stored size: 526 Bytes

Contents

require 'rspec'
require 'jasmine_selenium_runner'

RSpec.configure do |config|
  config.before(:each, :sauce => true) do
    unless ENV["SAUCE_USERNAME"] && ENV["SAUCE_ACCESS_KEY"]
      skip "skipping sauce tests because SAUCE_USERNAME and SAUCE_ACCESS_KEY aren't set"
    end
  end
end

def in_temp_dir
  project_root = File.expand_path(File.join('..', '..'), __FILE__)
  Dir.mktmpdir do |tmp_dir|
    begin
      Dir.chdir tmp_dir
      yield tmp_dir, project_root
    ensure
      Dir.chdir project_root
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jasmine_selenium_runner-3.0.0 spec/spec_helper.rb
jasmine_selenium_runner-2.4.0 spec/spec_helper.rb