Skip to content

Commit

Permalink
Merge pull request #5665 from rubyforgood/fix-lint
Browse files Browse the repository at this point in the history
standardrb --fix
  • Loading branch information
compwron authored May 5, 2024
2 parents f8d7cf8 + c337897 commit 27ef5d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/models/casa_org.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def org_logo
end
end

def open_org_court_report_template(&block)
def open_org_court_report_template(&)
if court_report_template.attached?
court_report_template.open(&block)
court_report_template.open(&)
else
yield CASA_DEFAULT_COURT_REPORT
end
Expand Down
8 changes: 4 additions & 4 deletions spec/policies/casa_case_policy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
it "does not allow the volunteer" do
volunteer = create(:volunteer, casa_org: different_organization)
casa_case = build(:casa_case, casa_org: organization)
expect { volunteer.casa_cases << casa_case } \
expect { volunteer.casa_cases << casa_case }
.to raise_error(
ActiveRecord::RecordInvalid,
/must belong to the same organization/
Expand Down Expand Up @@ -295,7 +295,7 @@
it "does not allow the volunteer" do
volunteer = create(:volunteer, casa_org: different_organization)
casa_case = build(:casa_case, casa_org: organization)
expect { volunteer.casa_cases << casa_case } \
expect { volunteer.casa_cases << casa_case }
.to raise_error(
ActiveRecord::RecordInvalid,
/must belong to the same organization/
Expand Down Expand Up @@ -352,7 +352,7 @@
it "does not allow the volunteer" do
volunteer = create(:volunteer, casa_org: different_organization)
casa_case = build(:casa_case, casa_org: organization)
expect { volunteer.casa_cases << casa_case } \
expect { volunteer.casa_cases << casa_case }
.to raise_error(
ActiveRecord::RecordInvalid,
/must belong to the same organization/
Expand Down Expand Up @@ -407,7 +407,7 @@
it "does not allow the volunteer" do
volunteer = create(:volunteer, casa_org: different_organization)
casa_case = build(:casa_case, casa_org: organization)
expect { volunteer.casa_cases << casa_case } \
expect { volunteer.casa_cases << casa_case }
.to raise_error(
ActiveRecord::RecordInvalid,
/must belong to the same organization/
Expand Down

0 comments on commit 27ef5d6

Please sign in to comment.