From c717cb2c67b0cc86dca6c51a7e5bb0a51d08bd21 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Thu, 19 Feb 2015 15:53:45 -0300 Subject: [PATCH] chat: use ActionView::TestCase and include ApplicationHelper on ChatHelper test --- test/unit/chat_helper_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unit/chat_helper_test.rb b/test/unit/chat_helper_test.rb index 8166127..4fdc942 100644 --- a/test/unit/chat_helper_test.rb +++ b/test/unit/chat_helper_test.rb @@ -1,12 +1,14 @@ require_relative "../test_helper" -class ChatHelperTest < ActiveSupport::TestCase +class ChatHelperTest < ActionView::TestCase + include ApplicationHelper include ChatHelper should 'provide menu to change chat presence status' do env = Environment.default stubs(:environment).returns(env) + stubs(:profile).returns(nil) stubs(:user).returns(create_user('testing').person) links = user_status_menu('fake-class', 'offline') assert_match /Online/, links -- libgit2 0.21.2