require 'test_helper'

describe 'using PuppetModule::Pkg::Tasks in a Rakefile' do
  around do |t|
    do_into_tmp_module('testmod', t)
  end

  let(:fixture_module) { File.join(fixture_dir, 'testmod') }
  let(:task_list) { `rake -T` }

  [:install, :clean, :deb, :rpm].each do |task|
    it "defines a `#{task}` task" do
      task_list.must_match /^rake #{task}/
    end
  end
end

require 'test_helper'

describe 'using PuppetModule::Pkg::Tasks in a Rakefile' do
  around do |t|
    do_into_tmp_module('testmod', t)
  end

  let(:task_list) { `rake -T` }

  [:install, :clean, :deb, :rpm].each do |task|
    it "defines a `#{task}` task" do
      task_list.must_match /^rake #{task}/
    end
  end
end

Fix shadowing bug in the test suite.
Fix shadowing bug in the test suite.

A small piece has been left out from the last refactoring, so the
`fixture_module` function was actually shadowed by a variable; this broken all
the tests for the amended file.
