Skip to content

Commit

Permalink
(CAT-1226) - Remove compatibility Ruby 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbreen28 committed Oct 2, 2023
1 parent a853b96 commit 61501c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
6 changes: 1 addition & 5 deletions spec/classes/test_windows_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 61501c1

Please sign in to comment.