eBooru/test/functional/artist_versions_controller_test.rb
Earlopain fc7d84affd
[RuboCop] Enable Style/FrozenStringLiteralComment
This reduces allocations on the posts page by about 5%, from basic testing
2024-02-25 18:15:55 +01:00

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