spec/invoker/ipc/message_spec.rb in invoker-1.3.2 vs spec/invoker/ipc/message_spec.rb in invoker-1.4.0

- old
+ new

@@ -17,12 +17,14 @@ end context "for nested messages" do let(:process_array) do [ - { shell_command: 'foo', process_name: 'foo', dir: '/tmp', pid: 100 }, - { shell_command: 'bar', process_name: 'bar', dir: '/tmp', pid: 200 } + { shell_command: 'foo', process_name: 'foo', dir: '/tmp', pid: 100, + port: 9000 }, + { shell_command: 'bar', process_name: 'bar', dir: '/tmp', pid: 200, + port: 9001 } ] end let(:message) { MM::ListResponse.new(processes: process_array) } @@ -31,11 +33,13 @@ expect(message).to eql m2 end it "should report not equal for different objects" do another_process_array = [ - { shell_command: 'baz', process_name: 'foo', dir: '/tmp', pid: 100 }, - { shell_command: 'bar', process_name: 'bar', dir: '/tmp', pid: 200 } + { shell_command: 'baz', process_name: 'foo', dir: '/tmp', pid: 100, + port: 9000 }, + { shell_command: 'bar', process_name: 'bar', dir: '/tmp', pid: 200, + port: 9001 } ] m2 = MM::ListResponse.new(processes: another_process_array) expect(message).to_not eql m2 end