Sha256: e89a315926803bbec15bda0caa75f4e298f583350792611da9684a337d922702

Contents?: true

Size: 681 Bytes

Versions: 37

Compression:

Stored size: 681 Bytes

Contents

require 'spec_helper'

describe Twilio::Util::ClientConfig do
  Twilio::Util::ClientConfig::DEFAULTS.each do |attribute, value|
    it "sets an attribute with a default value" do
      config = Twilio::Util::ClientConfig.new
      expect(config.send(attribute)).to eq(value)
    end

    it "can update the value for the attribute" do
      config = Twilio::Util::ClientConfig.new
      config.send("#{attribute}=", "blah")
      expect(config.send(attribute)).to eq("blah")
    end

    it "can set the value from a hash in the initializer" do
      config = Twilio::Util::ClientConfig.new(attribute => 'blah')
      expect(config.send(attribute)).to eq("blah")
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
twilio-ruby-4.13.0 spec/util/client_config_spec.rb
twilio-ruby-4.12.1 spec/util/client_config_spec.rb
twilio-ruby-5.0.0.rc10 spec/util/client_config_spec.rb
twilio-ruby-5.0.0.rc9 spec/util/client_config_spec.rb
twilio-ruby-5.0.0.rc8 spec/util/client_config_spec.rb
twilio-ruby-5.0.0.rc7 spec/util/client_config_spec.rb
twilio-ruby-5.0.0.rc5 spec/util/client_config_spec.rb
twilio-ruby-5.0.0.rc4 spec/util/client_config_spec.rb
twilio-ruby-5.0.0.rc3 spec/util/client_config_spec.rb
twilio-ruby-4.11.1 spec/util/client_config_spec.rb
twilio-ruby-4.11.0 spec/util/client_config_spec.rb
twilio-ruby-5.0.0.rc2 spec/util/client_config_spec.rb
twilio-ruby-4.10.0.edge spec/util/client_config_spec.rb
twilio-ruby-4.10.0 spec/util/client_config_spec.rb
twilio-ruby-4.9.1 spec/util/client_config_spec.rb
twilio-ruby-4.9.1.edge spec/util/client_config_spec.rb
twilio-ruby-4.9.0 spec/util/client_config_spec.rb
twilio-ruby-4.9.0.edge spec/util/client_config_spec.rb
twilio-ruby-4.8.0 spec/util/client_config_spec.rb
twilio-ruby-4.7.0 spec/util/client_config_spec.rb