require 'spec_helper'

describe 'aws::ec2_hints' do
  let(:chef_run) { ChefSpec::SoloRunner.converge(described_recipe) }

  it 'creates the ohai hint' do
    expect(chef_run).to create_ohai_hint('ec2').at_compile_time
  end
end

require 'spec_helper'

describe 'aws::ec2_hints' do
  let(:chef_run) { ChefSpec::SoloRunner.new(platform: 'ubuntu', version: '16.04').converge(described_recipe) }

  it 'creates the ohai hint' do
    expect(chef_run).to create_ohai_hint('ec2').at_compile_time
  end
end

Resolve deprecation warning in the chefspecs
Resolve deprecation warning in the chefspecs

Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
