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.
17 lines
514 B
Ruby
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
|