Sha256: f25de1dd251014ad913ce5a4491e9dac66650d9ee84e2b049975dc644a6c9db4

Contents?: true

Size: 462 Bytes

Versions: 1

Compression:

Stored size: 462 Bytes

Contents

$:.unshift File.join(File.dirname(__FILE__), '..', '..', '..', 'lib', 'buildmaster')

require 'spec'
require 'stringio'
require 'common/properties'

module BuildMaster::Common

  describe Properties do
    it 'parse io into hash' do
      content = <<CONTENT
one : 1
two : 2
three : 3
    
CONTENT
      hash = Properties.parse_io(StringIO.new(content))
      hash.should have_key('one')
      hash['one'].should == '1'
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
BuildMaster-1.1.9 test/buildmaster/common/tc_properties.rb