Sha256: 137715e553bc4a4f0b28b18e16c74972a00f77dcb68009718b46d81605826ebb

Contents?: true

Size: 551 Bytes

Versions: 16

Compression:

Stored size: 551 Bytes

Contents

require 'spec_helper'

RSpec.describe OptimizelyServerSide::Configuration do

  subject { OptimizelyServerSide::Configuration.new }

  describe '#config_endpoint' do

    it 'has a default value of http://foo.com' do
      expect(subject.config_endpoint).to eq('http://foo.com')
    end

  end

  describe '#user_attributes' do

    it 'defaults to {}' do
      expect(subject.user_attributes).to eq({})
    end
  end


  describe '#event_dispatcher' do

    it 'defaults to nil' do
      expect(subject.event_dispatcher).to be_nil
    end

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
optimizely_server_side-2.0.1 spec/optimizely_server_side/configuration_spec.rb
optimizely_server_side-2.0.0 spec/optimizely_server_side/configuration_spec.rb
optimizely_server_side-1.2.2 spec/optimizely_server_side/configuration_spec.rb
optimizely_server_side-1.2.1 spec/optimizely_server_side/configuration_spec.rb
optimizely_server_side-1.2.0 spec/optimizely_server_side/configuration_spec.rb
optimizely_server_side-1.0.1 spec/optimizely_server_side/configuration_spec.rb
optimizely_server_side-1.0.0 spec/optimizely_server_side/configuration_spec.rb
optimizely_server_side-0.0.18 spec/optimizely_server_side/configuration_spec.rb
optimizely_server_side-0.0.17 spec/optimizely_server_side/configuration_spec.rb
optimizely_server_side-0.0.16 spec/optimizely_server_side/configuration_spec.rb
optimizely_server_side-0.0.15 spec/optimizely_server_side/configuration_spec.rb
optimizely_server_side-0.0.14 spec/optimizely_server_side/configuration_spec.rb
optimizely_server_side-0.0.13 spec/optimizely_server_side/configuration_spec.rb
optimizely_server_side-0.0.12 spec/optimizely_server_side/configuration_spec.rb
optimizely_server_side-0.0.11 spec/optimizely_server_side/configuration_spec.rb
optimizely_server_side-0.0.10 spec/optimizely_server_side/configuration_spec.rb