Sha256: 18d39f56e2bb766cb6ef812c7a516da61a917ead69f08b13a38e0ca9a98821ea

Contents?: true

Size: 498 Bytes

Versions: 6

Compression:

Stored size: 498 Bytes

Contents

require 'spec_helper'

module Omnibus
  describe Ohai do
    context 'using dot notation' do
      it 'does not raise an exception' do
        expect { Ohai.kernel }.to_not raise_error
        expect { Ohai.kernel.machine }.to_not raise_error
      end
    end

    context 'using hash notation' do
      it 'allows fetching values by hash notation' do
        expect { Ohai['kernel'] }.to_not raise_error
        expect { Ohai['kernel']['machine'] }.to_not raise_error
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
omnibus-3.2.2 spec/unit/ohai_spec.rb
omnibus-3.2.1 spec/unit/ohai_spec.rb
omnibus-3.2.0 spec/unit/ohai_spec.rb
omnibus-3.2.0.rc.3 spec/unit/ohai_spec.rb
omnibus-3.2.0.rc.2 spec/unit/ohai_spec.rb
omnibus-3.2.0.rc.1 spec/unit/ohai_spec.rb