Sha256: 42f0aef44e6b0eb7fbdfd754d784a552cc5fa70d36062aa6d09c9eb3756507a8

Contents?: true

Size: 333 Bytes

Versions: 1

Compression:

Stored size: 333 Bytes

Contents

require_relative '../helper.rb'

describe Later do
  let(:redis) { Redis.new db: 15 }
  let(:key) { Nest.new 'Events', redis }

  describe '.[]' do
    it 'returns a schedule with the given key' do
      schedule = Later[key]

      assert_instance_of Later::Schedule, schedule
      assert_equal key, schedule.key
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
later-0.2.0 test/specs/later.rb