require 'spec_helper'

describe 'default recipe on Ubuntu 14.04' do
  let(:chef_run) do
    ChefSpec::ServerRunner.new do |node|
      node.automatic[:lsb][:codename] = 'trusty'
    end.converge('tomcat::default')
  end

  it 'converges successfully' do
    expect { :chef_run }.to_not raise_error
  end
end

require 'spec_helper'

describe 'default recipe on ubuntu 16.04' do
  let(:runner) { ChefSpec::ServerRunner.new(platform: 'ubuntu', version: '16.04') }
  let(:chef_run) { runner.converge('tomcat::default') }

  it 'converges successfully' do
    expect { :chef_run }.to_not raise_error
  end
end

Fix bad platform setting in the spec
Fix bad platform setting in the spec

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