Sha256: 85b3816f4f8f7e6eba3b3ccc81d5c47f9e1dfc287230b4c29a34b7369fd4f580

Contents?: true

Size: 425 Bytes

Versions: 9

Compression:

Stored size: 425 Bytes

Contents

RSpec.describe Lokalise do
  specify '.client' do
    expect(test_client).to be_an_instance_of(Lokalise::Client)
    expect(test_client.token).to eq(ENV['LOKALISE_API_TOKEN'])
  end

  specify '.reset_client!' do
    expect(test_client).to be_an_instance_of(Lokalise::Client)
    Lokalise.reset_client!
    current_client = Lokalise.instance_variable_get '@client'
    expect(current_client).to be_nil
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ruby-lokalise-api-2.4.0 spec/lib/ruby-lokalise-api_spec.rb
ruby-lokalise-api-2.3.0 spec/lib/ruby-lokalise-api_spec.rb
ruby-lokalise-api-2.2.0 spec/lib/ruby-lokalise-api_spec.rb
ruby-lokalise-api-2.1.1 spec/lib/ruby-lokalise-api_spec.rb
ruby-lokalise-api-2.1.0 spec/lib/ruby-lokalise-api_spec.rb
ruby-lokalise-api-2.0.1 spec/lib/ruby-lokalise-api_spec.rb
ruby-lokalise-api-2.0.0 spec/lib/ruby-lokalise-api_spec.rb
ruby-lokalise-api-1.1.0 spec/lib/ruby-lokalise-api_spec.rb
ruby-lokalise-api-1.0.1 spec/lib/ruby-lokalise-api_spec.rb