spec/aptible/api/operation_spec.rb in aptible-api-0.9.14 vs spec/aptible/api/operation_spec.rb in aptible-api-0.9.15

- old
+ new

@@ -64,11 +64,15 @@ expect(connection).to be(ssh_portal_connection) if ssh_pty expect(cmd).not_to include('-T') else - expect(cmd.last).to eq('-T') + expect(cmd).to include('-T') end + + identities_only = 'IdentitiesOnly=yes' + expect(cmd).to include(identities_only) + expect(cmd[cmd.index(identities_only) - 1]).to eq('-o') has_yielded = true end expect(has_yielded).to be_truthy