Sha256: 18fcf0a459a29123928209a5606c04d56a97a06850ecd03f5b6868c20636326f

Contents?: true

Size: 749 Bytes

Versions: 7

Compression:

Stored size: 749 Bytes

Contents

require 'simplecov'
require 'klomp'
require 'rspec'
require 'rspec-given'

Dir[File.expand_path('../support/', __FILE__) + '/*.rb'].each {|f| require f }

module Frames
  def frame(type)
    File.read(File.expand_path("../frames/#{type}.txt", __FILE__))
  end
end

def queue_available?
  s = TCPSocket.new 'localhost', 61613
  true
rescue
  false
ensure
  s && s.close
end

RSpec.configure do |config|
  config.treat_symbols_as_metadata_keys_with_true_values = true
  config.run_all_when_everything_filtered = true
  config.filter_run :focus

  config.filter_run_excluding :acceptance  unless queue_available?
  if ENV['PERF']
    config.filter_run :performance
  else
    config.filter_run_excluding :performance
  end

  config.include Frames
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
klomp-1.0.6 spec/spec_helper.rb
klomp-1.0.5 spec/spec_helper.rb
klomp-1.0.4 spec/spec_helper.rb
klomp-1.0.3 spec/spec_helper.rb
klomp-1.0.2 spec/spec_helper.rb
klomp-1.0.1 spec/spec_helper.rb
klomp-1.0.0 spec/spec_helper.rb