Sha256: 45265f920cc3c8d98b37578163ae631966a62130c4ac608db669b4560a584c1f

Contents?: true

Size: 850 Bytes

Versions: 5

Compression:

Stored size: 850 Bytes

Contents

require 'java'

require 'bundler'
require 'killbill'
# JRuby specific, not required by default
require 'killbill/http_servlet'

require 'killbill/payment_test'


%w(
  MockAccountUserApi
  MockEntitlementUserApi
).each do |api|
  begin
    java_import "com.ning.billing.mock.api.#{api}"
  rescue LoadError
  end
end

require 'rspec'

RSpec.configure do |config|
  config.color_enabled = true
  config.tty = true
  config.formatter = 'documentation'
end

begin
  require 'securerandom'
  SecureRandom.uuid
rescue LoadError, NoMethodError
  # See http://jira.codehaus.org/browse/JRUBY-6176
  module SecureRandom
    def self.uuid
      ary = self.random_bytes(16).unpack("NnnnnN")
      ary[2] = (ary[2] & 0x0fff) | 0x4000
      ary[3] = (ary[3] & 0x3fff) | 0x8000
      "%08x-%04x-%04x-%04x-%04x%08x" % ary
    end unless respond_to?(:uuid)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
killbill-1.0.8 spec/spec_helper.rb
killbill-1.0.7 spec/spec_helper.rb
killbill-1.0.6 spec/spec_helper.rb
killbill-1.0.5 spec/spec_helper.rb
killbill-1.0.4 spec/spec_helper.rb