Sha256: 29ce378975299981534001742938dfe564d574091b6cf86d5a6b40168b58bbe4

Contents?: true

Size: 822 Bytes

Versions: 31

Compression:

Stored size: 822 Bytes

Contents

require 'rspec'
require 'net/http'
require 'json'
require 'yaml'
require 'English'
require 'byebug'
require 'webdrivers/chromedriver'

# Disable default initialization of AppMap
ENV['APPMAP_INITIALIZE'] = 'false'

require 'appmap'

RSpec.configure do |config|
  config.example_status_persistence_file_path = "tmp/rspec_failed_examples.txt"
end

# Re-run the Rails specs without re-generating the data. This is useful for efficiently enhancing and
# debugging the test itself.
def use_existing_data?
  ENV['USE_EXISTING_DATA'] == 'true'
end

def ruby_2?
  RUBY_VERSION.split('.')[0].to_i == 2
end

shared_context 'collect events' do
  def collect_events(tracer)
    [].tap do |events|
      while tracer.event?
        events << tracer.next_event.to_h
      end
    end.map(&AppMap::Util.method(:sanitize_event))
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
appmap-0.78.0 spec/spec_helper.rb
appmap-0.77.4 spec/spec_helper.rb
appmap-0.77.3 spec/spec_helper.rb
appmap-0.77.2 spec/spec_helper.rb
appmap-0.77.1 spec/spec_helper.rb
appmap-0.77.0 spec/spec_helper.rb
appmap-0.76.0 spec/spec_helper.rb
appmap-0.75.0 spec/spec_helper.rb
appmap-0.74.0 spec/spec_helper.rb
appmap-0.73.0 spec/spec_helper.rb
appmap-0.72.5 spec/spec_helper.rb
appmap-0.72.4 spec/spec_helper.rb
appmap-0.72.3 spec/spec_helper.rb
appmap-0.72.2 spec/spec_helper.rb
appmap-0.72.1 spec/spec_helper.rb
appmap-0.72.0 spec/spec_helper.rb
appmap-0.71.0 spec/spec_helper.rb
appmap-0.70.2 spec/spec_helper.rb
appmap-0.70.1 spec/spec_helper.rb
appmap-0.70.0 spec/spec_helper.rb