Sha256: ea24d71b727efc9f795b165cbf8a1676e9c271a102c07716f5cc728d796cab6f

Contents?: true

Size: 590 Bytes

Versions: 2

Compression:

Stored size: 590 Bytes

Contents

require 'spec_helper'
require 'win32/taskscheduler'
require 'win32/taskscheduler/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

2 entries across 2 versions & 1 rubygems

Version Path
win32-taskscheduler-2.0.1 spec/unit/win32/taskscheduler/constants_spec.rb
win32-taskscheduler-2.0.0 spec/unit/win32/taskscheduler/constants_spec.rb