Apply IndentationWidth rubocop rule
This commit is contained in:
@@ -115,25 +115,25 @@ describe "Commenting Budget::Investments" do
|
||||
end
|
||||
|
||||
scenario "Creation date works differently in roots and in child comments, when sorting by confidence_score" do
|
||||
old_root = create(:comment, commentable: investment, created_at: Time.current - 10)
|
||||
new_root = create(:comment, commentable: investment, created_at: Time.current)
|
||||
old_child = create(:comment, commentable: investment, parent_id: new_root.id, created_at: Time.current - 10)
|
||||
new_child = create(:comment, commentable: investment, parent_id: new_root.id, created_at: Time.current)
|
||||
old_root = create(:comment, commentable: investment, created_at: Time.current - 10)
|
||||
new_root = create(:comment, commentable: investment, created_at: Time.current)
|
||||
old_child = create(:comment, commentable: investment, parent_id: new_root.id, created_at: Time.current - 10)
|
||||
new_child = create(:comment, commentable: investment, parent_id: new_root.id, created_at: Time.current)
|
||||
|
||||
visit budget_investment_path(investment.budget, investment, order: :most_voted)
|
||||
visit budget_investment_path(investment.budget, investment, order: :most_voted)
|
||||
|
||||
expect(new_root.body).to appear_before(old_root.body)
|
||||
expect(old_child.body).to appear_before(new_child.body)
|
||||
expect(new_root.body).to appear_before(old_root.body)
|
||||
expect(old_child.body).to appear_before(new_child.body)
|
||||
|
||||
visit budget_investment_path(investment.budget, investment, order: :newest)
|
||||
visit budget_investment_path(investment.budget, investment, order: :newest)
|
||||
|
||||
expect(new_root.body).to appear_before(old_root.body)
|
||||
expect(new_child.body).to appear_before(old_child.body)
|
||||
expect(new_root.body).to appear_before(old_root.body)
|
||||
expect(new_child.body).to appear_before(old_child.body)
|
||||
|
||||
visit budget_investment_path(investment.budget, investment, order: :oldest)
|
||||
visit budget_investment_path(investment.budget, investment, order: :oldest)
|
||||
|
||||
expect(old_root.body).to appear_before(new_root.body)
|
||||
expect(old_child.body).to appear_before(new_child.body)
|
||||
expect(old_root.body).to appear_before(new_root.body)
|
||||
expect(old_child.body).to appear_before(new_child.body)
|
||||
end
|
||||
|
||||
scenario "Turns links into html links" do
|
||||
|
||||
Reference in New Issue
Block a user