spec/kamerling/receiver_spec.rb in kamerling-0.0.1 vs spec/kamerling/receiver_spec.rb in kamerling-0.0.2

- old
+ new

@@ -8,15 +8,16 @@ repos = fake :repos, as: :class stub(repos).<<(any_args) { repos } stub(repos).[](Client) { fake :repo, :[] => client } stub(repos).[](Task) { fake :repo, :[] => task } Receiver.new.receive addr: addr, client_uuid: client.uuid, data: 'data', - repos: repos, task_uuid: task.uuid + repos: repos, task_uuid: task.uuid + result = Result.new addr: addr, client: client, data: 'data', task: task, + uuid: anything client.must_have_received :busy=, [false] task.must_have_received :done=, [true] - repos.must_have_received :<<, [client] - repos.must_have_received :<<, [task] - repos.must_have_received :<<, [Result.new(addr: addr, client: client, - data: 'data', task: task, uuid: anything)] + repos.must_have_received :<<, [client] + repos.must_have_received :<<, [task] + repos.must_have_received :<<, [result] end end end end