Sha256: f735481917fb5eb5ba3c22dd7b8610792f0785c98c9a72115f324e10e9a801d1

Contents?: true

Size: 670 Bytes

Versions: 2

Compression:

Stored size: 670 Bytes

Contents

if ENV['COVERAGE']
  raise "simplecov only works on 1.9" unless RUBY_PLATFORM >= "1.9"
  require 'simplecov'
  SimpleCov.start {
    add_filter "spec/"
  }
end

$:.unshift File.expand_path("../../lib", __FILE__)
require "bamboo-client"

module Bamboo::Client::SpecHelper
  def xml_fixture(name)
    path = File.join fixture_path("#{name}.xml")

    Nokogiri.XML File.read(path)
  end

  def fixture_path(file)
    dir = File.expand_path("../fixtures", __FILE__)

    File.join dir, file
  end

  class Wrapper
    attr_reader :obj

    def initialize(obj, *extra_args)
      @obj = obj
    end
  end
end

RSpec.configure do |c|
  c.include Bamboo::Client::SpecHelper
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bamboo-client-0.0.3 spec/spec_helper.rb
bamboo-client-0.0.2 spec/spec_helper.rb