Sha256: 21fa7d7abdc6658dcd98ae3964cbc0eebaff5fcd4da14261968c704c2c22e3d8

Contents?: true

Size: 854 Bytes

Versions: 10

Compression:

Stored size: 854 Bytes

Contents

# encoding: utf-8
#
# This file is part of the akaer gem. Copyright (C) 2012 and above Shogun <shogun_panda@me.com>.
# Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
#

require "spec_helper"

describe Akaer::Configuration do
  describe "#initialize" do
    it "sets default arguments and rules" do
      config = Akaer::Configuration.new
      expect(config.interface).to eq("lo0")
      expect(config.addresses).to eq([])
      expect(config.start_address).to eq("10.0.0.1")
      expect(config.aliases).to eq(5)
      expect(config.add_command).to eq("sudo ifconfig @INTERFACE@ alias @ALIAS@")
      expect(config.remove_command).to eq("sudo ifconfig @INTERFACE@ -alias @ALIAS@")
      expect(config.log_file).to eq($stdout)
      expect(config.log_level).to eq(Logger::INFO)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
akaer-1.5.8 spec/akaer/configuration_spec.rb
akaer-1.5.7 spec/akaer/configuration_spec.rb
akaer-1.5.6 spec/akaer/configuration_spec.rb
akaer-1.5.5 spec/akaer/configuration_spec.rb
akaer-1.5.4 spec/akaer/configuration_spec.rb
akaer-1.5.3 spec/akaer/configuration_spec.rb
akaer-1.5.2 spec/akaer/configuration_spec.rb
akaer-1.5.1 spec/akaer/configuration_spec.rb
akaer-1.5.0 spec/akaer/configuration_spec.rb
akaer-1.0.0 spec/akaer/configuration_spec.rb