Sha256: 0be5ce1b6f68df04ba9d95a25db115f98a13a244f9d7efa77c4e38c84381173d
Contents?: true
Size: 415 Bytes
Versions: 3
Compression:
Stored size: 415 Bytes
Contents
require 'spec_helper' describe 'FacterDB' do describe '#get_os_facts' do context 'without parameters' do subject { FacterDB.get_os_facts() } it "Should return an array of hashes with at least 1 element" do expect(subject.class).to eq Array expect(subject.size).not_to eq(0) expect(subject.select { |facts| facts.class != Hash }.size).to eq(0) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facterdb-0.2.1 | spec/facterdb_spec.rb |
facterdb-0.2.0 | spec/facterdb_spec.rb |
facterdb-0.1.0 | spec/facterdb_spec.rb |