Merge pull request #5731 from consuldemocracy/video_url_warning

Fix warning in hidden proposals spec
This commit is contained in:
Javi Martín
2024-10-07 16:51:12 +02:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -80,6 +80,10 @@ FactoryBot.define do
after(:create) { |proposal| create(:image, imageable: proposal) }
end
trait :with_video do
video_url { "https://youtu.be/nhuNb0XtRhQ" }
end
transient do
voters { [] }
followers { [] }

View File

@@ -2,7 +2,7 @@ require "rails_helper"
describe "Admin hidden proposals", :admin do
scenario "List shows all relevant info" do
proposal = create(:proposal, :hidden)
proposal = create(:proposal, :with_video, :hidden)
visit admin_hidden_proposals_path
expect(page).to have_content(proposal.title)