Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 12da0f6126
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (39 sloc) 0.941 kb
unless ENV['CI']
require 'simplecov'
SimpleCov.start do
add_filter 'test'
end
end
require 'twurl'
require 'minitest/autorun'
require 'rr'
class MiniTest::Unit::TestCase
include RR::Adapters::TestUnit
end
Twurl::RCFile.directory = ENV['TMPDIR']
module Twurl
class Options
class << self
def test_exemplar
options = new
options.username = 'exemplar_user_name'
options.password = 'secret'
options.consumer_key = '123456789'
options.consumer_secret = '987654321'
options.subcommands = []
options
end
end
end
class OAuthClient
class << self
def test_exemplar(overrides = {})
options = Twurl::Options.test_exemplar
overrides.each do |attribute, value|
options.send("#{attribute}=", value)
end
load_new_client_from_options(options)
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.