Commit 0ed26129803b86b265b8a59f2132d400b8d5dc64
1 parent
a99edb0f
Exists in
master
and in
27 other branches
chat: remove obsolete test
Showing
1 changed file
with
0 additions
and
15 deletions
Show diff stats
test/unit/application_helper_test.rb
| @@ -636,21 +636,6 @@ class ApplicationHelperTest < ActionView::TestCase | @@ -636,21 +636,6 @@ class ApplicationHelperTest < ActionView::TestCase | ||
| 636 | assert_equal '/designs/themes/new-theme/favicon.ico', theme_favicon | 636 | assert_equal '/designs/themes/new-theme/favicon.ico', theme_favicon |
| 637 | end | 637 | end |
| 638 | 638 | ||
| 639 | - should 'include item in usermenu for environment enabled features' do | ||
| 640 | - env = fast_create(Environment) | ||
| 641 | - env.enable('xmpp_chat', false) | ||
| 642 | - stubs(:environment).returns(env) | ||
| 643 | - | ||
| 644 | - @controller = ApplicationController.new | ||
| 645 | - path = Rails.root.join('app', 'views') | ||
| 646 | - @controller.stubs(:view_paths).returns([path]) | ||
| 647 | - | ||
| 648 | - file = path.join('shared','usermenu', 'xmpp_chat.html.erb') | ||
| 649 | - expects(:render).with(:file => file, :use_full_path => false).returns('Open chat') | ||
| 650 | - | ||
| 651 | - assert_equal 'Open chat', render_environment_features(:usermenu) | ||
| 652 | - end | ||
| 653 | - | ||
| 654 | should 'not inlude administration link if user is not an environment administrator' do | 639 | should 'not inlude administration link if user is not an environment administrator' do |
| 655 | user = mock() | 640 | user = mock() |
| 656 | stubs(:environment).returns(Environment.default) | 641 | stubs(:environment).returns(Environment.default) |