Sha256: 9e58ae74a03bc27a9e68d3001bb2d0e726bcb81bed5455585f6babc4635b4a22

Contents?: true

Size: 537 Bytes

Versions: 1

Compression:

Stored size: 537 Bytes

Contents

require "spec_helper"

describe "Invoker Power configuration" do
  describe "#create" do
    it "should create a config file given a hash" do
      config = Invoker::Power::Config.create(
        dns_port: 1200, http_port: 1201, ipfw_rule_number: 010
      )
      expect(File.exist?(Invoker::Power::Config.config_file)).to be_true

      config = Invoker::Power::Config.load_config()
      expect(config.dns_port).to eq(1200)
      expect(config.http_port).to eq(1201)
      expect(config.ipfw_rule_number).to eq(010)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
invoker-1.2.0.pre2 spec/invoker/power/config_spec.rb