Sha256: 986d2da1f6afe76949db1a046f36e880cb0c0622ace8c26476fda1562fe6a205

Contents?: true

Size: 533 Bytes

Versions: 12

Compression:

Stored size: 533 Bytes

Contents

$:.unshift 'lib'

require 'upwork/api'

$LOG = Upwork::Api::Logger.new

module TestHelper
  def get_client_mock    
    config = Upwork::Api::Config.new({
      'consumer_key'    => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
      'consumer_secret' => 'xxxxxxxxxxxxxxxx',
      'access_token'    => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
      'access_secret'   => 'xxxxxxxxxxxxxxxx',
      'debug'           => false
    })
    
    client = Upwork::Api::Client.new(config)
    client.expects(:send_request).returns(true)
    client
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
upwork-api-1.3.5 test/helper.rb
upwork-api-1.3.4 test/helper.rb
upwork-api-1.3.3 test/helper.rb
upwork-api-1.3.2 test/helper.rb
upwork-api-1.3.1 test/helper.rb
upwork-api-1.3.0 test/helper.rb
upwork-api-1.2.2 test/helper.rb
upwork-api-1.2.1 test/helper.rb
upwork-api-1.2.0 test/helper.rb
upwork-api-1.1.0 test/helper.rb
upwork-api-1.0.1 test/helper.rb
upwork-api-1.0.0 test/helper.rb