From d86103db5acb6017ed64df172729ebe9b7da8cfc Mon Sep 17 00:00:00 2001 From: Angel Perez Date: Thu, 17 May 2018 08:04:57 -0400 Subject: [PATCH] Disable unnecessary JS usage on comments/topics specs --- spec/features/comments/topics_spec.rb | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/spec/features/comments/topics_spec.rb b/spec/features/comments/topics_spec.rb index d66afc756..d2e052035 100644 --- a/spec/features/comments/topics_spec.rb +++ b/spec/features/comments/topics_spec.rb @@ -2,14 +2,13 @@ require 'rails_helper' include ActionView::Helpers::DateHelper feature 'Commenting topics from proposals' do - let(:user) { create :user } + let(:user) { create :user } let(:proposal) { create :proposal } - scenario 'Index', :js do - + scenario 'Index' do community = proposal.community topic = create(:topic, community: community) - 3.times { create(:comment, commentable: topic) } + create_list(:comment, 3, commentable: topic) visit community_topic_path(community, topic) @@ -23,7 +22,7 @@ feature 'Commenting topics from proposals' do end end - scenario 'Show', :js do + scenario 'Show' do community = proposal.community topic = create(:topic, community: community) parent_comment = create(:comment, commentable: topic) @@ -557,14 +556,13 @@ feature 'Commenting topics from proposals' do end feature 'Commenting topics from budget investments' do - let(:user) { create :user } + let(:user) { create :user } let(:investment) { create :budget_investment } - scenario 'Index', :js do - + scenario 'Index' do community = investment.community topic = create(:topic, community: community) - 3.times { create(:comment, commentable: topic) } + create_list(:comment, 3, commentable: topic) visit community_topic_path(community, topic) @@ -578,7 +576,7 @@ feature 'Commenting topics from budget investments' do end end - scenario 'Show', :js do + scenario 'Show' do community = investment.community topic = create(:topic, community: community) parent_comment = create(:comment, commentable: topic)