forked from e621ng/e621ng
25 lines
598 B
Ruby
25 lines
598 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "test_helper"
|
|
|
|
class ArtistVersionsControllerTest < ActionDispatch::IntegrationTest
|
|
context "An artist versions controller" do
|
|
setup do
|
|
@user = create(:privileged_user)
|
|
as(@user) do
|
|
@artist = create(:artist)
|
|
end
|
|
end
|
|
|
|
should "get the index page" do
|
|
get_auth artist_versions_path, @user
|
|
assert_response :success
|
|
end
|
|
|
|
should "get the index page when searching for something" do
|
|
get_auth artist_versions_path(search: { name: @artist.name }), @user
|
|
assert_response :success
|
|
end
|
|
end
|
|
end
|