From 66713044381289db7f249dd332e113aec1c5cb93 Mon Sep 17 00:00:00 2001 From: decabeza Date: Mon, 24 Sep 2018 14:46:55 +0200 Subject: [PATCH] Removes old emails from beta testers segment --- lib/user_segments.rb | 2 -- spec/lib/user_segments_spec.rb | 7 +++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/user_segments.rb b/lib/user_segments.rb index f021119d2aa..08112ba8a67 100644 --- a/lib/user_segments.rb +++ b/lib/user_segments.rb @@ -55,8 +55,6 @@ def self.not_supported_on_current_budget def self.beta_testers testers = %w(aranacm@madrid.es - bertocq@gmail.com - mariajecheca@gmail.com alberto@decabeza.es voodoorai2000@gmail.com) diff --git a/spec/lib/user_segments_spec.rb b/spec/lib/user_segments_spec.rb index 7e47c0ed75b..b663d00455e 100644 --- a/spec/lib/user_segments_spec.rb +++ b/spec/lib/user_segments_spec.rb @@ -192,8 +192,7 @@ describe "#beta_testers" do let(:beta_testers) do - %w(aranacm@madrid.es bertocq@gmail.com mariajecheca@gmail.com - alberto@decabeza.es voodoorai2000@gmail.com) + %w(aranacm@madrid.es alberto@decabeza.es voodoorai2000@gmail.com) end before do @@ -201,13 +200,13 @@ end it "returns only users with specific emails" do - expect(described_class.beta_testers.count).to eq(5) + expect(described_class.beta_testers.count).to eq(3) expect(described_class.beta_testers.pluck(:email)).to match_array(beta_testers) end it "returns users sorted by `created_at` attribute" do users = described_class.beta_testers.pluck(:email) - testers = User.order('created_at ASC').pluck(:email).last(5) + testers = User.order('created_at ASC').pluck(:email).last(3) expect(users).to eq(testers) end end