Skip to content

Commit

Permalink
fix failed test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin91 committed Mar 10, 2018
1 parent eb45e5b commit d8eb882
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/rong_cloud/services/message/message_channel_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ def test_initialize_with_unsupported_channel_name
error = assert_raises RongCloud::UnsupportedMessageChannelName do
RongCloud::Services::Message::MessageChannel.new(:nothing)
end
expected_error = "support only channels: [\"private\", \"private_template\", \"system\", \"system_template\", \"group\", \"discussion\", \"chatroom\", \"broadcast\"]"
assert_equal expected_error, error.message
assert error.message =~ /^support\sonly\schannels:/
end

def test_target_param_name_for_private
Expand Down

0 comments on commit d8eb882

Please sign in to comment.