Sha256: 7fc71b712d45b05917e250462f9c8bbaeed6f640bd75288e1bf121cd0b455461

Contents?: true

Size: 529 Bytes

Versions: 4

Compression:

Stored size: 529 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"]
      pending "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

4 entries across 4 versions & 1 rubygems

Version Path
jasmine_selenium_runner-0.2.1 spec/spec_helper.rb
jasmine_selenium_runner-0.2.0 spec/spec_helper.rb
jasmine_selenium_runner-0.1.1 spec/spec_helper.rb
jasmine_selenium_runner-0.1.0 spec/spec_helper.rb