Sha256: e7d05a65e9f42edd1d0cf95c6b4919656821b46dc3ac8436d6984e81c30317e6
Contents?: true
Size: 973 Bytes
Versions: 5
Compression:
Stored size: 973 Bytes
Contents
require 'simplecov' require 'coveralls' SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] SimpleCov.start require 'twurl' require 'minitest/autorun' require 'rr' 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
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
twurl-0.9.2 | test/test_helper.rb |
twurl-0.9.1 | test/test_helper.rb |
twurl-0.9.0 | test/test_helper.rb |
twurl-0.8.3 | test/test_helper.rb |
twurl-0.8.2 | test/test_helper.rb |