switch to pagy for pagination
This commit is contained in:
@@ -41,7 +41,8 @@ class EntriesControllerTest < ActionDispatch::IntegrationTest
|
||||
test "should paginate results" do
|
||||
get entries_url, params: { page: 2 }
|
||||
assert_response :success
|
||||
assert_select "div", text: /Page 2 of/i
|
||||
assert_not_nil assigns(:pagy)
|
||||
assert_select "div", text: /Displaying/i
|
||||
end
|
||||
|
||||
test "should handle invalid language code" do
|
||||
|
||||
Reference in New Issue
Block a user