Sha256: 3fc562fd334c360a97b9d7b2a7f15ccc5cf24f7fbf20ccb4d1b30055cd4fb7c1

Contents?: true

Size: 784 Bytes

Versions: 11

Compression:

Stored size: 784 Bytes

Contents

require 'spec_helper'
require 'json'

describe OmniAuth::Auth0::Telemetry do

  let(:test_class) { Class.new.extend(OmniAuth::Auth0::Telemetry) }

  describe 'telemetry' do

    it 'should have the correct SDK name' do
      expect(test_class.telemetry).to have_key(:name)
      expect(test_class.telemetry[:name]).to eq('omniauth-auth0')
    end

    it 'should have the correct SDK version' do
      expect(test_class.telemetry).to have_key(:version)
      expect(test_class.telemetry[:version]).to eq(OmniAuth::Auth0::VERSION)
    end

    it 'should include the Ruby version' do
      expect(test_class.telemetry).to have_key(:env)
      expect(test_class.telemetry[:env]).to have_key(:ruby)
      expect(test_class.telemetry[:env][:ruby]).to eq(RUBY_VERSION)
    end

  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
omniauth-auth0-3.1.1 spec/omniauth/auth0/telemetry_spec.rb
omniauth-auth0-3.1.0 spec/omniauth/auth0/telemetry_spec.rb
omniauth-auth0-3.0.0 spec/omniauth/auth0/telemetry_spec.rb
omniauth-auth0-2.6.0 spec/omniauth/auth0/telemetry_spec.rb
omniauth-auth0-2.5.0 spec/omniauth/auth0/telemetry_spec.rb
omniauth-auth0-2.4.2 spec/omniauth/auth0/telemetry_spec.rb
omniauth-auth0-2.4.1 spec/omniauth/auth0/telemetry_spec.rb
omniauth-auth0-2.4.0 spec/omniauth/auth0/telemetry_spec.rb
omniauth-auth0-2.3.1 spec/omniauth/auth0/telemetry_spec.rb
omniauth-auth0-2.3.0 spec/omniauth/auth0/telemetry_spec.rb
omniauth-auth0-2.2.0 spec/omniauth/auth0/telemetry_spec.rb