require 'spec_helper'

describe 'mysql2_chef_gem_test::default' do
  let(:chef_run) do
    ChefSpec::ServerRunner.new do |node|
      node.default['mysql2_chef_gem']['resource_name'] = 'default'
    end.converge('mysql2_chef_gem_test::default')
  end

  context 'when using default parameters' do
    it 'creates mysql2_chef_gem[default]' do
      expect(chef_run).to install_mysql2_chef_gem('default')
    end
  end
end

require 'spec_helper'

describe 'mysql2_chef_gem_test::default' do
  let(:chef_run) do
    ChefSpec::ServerRunner.new(platform: 'ubuntu', version: '16.04') do |node|
      node.default['mysql2_chef_gem']['provider'] = 'mysql'
    end.converge('mysql2_chef_gem_test::default')
  end

  context 'when using default parameters' do
    it 'creates mysql2_chef_gem[default]' do
      expect(chef_run).to install_mysql2_chef_gem('default')
    end
  end
end

Update the spec for the new test attribute
Update the spec for the new test attribute

This spec is 100% useless, but it passes now.

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