Skip to content

Commit 61501c1

Browse files
committed
(CAT-1226) - Remove compatibility Ruby 1.x
1 parent a853b96 commit 61501c1

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require 'puppet'
88
task :default => :test
99
task :spec => :test
1010

11-
require 'rspec-puppet/tasks/release_test' unless RUBY_VERSION.start_with?('1')
11+
require 'rspec-puppet/tasks/release_test'
1212

1313
fixtures_dir = File.expand_path(File.join(__FILE__, '..', 'spec', 'fixtures', 'modules'))
1414
fixtures = {

spec/classes/test_windows_spec.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
describe 'test::windows' do
66
let(:facts) { { operatingsystem: 'windows' } }
77

8-
let(:symlink_path) do
9-
RUBY_VERSION == '1.8.7' ? 'C:\\\\something.txt' : 'C:\\something.txt'
10-
end
11-
128
it { is_expected.to compile.with_all_deps }
13-
it { is_expected.to contain_file(symlink_path) }
9+
it { is_expected.to contain_file('C:\\something.txt') }
1410
end

0 commit comments

Comments
 (0)