Sha256: b111cea4f356e08ba7ffac615509c9a33beeab09c003ededdb20ef2a19e18854

Contents?: true

Size: 1010 Bytes

Versions: 12

Compression:

Stored size: 1010 Bytes

Contents

ENV["RAILS_ENV"] ||= 'test'
require File.expand_path('../test_app/config/environment', __FILE__)
require 'rspec/rails'
require 'hyper-spec'

RSpec.configure do |config|

  # Fail tests on JavaScript errors in Chrome Headless
  # class JavaScriptError < StandardError; end

  # config.after(:each, js: true) do |spec|
  #   logs = page.driver.browser.manage.logs.get(:browser)
  #   errors = logs.select { |e| e.level == "SEVERE" && e.message.present? }
  #               .map { |m| m.message.gsub(/\\n/, "\n") }.to_a
  #   if client_options[:deprecation_warnings] == :on
  #     warnings = logs.select { |e| e.level == "WARNING" && e.message.present? }
  #                 .map { |m| m.message.gsub(/\\n/, "\n") }.to_a
  #     puts "\033[0;33;1m\nJavascript client console warnings:\n\n" + warnings.join("\n\n") + "\033[0;30;21m" if warnings.present?
  #   end
  #   unless client_options[:raise_on_js_errors] == :off
  #     raise JavaScriptError, errors.join("\n\n") if errors.present?
  #   end
  # end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hyper-vis-1.0.1 spec/spec_helper.rb
hyper-vis-1.0.0.lap34 spec/spec_helper.rb
hyper-vis-1.0.0.lap33 spec/spec_helper.rb
hyper-vis-1.0.0.lap32 spec/spec_helper.rb
hyper-vis-1.0.0.lap31 spec/spec_helper.rb
hyper-vis-1.0.0.lap30 spec/spec_helper.rb
hyper-vis-1.0.0.lap29 spec/spec_helper.rb
hyper-vis-1.0.0.lap28 spec/spec_helper.rb
hyper-vis-1.0.0.lap27 spec/spec_helper.rb
hyper-vis-1.0.0.lap26 spec/spec_helper.rb
hyper-vis-1.0.0.lap25 spec/spec_helper.rb
hyper-vis-1.0.0.lap24 spec/spec_helper.rb