Sha256: 9b74eeecbea234be5a336608b7ca5d8b8161c31726dd2bcdd29a8968ecd2caec

Contents?: true

Size: 584 Bytes

Versions: 3

Compression:

Stored size: 584 Bytes

Contents

require 'spec_helper'
require 'win32/taskscheduler'
require 'win32/windows/constants'

RSpec.describe Win32::TaskScheduler, :windows_only do
  describe 'Ensuring trigger constants' do
    subject(:ts) { Win32::TaskScheduler }
    describe 'to handle scheduled tasks' do
      [:ONCE, :DAILY, :WEEKLY, :MONTHLYDATE, :MONTHLYDOW].each do |const|
        it { should be_const_defined(const) }
      end
    end

    describe 'to handle other types' do
      [:AT_LOGON, :AT_SYSTEMSTART, :ON_IDLE].each do |const|
        it { should be_const_defined(const) }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
win32-taskscheduler-1.0.12 spec/unit/win32/windows/constants_spec.rb
win32-taskscheduler-1.0.10 spec/unit/win32/windows/constants_spec.rb
win32-taskscheduler-1.0.9 spec/unit/win32/windows/constants_spec.rb