File tree Expand file tree Collapse file tree 4 files changed +13
-11
lines changed
Expand file tree Collapse file tree 4 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,15 @@ inherit_gem:
1010inherit_from :
1111 .rubocop_todo.yml
1212
13- require :
14- - rubocop-rails
13+ plugins :
1514 - rubocop-performance
16- - standard
1715 - standard-rails
1816 - standard-performance
1917
18+ require :
19+ - rubocop-rails
20+ - standard
21+
2022AllCops :
2123 Exclude :
2224 - " vendor/**/*"
Original file line number Diff line number Diff line change 33module Partners
44 module UpdateFamily
55 extend ServiceObjectErrorsMixin
6- # rubocop:disable Rails:: SkipsModelValidations
6+ # rubocop:disable Rails/ SkipsModelValidations
77 def self . archive ( family )
88 if family . children . exists?
99 ActiveRecord ::Base . transaction do
@@ -16,6 +16,6 @@ def self.archive(family)
1616 end
1717 self
1818 end
19- # rubocop:enable Rails:: SkipsModelValidations
19+ # rubocop:enable Rails/ SkipsModelValidations
2020 end
2121end
Original file line number Diff line number Diff line change 9595 before do
9696 organization . update! ( enable_individual_requests : false )
9797 # Want to have an invalid email on purpose
98- # rubocop:disable Rails:: SkipsModelValidations
98+ # rubocop:disable Rails/ SkipsModelValidations
9999 partner_one . update_columns ( email : "not/an_email" )
100- # rubocop:enable Rails:: SkipsModelValidations
100+ # rubocop:enable Rails/ SkipsModelValidations
101101 end
102102
103103 it "updates the organization and returns true" do
113113 before do
114114 organization . update! ( enable_individual_requests : false )
115115 # Want to have an invalid email on purpose
116- # rubocop:disable Rails:: SkipsModelValidations
116+ # rubocop:disable Rails/ SkipsModelValidations
117117 profile . update_columns ( pick_up_email : "not/an/email" )
118- # rubocop:enable Rails:: SkipsModelValidations
118+ # rubocop:enable Rails/ SkipsModelValidations
119119 end
120120
121121 it "returns false" do
Original file line number Diff line number Diff line change 100100
101101 before do
102102 # Want to have an invalid email on purpose
103- # rubocop:disable Rails:: SkipsModelValidations
103+ # rubocop:disable Rails/ SkipsModelValidations
104104 partner . update_columns ( email : "not/an_email" )
105- # rubocop:enable Rails:: SkipsModelValidations
105+ # rubocop:enable Rails/ SkipsModelValidations
106106 end
107107
108108 it "returns failure" do
You can’t perform that action at this time.
0 commit comments