Sha256: a3120cf4b6496f0d3607307fbeb46d1c3dea2f923ea5ae3eaaba83791894bd96

Contents?: true

Size: 820 Bytes

Versions: 15

Compression:

Stored size: 820 Bytes

Contents

require 'bundler'
require 'zendesk'

require 'logger'
require 'ostruct'

require 'rspec'

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

require 'active_record'
ActiveRecord::Base.establish_connection(
    :adapter => 'sqlite3',
    :database => 'test.db'
)
# Create the schema
require File.expand_path(File.dirname(__FILE__) + '../../db/schema.rb')

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

15 entries across 15 versions & 1 rubygems

Version Path
killbill-zendesk-3.0.0 spec/spec_helper.rb
killbill-zendesk-2.0.0 spec/spec_helper.rb
killbill-zendesk-1.3.0 spec/spec_helper.rb
killbill-zendesk-1.2.4 spec/spec_helper.rb
killbill-zendesk-1.2.3 spec/spec_helper.rb
killbill-zendesk-1.2.2 spec/spec_helper.rb
killbill-zendesk-1.2.1 spec/spec_helper.rb
killbill-zendesk-1.2.0 spec/spec_helper.rb
killbill-zendesk-1.1.0 spec/spec_helper.rb
killbill-zendesk-1.0.1 spec/spec_helper.rb
killbill-zendesk-1.0.0 spec/spec_helper.rb
killbill-zendesk-0.5.0 spec/spec_helper.rb
killbill-zendesk-0.4.0 spec/spec_helper.rb
killbill-zendesk-0.3.0 spec/spec_helper.rb
killbill-zendesk-0.2.0 spec/spec_helper.rb