Sha256: 07de2767d212b546bfc1bb91e7983aea325ad91939fdb27e8782e996d736b649

Contents?: true

Size: 560 Bytes

Versions: 7

Compression:

Stored size: 560 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'
require 'hipsterhash'
require 'httmultiparty'
require 'smartling/client'

describe Smartling::Auth do
  describe 'authenticate (first time)' do
    it 'POSTs to the authentication endpoint', :vcr do
      client = Smartling::Client.new
      client.authenticate!
    end
  end

  describe 'authenticate (twice)' do
    it 'POSTs to the authentication endpoint', :vcr do
      client = Smartling::Client.new
      client.authenticate!
      client.refresh_token!
      client.authenticate!
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
smartring-0.0.7 test/smartling/auth_test.rb
smartring-0.0.6 test/smartling/auth_test.rb
smartring-0.0.5 test/smartling/auth_test.rb
smartring-0.0.4 test/smartling/auth_test.rb
smartring-0.0.3 test/smartling/auth_test.rb
smartring-0.0.2 test/smartling/auth_test.rb
smartring-0.0.1 test/smartling/auth_test.rb