Cleanup vmfloaty library and command line functions

This commit is contained in:
Brian Cain 2015-11-15 14:24:24 -08:00
parent c1689da3c4
commit c6cf86669a
5 changed files with 87 additions and 67 deletions

View file

@ -1,8 +1,8 @@
require 'spec_helper'
require 'json'
require_relative '../../lib/vmfloaty/format'
require_relative '../../lib/vmfloaty/utils'
describe Pooler do
describe Utils do
describe "#get_hosts" do
before :each do
@ -12,7 +12,7 @@ describe Pooler do
it "formats a hostname hash into os, hostnames, and domain name" do
expect(Format.get_hosts(JSON.parse(@hostname_hash))).to eq @format_hash
expect(Utils.format_hosts(JSON.parse(@hostname_hash))).to eq @format_hash
end
end
end