Skip to content

Commit 0900e06

Browse files
committed
Adds failing test for message_id in test_helpers
1 parent 29a0b6d commit 0900e06

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

spec/lib/chatops/controller_spec.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,15 @@ def rails_flexible_post(path, outer_params, jsonrpc_params = nil)
393393
expect(request.params["params"]["this-is-sparta"]).to eq "true"
394394
end
395395

396+
it "sends along all the parameters" do
397+
chat "where can i deploy foobar", "my_username", "room_id_5", "message_id_6"
398+
expect(request.params["action"]).to eq "execute_chatop"
399+
expect(request.params["chatop"]).to eq "wcid"
400+
expect(request.params["user"]).to eq "my_username"
401+
expect(request.params["room_id"]).to eq "room_id_5"
402+
expect(request.params["message_id"]).to eq "message_id_6"
403+
end
404+
396405
it "anchors regexes" do
397406
expect {
398407
chat "too bad that this message doesn't start with where can i deploy foobar", "bhuga"

0 commit comments

Comments
 (0)