diff --git a/.rubocop.yml b/.rubocop.yml index 7ac993ad9..cdb2b5b26 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -45,6 +45,7 @@ RSpec/MultipleMemoizedHelpers: Exclude: - spec/linters/rubocop/**/*.rb Style/ClassAndModuleChildren: { EnforcedStyle: compact } +Style/HashSyntax: { EnforcedShorthandSyntax: always } Style/MethodCallWithArgsParentheses: AllowedMethods: - and diff --git a/spec/system/feeds_index_spec.rb b/spec/system/feeds_index_spec.rb index 8c5aa8339..c55018beb 100644 --- a/spec/system/feeds_index_spec.rb +++ b/spec/system/feeds_index_spec.rb @@ -31,7 +31,7 @@ it "removes stories from news when a feed is deleted" do login_as(default_user) feed = create(:feed) - create(:story, feed: feed, title: "Gone Story") + create(:story, feed:, title: "Gone Story") visit("/feeds") click_on "Delete"