From 396e9c6ef4a7a0371bc2a1d4660d164f9a9a7e71 Mon Sep 17 00:00:00 2001 From: BrokenEagle Date: Mon, 27 Jul 2020 19:27:46 +0000 Subject: [PATCH] fixup-add-tests --- test/functional/artist_versions_controller_test.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/functional/artist_versions_controller_test.rb b/test/functional/artist_versions_controller_test.rb index 30985d386..d04ba86b8 100644 --- a/test/functional/artist_versions_controller_test.rb +++ b/test/functional/artist_versions_controller_test.rb @@ -5,9 +5,9 @@ class ArtistVersionsControllerTest < ActionDispatch::IntegrationTest setup do @user = create(:gold_user, id: 100) @builder = create(:builder_user, name: "danbo") - as(@builder) { @artist = create(:artist, name: "masao") } + as(@builder) { @artist = create(:artist, name: "masao", url_string: "https://masao.deviantart.com") } as(@user) { @artist.update(name: "masao_(deleted)", is_deleted: true) } - as(@builder) { @artist.update(name: "masao", is_deleted: false, group_name: "the_best") } + as(@builder) { @artist.update(name: "masao", is_deleted: false, group_name: "the_best", url_string: "https://www.deviantart.com/masao") } end context "index action" do @@ -24,6 +24,7 @@ class ArtistVersionsControllerTest < ActionDispatch::IntegrationTest should respond_to_search(name: "masao").with { [@versions[2], @versions[0]] } should respond_to_search(name_matches: "(deleted)").with { @versions[1] } should respond_to_search(group_name_matches: "the_best").with { @versions[2] } + should respond_to_search(urls_include_any: "https://www.deviantart.com/masao").with { @versions[2] } should respond_to_search(is_deleted: "true").with { @versions[1] } context "using includes" do