Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 20 lines (15 sloc) 0.52 kb
48649ac Simone Carletti Use absolute paths.
authored
1 require 'rspec'
2 require 'whois'
d3842b6 Simone Carletti Install RSpec 2
authored
3
5b012c3 Simone Carletti klass returns the currently described class.
authored
4 unless defined?(SPEC_ROOT)
fdad031 Simone Carletti Add #fixtures helper and simplify #load_part.
authored
5 SPEC_ROOT = File.expand_path("../", __FILE__)
5b012c3 Simone Carletti klass returns the currently described class.
authored
6 end
7
77a8d4c Simone Carletti Make sure Ruby uses the right encoding and doesn't rely on ENV settings.
authored
8 # The fixtures are UTF-8 encoded.
9 # Make sure Ruby uses the proper encoding.
3c3d4e8 Simone Carletti Drop support for Ruby 1.8
authored
10 Encoding.default_external = Encoding::UTF_8
11 Encoding.default_internal = Encoding::UTF_8
77a8d4c Simone Carletti Make sure Ruby uses the right encoding and doesn't rely on ENV settings.
authored
12
91e7919 Simone Carletti Reorganize RSpec helpers.
authored
13 # Requires supporting ruby files with custom matchers and macros, etc,
14 # in spec/support/ and its subdirectories.
15 Dir[File.join(SPEC_ROOT, "support/**/*.rb")].each { |f| require f }
082fcd4 Simone Carletti client_test.rb => client_spec.rb
authored
16
d3842b6 Simone Carletti Install RSpec 2
authored
17 RSpec.configure do |config|
afd3cd7 Simone Carletti whois_test.rb => whois_rspec.rb
authored
18 config.mock_with :mocha
d3842b6 Simone Carletti Install RSpec 2
authored
19 end
Something went wrong with that request. Please try again.