Project

General

Profile

« Previous | Next » 

Revision 6b518448

Added by Marek Hulán almost 6 years ago

Refs #23132 - stabilize bookmark test

View differences:

test/models/bookmark_test.rb
valid_controller_values = (["dashboard", "common_parameters"] +
ActiveRecord::Base.connection.tables.map(&:to_s) +
Permission.resources.map(&:tableize)).uniq
BookmarkControllerValidator.reset_controllers_list
valid_controller_values.each do |controller|
bookmark = FactoryBot.create(:bookmark, :controller => controller, :public => false)
assert bookmark.valid?, "Can't create bookmark with valid controller #{controller}"

Also available in: Unified diff