Sha256: f81bee1ea0a5adb53cf527717944b4b43f261caa201bf400d4c8efdb7b473914

Contents?: true

Size: 450 Bytes

Versions: 1

Compression:

Stored size: 450 Bytes

Contents

require_relative '../spec_helper'
require_relative '../../lib/kamerling/dispatch'

module Kamerling
  describe Dispatch do
    describe '#dispatched_at' do
      it 'defaults to the current time' do
        assert Dispatch.new.dispatched_at.between?(Time.now - 1, Time.now + 1)
      end

      it 'defaults to the time of Dispatch’s creation' do
        Dispatch.new.dispatched_at.wont_equal Dispatch.new.dispatched_at
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kamerling-0.0.3 spec/kamerling/dispatch_spec.rb