Add and apply Lint/EmptyBlock rubocop rule
It was introduced in Rubocop 1.1.0.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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" }
|
||||||
|
|||||||
@@ -214,6 +214,5 @@ FactoryBot.define do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
factory :active_poll do
|
factory :active_poll
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user