From 5fd1001bfdeb192cbe16a758eb98b8fb3fe329ea Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Tue, 19 Jan 2021 10:27:18 +1000 Subject: [PATCH] FIX: Do not test bookmark rate limiter message (#11749) * the time can be a little off so it is not consistently exactly 24 hours --- spec/requests/bookmarks_controller_spec.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/spec/requests/bookmarks_controller_spec.rb b/spec/requests/bookmarks_controller_spec.rb index b2ac9f09929..b7e7ea52b7f 100644 --- a/spec/requests/bookmarks_controller_spec.rb +++ b/spec/requests/bookmarks_controller_spec.rb @@ -29,9 +29,6 @@ describe BookmarksController do post_id: Fabricate(:post).id } expect(response.status).to eq(429) - expect(response.parsed_body['errors']).to include( - I18n.t("rate_limiter.by_type.create_bookmark", time_left: "24 hours") - ) end context "if the user reached the max bookmark limit" do