Skip to content

Commit

Permalink
Removes tests about removed method
Browse files Browse the repository at this point in the history
  • Loading branch information
HazelGrant committed Mar 28, 2024
1 parent 5aac3ca commit f74f6bd
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions apps/dashboard/test/models/user_configuration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def teardown
pinned_apps_group_by: nil,

show_all_apps_link: false,
filter_nav_categories?: false,
nav_categories: ["Apps", "Files", "Jobs", "Clusters", "Interactive Apps"],
nav_bar: [],
help_bar: [],
Expand Down Expand Up @@ -172,16 +171,6 @@ def teardown
assert_equal [Pathname.new("/array/path/1"), Pathname.new("/array/path/2")], target.announcement_path
end

test "filter_nav_categories? should return true when categories is set in config" do
Configuration.stubs(:config).returns({nav_categories: []})
assert_equal true, UserConfiguration.new.filter_nav_categories?
end

test "filter_nav_categories? should return default value false when categories is not set in config" do
Configuration.stubs(:config).returns({})
assert_equal false, UserConfiguration.new.filter_nav_categories?
end

test "create_service_class returns SupportTicketEmailService when email configuration object defined" do
Configuration.stubs(:config).returns({support_ticket: {email: {}}})
service = UserConfiguration.new.support_ticket_service
Expand Down

0 comments on commit f74f6bd

Please sign in to comment.