Sha256: 838c343f087c2137a3e60242673fc0e36e49ff45c3db500a6b28c0b089c31cef
Contents?: true
Size: 420 Bytes
Versions: 6
Compression:
Stored size: 420 Bytes
Contents
require "spec_helper" describe "Command Worker" do describe "converting workers hash to json" do before do @workers = {} @workers["foo"] = Invoker::CommandWorker.new("foo", 89, 1023, "red") @workers["bar"] = Invoker::CommandWorker.new("bar", 99, 1024, "blue") end it "should print json" do @workers.values.map {|worker| worker.to_h }.to_json.should.not.be.empty end end end
Version data entries
6 entries across 6 versions & 1 rubygems