Fix deprecations in internal/podcasts_spec (#3597) [ci skip]
This commit is contained in:
parent
fea8ad1e87
commit
1dcb4df561
1 changed files with 2 additions and 2 deletions
|
|
@ -12,12 +12,12 @@ RSpec.describe "/internal/podcasts", type: :request do
|
|||
describe "GET /internal/podcasts" do
|
||||
before do
|
||||
create_list(:podcast, 3)
|
||||
user.add_role(:podcast_admin, Podcast.order("random()").first)
|
||||
user.add_role(:podcast_admin, Podcast.order(Arel.sql("RANDOM()")).first)
|
||||
end
|
||||
|
||||
it "renders success" do
|
||||
get internal_podcasts_path
|
||||
expect(response).to be_success
|
||||
expect(response).to be_successful
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue