spec/async/slack_spec.rb in async-slack-0.2.1 vs spec/async/slack_spec.rb in async-slack-0.3.0

- old
+ new

@@ -27,16 +27,16 @@ Async::Slack.connect(token: token) do |client| 5.times do message = client.chat.send_message(channel: channel, text: "The time is #{Time.now}") message.value = nil end - end + end.wait end it "can search for messages" do Async::Slack.connect(token: token) do |client| messages = client.search.messages(query: "Hello World").to_a expect(messages).to_not be_empty - end + end.wait end end