fix pool ordering js (#3869), fix forum topic tests

This commit is contained in:
Albert Yi
2018-09-05 12:01:46 -07:00
parent a774c6753b
commit a41d006380
2 changed files with 5 additions and 2 deletions

View File

@@ -1,3 +1,6 @@
require("jquery-ui/ui/widgets/sortable");
require("jquery-ui/themes/base/sortable.css");
let Pool = {};
Pool.initialize_all = function() {

View File

@@ -132,8 +132,8 @@ class ForumTopicTest < ActiveSupport::TestCase
end
should "be searchable by title" do
assert_equal(1, ForumTopic.title_matches("xxx").count)
assert_equal(0, ForumTopic.title_matches("aaa").count)
assert_equal(1, ForumTopic.attribute_matches(:title, "xxx").count)
assert_equal(0, ForumTopic.attribute_matches(:title, "aaa").count)
end
should "be searchable by category id" do