Fix all rubocop Metrics/LineLength issues (140+)
This commit is contained in:
@@ -62,9 +62,12 @@ feature 'Commenting debates' do
|
||||
end
|
||||
|
||||
scenario 'Comment order' do
|
||||
c1 = create(:comment, :with_confidence_score, commentable: debate, cached_votes_up: 100, cached_votes_total: 120, created_at: Time.current - 2)
|
||||
c2 = create(:comment, :with_confidence_score, commentable: debate, cached_votes_up: 10, cached_votes_total: 12, created_at: Time.current - 1)
|
||||
c3 = create(:comment, :with_confidence_score, commentable: debate, cached_votes_up: 1, cached_votes_total: 2, created_at: Time.current)
|
||||
c1 = create(:comment, :with_confidence_score, commentable: debate, cached_votes_up: 100,
|
||||
cached_votes_total: 120, created_at: Time.current - 2)
|
||||
c2 = create(:comment, :with_confidence_score, commentable: debate, cached_votes_up: 10,
|
||||
cached_votes_total: 12, created_at: Time.current - 1)
|
||||
c3 = create(:comment, :with_confidence_score, commentable: debate, cached_votes_up: 1,
|
||||
cached_votes_total: 2, created_at: Time.current)
|
||||
|
||||
visit debate_path(debate, order: :most_voted)
|
||||
|
||||
@@ -118,7 +121,8 @@ feature 'Commenting debates' do
|
||||
end
|
||||
|
||||
scenario 'Sanitizes comment body for security' do
|
||||
create :comment, commentable: debate, body: "<script>alert('hola')</script> <a href=\"javascript:alert('sorpresa!')\">click me<a/> http://www.url.com"
|
||||
create :comment, commentable: debate,
|
||||
body: "<script>alert('hola')</script> <a href=\"javascript:alert('sorpresa!')\">click me<a/> http://www.url.com"
|
||||
|
||||
visit debate_path(debate)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user