From 526a1eed81840ba72abb209212b8f121b80985a1 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 25 Nov 2015 13:34:20 +0100 Subject: [PATCH] Fixed unit test. --- test/unit/chat_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/chat_test.rb b/test/unit/chat_test.rb index bc887b8a0..c106abefe 100644 --- a/test/unit/chat_test.rb +++ b/test/unit/chat_test.rb @@ -200,7 +200,7 @@ class ChatTest < ActiveSupport::TestCase # check customer state assert_equal('no_seats_available', chat.customer_state[:state]) - assert_equal(0, chat.customer_state[:queue]) + assert_equal(5, chat.customer_state[:queue]) # check agent1 state agent_state = Chat.agent_state(agent1.id) @@ -225,7 +225,7 @@ class ChatTest < ActiveSupport::TestCase # check customer state assert_equal('no_seats_available', chat.customer_state[:state]) - assert_equal(-2, chat.customer_state[:queue]) + assert_equal(5, chat.customer_state[:queue]) # check agent1 state agent_state = Chat.agent_state(agent1.id) @@ -250,7 +250,7 @@ class ChatTest < ActiveSupport::TestCase # check customer state assert_equal('no_seats_available', chat.customer_state[:state]) - assert_equal(-1, chat.customer_state[:queue]) + assert_equal(5, chat.customer_state[:queue]) # check agent1 state agent_state = Chat.agent_state(agent1.id)