Sha256: 7248babbaffed136ff0946ede5562208bbb57a89f1c48edf4dc6191dce618fe0
Contents?: true
Size: 430 Bytes
Versions: 3
Compression:
Stored size: 430 Bytes
Contents
require 'spec_helper' describe KJess::Request::Set do it "converts to the protocol" do s = KJess::Request::Set.new( :queue_name => 'test', :data => 'a job' ) s.to_protocol.must_equal "SET test 0 0 5\r\na job\r\n" end it "sets the expriation time" do s = KJess::Request::Set.new( :queue_name => 'test', :expiration => 42, :data => 'a job' ) s.to_protocol.must_equal "SET test 0 42 5\r\na job\r\n" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kjess-1.2.0 | spec/request/set_spec.rb |
kjess-1.1.0 | spec/request/set_spec.rb |
kjess-1.0.0 | spec/request/set_spec.rb |