tag subscriptions: fix broken saved search migrations.

This commit is contained in:
evazion
2017-04-21 22:42:09 -05:00
parent 9718c6e107
commit 0b2493b2dd
4 changed files with 25 additions and 7 deletions

View File

@@ -95,6 +95,14 @@ class SavedSearchTest < ActiveSupport::TestCase
should "normalize whitespace" do
assert_equal("xxx", @saved_search.query)
end
should "normalize the label string" do
@saved_search.label_string = "Foo Bar"
assert_equal(%w[foo bar], @saved_search.labels)
@saved_search.labels = ["Artist 1", "Artist 2"]
assert_equal(%w[artist_1 artist_2], @saved_search.labels)
end
end
context "Destroying a saved search" do