Rename feed method to correct name (#6557)
* rename method to correct name * fix spec
This commit is contained in:
parent
776e0e7a07
commit
7df5e6cfae
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue