Sha256: a553ddef9e016c721e29c922f92fc3da697ee1159b9c8a0bddcadb64589a8b90

Contents?: true

Size: 505 Bytes

Versions: 4

Compression:

Stored size: 505 Bytes

Contents

require 'woodhouse'
require File.dirname(File.expand_path(__FILE__)) + '/shared_contexts'

describe Woodhouse::NodeConfiguration do
  it_should_behave_like "common"

  subject { Woodhouse::NodeConfiguration.new }

  describe "server_info" do
    
    it "should default to an empty hash" do
      subject.server_info.should == {}
    end

    it "should convert keys into symbols" do
      subject.server_info = { "lana" => "LANAAAA" }
      subject.server_info.should have_key(:lana)
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
woodhouse-1.0.0 spec/node_configuration_spec.rb
woodhouse-0.1.5 spec/node_configuration_spec.rb
woodhouse-0.1.2 spec/node_configuration_spec.rb
woodhouse-0.1.1 spec/node_configuration_spec.rb