Sha256: b58abd0b1e5abd203a3ff6236cb40ede29aa064ecb106673f3713da8240f3e0b

Contents?: true

Size: 572 Bytes

Versions: 7

Compression:

Stored size: 572 Bytes

Contents

require 'rspec'
require 'whois'

unless defined?(SPEC_ROOT)
  SPEC_ROOT = File.expand_path("../", __FILE__)
end

# The fixtures are UTF-8 encoded.
# Make sure Ruby uses the proper encoding.
if RUBY_VERSION < '1.9'
  $KCODE = 'u'
else
  Encoding.default_external = Encoding::UTF_8
  Encoding.default_internal = Encoding::UTF_8
end

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[File.join(SPEC_ROOT, "support/**/*.rb")].each { |f| require f }

RSpec.configure do |config|
  config.mock_with :mocha
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
whois-2.6.3 spec/spec_helper.rb
whois-2.6.2 spec/spec_helper.rb
whois-2.6.1 spec/spec_helper.rb
whois-2.6.0 spec/spec_helper.rb
whois-2.5.1 spec/spec_helper.rb
whois-2.5.0 spec/spec_helper.rb
whois-2.4.0 spec/spec_helper.rb