Sha256: f1b5c28d60efa846b99a5ff0bd63207884bbfcc8356c2c2182445e36bd4169e4

Contents?: true

Size: 1.08 KB

Versions: 70

Compression:

Stored size: 1.08 KB

Contents

require 'simplecov'
require 'coveralls'

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
]
SimpleCov.start

require 'gems'
require 'rspec'
require 'webmock/rspec'

WebMock.disable_net_connect!(:allow => 'coveralls.io')

RSpec.configure do |config|
  config.expect_with :rspec do |c|
    c.syntax = :expect
  end
end

def rubygems_url(url)
  url =~ /^http/ ? url : 'https://rubygems.org' + url
end

def a_delete(url)
  a_request(:delete, rubygems_url(url))
end

def a_get(url)
  a_request(:get, rubygems_url(url))
end

def a_post(url)
  a_request(:post, rubygems_url(url))
end

def a_put(url)
  a_request(:put, rubygems_url(url))
end

def stub_delete(url)
  stub_request(:delete, rubygems_url(url))
end

def stub_get(url)
  stub_request(:get, rubygems_url(url))
end

def stub_post(url)
  stub_request(:post, rubygems_url(url))
end

def stub_put(url)
  stub_request(:put, rubygems_url(url))
end

def fixture_path
  File.expand_path('../fixtures', __FILE__)
end

def fixture(file)
  File.new(fixture_path + '/' + file)
end

Version data entries

70 entries across 66 versions & 18 rubygems

Version Path
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/gems-0.8.3/spec/helper.rb
logstash-filter-csharp-0.1.0 vendor/bundle/jruby/2.3.0/gems/gems-0.8.3/spec/helper.rb
logstash-filter-htmlentities-0.1.0 vendor/bundle/jruby/1.9/gems/gems-0.8.3/spec/helper.rb
logstash-output-icinga-1.0.0 vendor/jruby/1.9/gems/gems-0.8.3/spec/helper.rb
logstash-filter-zabbix-0.1.2 vendor/bundle/jruby/1.9/gems/gems-0.8.3/spec/helper.rb
logstash-filter-zabbix-0.1.1 vendor/bundle/jruby/1.9/gems/gems-0.8.3/spec/helper.rb
logstash-input-fifo-0.9.1 vendor/bundle/jruby/1.9/gems/gems-0.8.3/spec/helper.rb
logstash-input-fifo-0.9.0 vendor/bundle/jruby/1.9/gems/gems-0.8.3/spec/helper.rb
logstash-input-salesforce-3.0.0 vendor/jruby/1.9/gems/gems-0.8.3/spec/helper.rb
ivanvc-logstash-input-s3-3.1.1.4 vendor/local/gems/gems-0.8.3/spec/helper.rb
ivanvc-logstash-input-s3-3.1.1.3 vendor/local/gems/gems-0.8.3/spec/helper.rb
ivanvc-logstash-input-s3-3.1.1.2 vendor/local/gems/gems-0.8.3/spec/helper.rb
logstash-filter-delta-1.1.0 vendor/bundle/jruby/2.2.0/gems/gems-0.8.3/spec/helper.rb
logstash-filter-delta-1.0.1 vendor/bundle/jruby/2.2.0/gems/gems-0.8.3/spec/helper.rb
logstash-filter-base64-1.0.4 vendor/bundle/jruby/2.2.0/gems/gems-0.8.3/spec/helper.rb
logstash-filter-base64-1.0.3 vendor/bundle/jruby/2.2.0/gems/gems-0.8.3/spec/helper.rb
logstash-filter-delta-1.0.0 vendor/bundle/jruby/2.2.0/gems/gems-0.8.3/spec/helper.rb
logstash-filter-base64-1.0.2 vendor/bundle/jruby/2.3.0/gems/gems-0.8.3/spec/helper.rb
logstash-filter-base64-1.0.1 vendor/bundle/jruby/2.3.0/gems/gems-0.8.3/spec/helper.rb
logstash-filter-base64-1.0.0 vendor/bundle/jruby/2.3.0/gems/gems-0.8.3/spec/helper.rb