spec/puppet-check/tasks_spec.rb in puppet-check-2.2.0 vs spec/puppet-check/tasks_spec.rb in puppet-check-2.2.1
- old
+ new
@@ -8,11 +8,11 @@
File.delete("#{fixtures_dir}/spec/spec_helper.rb")
%w[manifests modules].each { |dir| FileUtils.rm_r("#{fixtures_dir}/spec/fixtures/#{dir}") }
end
context 'puppetcheck:spec' do
- let(:spec_tasks) { Rake::Task['puppetcheck:spec'.to_sym].invoke }
+ let(:spec_tasks) { Rake::Task[:'puppetcheck:spec'].invoke }
it 'executes RSpec and RSpec-Puppet checks in the expected manner' do
Dir.chdir(fixtures_dir)
# rspec task executed
@@ -21,26 +21,22 @@
expect { spec_tasks }.not_to raise_exception
end
end
context 'puppetcheck:beaker' do
- let(:beaker_task) { Rake::Task['puppetcheck:beaker'.to_sym].invoke }
+ let(:beaker_task) { Rake::Task[:'puppetcheck:beaker'].invoke }
it 'verifies the Beaker task exists' do
- Dir.chdir(fixtures_dir)
-
# beaker task executed
expect { beaker_task }.to output("Beaker is not installed. The Beaker tasks will not be available.\n").to_stdout
end
end
context 'puppetcheck:kitchen' do
- let(:kitchen_task) { Rake::Task['puppetcheck:kitchen'.to_sym].invoke }
+ let(:kitchen_task) { Rake::Task[:'puppetcheck:kitchen'].invoke }
it 'verifies the Kitchen task exists' do
- Dir.chdir(fixtures_dir)
-
- # beaker task executed
+ # kitchen task executed
expect { kitchen_task }.to output("Test Kitchen is not installed. The Kitchen tasks will not be available.\n").to_stdout
end
end
end