docbrown/spec/system/comments/user_views_podcast_comments_spec.rb
Vaidehi Joshi d2ef01ecc2
Remove Percy (#8915)
We are no longer using the Percy service, so this code is not required anymore.
Removes the percy agent, the gem, and all references to Percy.snapshot and percy: true.
2020-06-25 11:19:58 -07:00

17 lines
514 B
Ruby

require "rails_helper"
RSpec.describe "viewing podcast comments", type: :system, js: true do
let(:user) { create(:user) }
let(:podcast) { create(:podcast, creator: user) }
let(:podcast_episode) { create(:podcast_episode, podcast: podcast) }
let(:comment) { create(:comment, commentable: podcast_episode, user: user) }
before do
sign_in user
visit "/#{podcast.slug}/#{podcast_episode.slug}/comments"
end
it "renders comment" do
expect(page).to have_content(comment.body_html)
end
end