Sha256: 512c7bb7cac334f62b16f6fef97129dbf144518c1c6f687a77ddb6e2d841adf1

Contents?: true

Size: 355 Bytes

Versions: 2

Compression:

Stored size: 355 Bytes

Contents

require 'bluth'
require 'bluth/test_helpers'


## Can create a Worker
@worker = Bluth::Worker.new 'host', 'user', 'wid'
@worker.index
#=> "host:user:wid"

## Worker has a redis key
@worker.rediskey
#=> 'worker:host:user:wid:object'

## Worker counts success
@worker.success!
@worker.success!
@worker.success.to_i
#=> 2


if @worker
  @worker.destroy!
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bluth-0.6.1 try/16_worker_try.rb
bluth-0.6.0 try/16_worker_try.rb