Rename feed method to correct name (#6557)

* rename method to correct name

* fix spec
This commit is contained in:
Molly Struve 2020-03-09 16:59:38 -04:00 committed by GitHub
parent 776e0e7a07
commit 7df5e6cfae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -56,7 +56,7 @@ module Articles
end
# Test variation: More random
def default_home_feed_with_more_randomness
def default_home_feed_with_more_randomness_experiment
@randomness = 7
_featured_story, stories = default_home_feed_and_featured_story(user_signed_in: true)
stories

View file

@ -137,9 +137,9 @@ RSpec.describe Articles::Feed, type: :service do
end
end
describe "#default_home_feed_with_more_randomness" do
describe "#default_home_feed_with_more_randomness_experiment" do
let!(:new_story) { create(:article, published_at: 10.minutes.ago, score: 10) }
let(:stories) { feed.default_home_feed_with_more_randomness }
let(:stories) { feed.default_home_feed_with_more_randomness_experiment }
it "includes stories" do
expect(stories).to include(old_story)