Add and apply Lint/EmptyBlock rubocop rule

It was introduced in Rubocop 1.1.0.
This commit is contained in:
Javi Martín
2021-08-11 15:34:33 +02:00
parent adba81ea89
commit 9b61945ee4
5 changed files with 7 additions and 8 deletions

View File

@@ -163,6 +163,9 @@ Lint/ConstantDefinitionInBlock:
Lint/DuplicateMethods: Lint/DuplicateMethods:
Enabled: true Enabled: true
Lint/EmptyBlock:
Enabled: true
Lint/EmptyFile: Lint/EmptyFile:
Enabled: true Enabled: true

View File

@@ -91,8 +91,7 @@ FactoryBot.define do
end end
end end
factory :widget_feed, class: "Widget::Feed" do factory :widget_feed, class: "Widget::Feed"
end
factory :i18n_content, class: "I18nContent" do factory :i18n_content, class: "I18nContent" do
key { "debates.index.section_footer.description" } key { "debates.index.section_footer.description" }

View File

@@ -214,6 +214,5 @@ FactoryBot.define do
end end
end end
factory :active_poll do factory :active_poll
end
end end

View File

@@ -36,8 +36,7 @@ describe Poll do
expect(poll).not_to be_valid expect(poll).not_to be_valid
end end
it "no overlapping polls for proposal polls are allowed" do pending "no overlapping polls for proposal polls are allowed"
end
end end
describe "proposal polls specific validations" do describe "proposal polls specific validations" do

View File

@@ -316,8 +316,7 @@ describe "Emails" do
expect { open_last_email }.to raise_error "No email has been sent!" expect { open_last_email }.to raise_error "No email has been sent!"
end end
xscenario "Delete all Notifications included in the digest after email sent" do xscenario "Delete all Notifications included in the digest after email sent"
end
end end
context "User invites" do context "User invites" do