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.8.3.edge spec/util/client_config_spec.rb
twilio-ruby-4.8.2.edge spec/util/client_config_spec.rb
twilio-ruby-4.8.1.edge spec/util/client_config_spec.rb
twilio-ruby-4.8.0.edge spec/util/client_config_spec.rb
twilio-ruby-4.6.2 spec/util/client_config_spec.rb
twilio-ruby-4.6.1 spec/util/client_config_spec.rb
twilio-ruby-4.6.0 spec/util/client_config_spec.rb
twilio-ruby-4.7.0.edge spec/util/client_config_spec.rb
twilio-ruby-4.6.0.edge spec/util/client_config_spec.rb
twilio-ruby-4.5.0 spec/util/client_config_spec.rb
twilio-ruby-4.4.0 spec/util/client_config_spec.rb
twilio-ruby-4.3.0 spec/util/client_config_spec.rb
twilio-ruby-4.2.1 spec/util/client_config_spec.rb
twilio-ruby-4.2.0 spec/util/client_config_spec.rb
twilio-ruby-4.1.0 spec/util/client_config_spec.rb
twilio-ruby-4.0.1 spec/util/client_config_spec.rb
twilio-ruby-4.0.0 spec/util/client_config_spec.rb