File: test_windows_spec.rb

package info (click to toggle)
ruby-rspec-puppet 2.9.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,416 kB
  • sloc: ruby: 6,661; makefile: 6
file content (12 lines) | stat: -rw-r--r-- 293 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
require 'spec_helper'

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 { should compile.with_all_deps }
  it { should contain_file(symlink_path) }
end