eBooru/test/functional/artist_urls_controller_test.rb
2024-04-06 08:12:01 -05:00

31 lines
716 B
Ruby

# frozen_string_literal: true
require "test_helper"
class ArtistUrlsControllerTest < ActionDispatch::IntegrationTest
context "The artist urls controller" do
context "index page" do
should "render" do
get artist_urls_path
assert_response :success
end
should "render for a complex search" do
@user = create(:user)
as(@user) do
@artist = create(:artist, name: "bkub", url_string: "-http://bkub.com")
end
get artist_urls_path(search: {
artist_name: "bkub",
url_matches: "*bkub*",
is_active: "false",
order: "created_at",
})
assert_response :success
end
end
end
end