mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 13:28:42 -05:00
Cleanup vmfloaty library and command line functions
This commit is contained in:
parent
c1689da3c4
commit
c6cf86669a
5 changed files with 87 additions and 67 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue