Sha256: eb5d5a731a6e10c4f00231f498f37cf85e52817fe19a69750ed1c55e6fc7c200
Contents?: true
Size: 544 Bytes
Versions: 4
Compression:
Stored size: 544 Bytes
Contents
require "spec_helper" describe Lita::Handlers::Enhance::ChefIndexer do include_context 'mocks' include_context 'redis' let(:indexer) { described_class.new(redis, {}) } it 'should be able to create Node from a Chef::Node' do node = indexer.node_from_chef_node(west2_chef_node) expect(node.name).to eq('box01') expect(node.dc).to eq('us-west-2b') expect(node.environment).to eq('_default') expect(node.fqdn).to eq('box01.example.com') expect(node.last_seen_at.to_f).to be_within(5).of(Time.now.to_f) end end
Version data entries
4 entries across 4 versions & 1 rubygems