Sha256: 79edfbe076861e5959bd923940ef88e439f9590b71e4b998d9852c2edaa6ff1d

Contents?: true

Size: 424 Bytes

Versions: 2

Compression:

Stored size: 424 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
      expect(@workers.values.map {|worker| worker.to_h }.to_json).not_to be_empty
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
invoker-1.0.4 spec/invoker/command_worker_spec.rb
invoker-1.0.3 spec/invoker/command_worker_spec.rb