Sha256: db3bddf7fb8c70fb1228ef6c4d102a658e0346f733ac1179a94cef37321b19db
Contents?: true
Size: 856 Bytes
Versions: 3
Compression:
Stored size: 856 Bytes
Contents
$:.unshift 'lib' require 'upwork/api/config' require 'test/unit' require 'mocha/test_unit' class ConfigTest < Test::Unit::TestCase def test_config_initialization config = Upwork::Api::Config.new({ 'consumer_key' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'consumer_secret' => 'xxxxxxxxxxxxxxxx', 'access_token' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'access_secret' => 'xxxxxxxxxxxxxxxx', 'signature_method'=> 'sig', 'debug' => false }) assert_equal 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',config.consumer_key assert_equal 'xxxxxxxxxxxxxxxx',config.consumer_secret assert_equal 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',config.access_token assert_equal 'xxxxxxxxxxxxxxxx',config.access_secret assert_equal 'sig',config.signature_method assert_equal false,config.debug end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
upwork-api-1.1.0 | test/test_config.rb |
upwork-api-1.0.1 | test/test_config.rb |
upwork-api-1.0.0 | test/test_config.rb |