Sha256: 3b14254c81f472c15337697e81a986f51a91102ee6f5cda0ff7f7d3a3d90bd10

Contents?: true

Size: 661 Bytes

Versions: 3

Compression:

Stored size: 661 Bytes

Contents

require 'coveralls'
Coveralls.wear!

require "minitest/autorun"
require "webmock/minitest"
require "vcr"
require "quakelive_api"

WebMock.disable_net_connect! allow: %w{coveralls.io}

VCR.configure do |c|
  c.cassette_library_dir = 'test/fixtures'
  c.hook_into :webmock
end

# taken from its-minitest gem, as I'm used to rspec syntax (and it's quite convenient for blackbox testing)
class MiniTest::Spec
  def self.its attribute, &block
    describe "verify subject.#{attribute} for" do
      let(:inner_subject) { subject.send(attribute) }

      it "verify subject.#{attribute} for" do
        inner_subject.instance_eval(&block)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
quakelive_api-0.1.2 test/test_helper.rb
quakelive_api-0.1.1 test/test_helper.rb
quakelive_api-0.1.0 test/test_helper.rb