Add missing image param (#3150)

This commit is contained in:
Mac Siri 2019-06-13 14:10:14 -04:00 committed by Ben Halpern
parent f476e11be6
commit 94c78173d1

View file

@ -2,6 +2,7 @@ require "rails_helper"
RSpec.describe "Admin::Podcasts", type: :request do
let(:super_admin) { create(:user, :super_admin) }
let(:image_file) { Rails.root.join("spec", "support", "fixtures", "images", "image1.jpeg") }
before do
sign_in super_admin
@ -14,7 +15,8 @@ RSpec.describe "Admin::Podcasts", type: :request do
description: "Super Podcast",
feed_url: "http://feeds.feedburner.com/developertea",
slug: "devtea",
main_color_hex: "333333"
main_color_hex: "333333",
image: Rack::Test::UploadedFile.new(image_file, "image/jpeg")
}
end