From 61501c14e211033f4250292ad99f284c2fdb99ad Mon Sep 17 00:00:00 2001 From: jordanbreen28 Date: Mon, 2 Oct 2023 10:38:17 +0100 Subject: [PATCH] (CAT-1226) - Remove compatibility Ruby 1.x --- Rakefile | 2 +- spec/classes/test_windows_spec.rb | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Rakefile b/Rakefile index 5c4813194..22d4fd938 100644 --- a/Rakefile +++ b/Rakefile @@ -8,7 +8,7 @@ require 'puppet' task :default => :test task :spec => :test -require 'rspec-puppet/tasks/release_test' unless RUBY_VERSION.start_with?('1') +require 'rspec-puppet/tasks/release_test' fixtures_dir = File.expand_path(File.join(__FILE__, '..', 'spec', 'fixtures', 'modules')) fixtures = { diff --git a/spec/classes/test_windows_spec.rb b/spec/classes/test_windows_spec.rb index 48b37e177..04e500b99 100644 --- a/spec/classes/test_windows_spec.rb +++ b/spec/classes/test_windows_spec.rb @@ -5,10 +5,6 @@ describe 'test::windows' do let(:facts) { { operatingsystem: 'windows' } } - let(:symlink_path) do - RUBY_VERSION == '1.8.7' ? 'C:\\\\something.txt' : 'C:\\something.txt' - end - it { is_expected.to compile.with_all_deps } - it { is_expected.to contain_file(symlink_path) } + it { is_expected.to contain_file('C:\\something.txt') } end