Here is the code I\'m testing with RSpec3.
def call Kafka::KafkaClient::Client.produce(formatted_data, topic_name) EventPublisher::LegacyOrder.call(@usub, @at