From 31c805aa09461b79bd67e9ff4a6cd3cb53a3dfc3 Mon Sep 17 00:00:00 2001 From: Michael Kohl Date: Tue, 25 Jan 2022 23:58:00 +0700 Subject: [PATCH] Let's be friends again, Rubocop (#16294) --- spec/models/ab_experiment_spec.rb | 3 ++- spec/rails_helper.rb | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/spec/models/ab_experiment_spec.rb b/spec/models/ab_experiment_spec.rb index 1789ec980..1a0a4eee6 100644 --- a/spec/models/ab_experiment_spec.rb +++ b/spec/models/ab_experiment_spec.rb @@ -6,7 +6,8 @@ RSpec.describe AbExperiment do describe ".get" do before do - allow(controller).to receive(:field_test).with(AbExperiment::CURRENT_FEED_STRATEGY_EXPERIMENT, participant: user).and_return("special") + allow(controller).to receive(:field_test).with(AbExperiment::CURRENT_FEED_STRATEGY_EXPERIMENT, + participant: user).and_return("special") end context "with :feed_strategy_round_3 experiment" do diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index afa3f8d2f..933690112 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -194,9 +194,9 @@ RSpec.configure do |config| user_views_article_four_hours_in_day user_views_article_nine_days_in_two_week user_views_article_twelve_hours_in_five_days] } }, - "exclude" => { "bots" => true }, - "cache" => true, - "cookies" => false } + "exclude" => { "bots" => true }, + "cache" => true, + "cookies" => false } begin # Add the field tests that are currently configured (if any).