Sha256: 5b04e7187b88c6474504c6347b99071ba5eba8cfa6f376aeed935ec9769601e3

Contents?: true

Size: 393 Bytes

Versions: 1

Compression:

Stored size: 393 Bytes

Contents

# encoding: utf-8

require 'minitest_helper'
require 'say_when/triggers/instance_strategy'

describe SayWhen::Triggers::InstanceStrategy do
  it 'should be constucted with next_at_method option' do
    job = Minitest::Mock.new
    job.expect(:scheduled, true)
    t = SayWhen::Triggers::InstanceStrategy.new(next_at_method: 'test_next_at_method', job: job)
    expect(t).wont_be_nil
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
say_when-2.2.2 test/say_when/triggers/instance_strategy_test.rb