Skip to content

Commit

Permalink
Merge pull request #1301 from puppetlabs/maint-fix_rubocop
Browse files Browse the repository at this point in the history
(maint) Update Rubocop
  • Loading branch information
jordanbreen28 authored Dec 19, 2023
2 parents 05d8e0a + 7f1aa65 commit 933eb26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/pdk/report/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Event
# @raise [ArgumentError] (see #sanitise_data)
def initialize(data)
sanitise_data(data).each do |key, value|
instance_variable_set("@#{key}", value)
instance_variable_set(:"@#{key}", value)
end
end

Expand Down
4 changes: 2 additions & 2 deletions spec/unit/pdk/report/event_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@

methods.each do |method|
if method == state_method
it { is_expected.to send("be_#{method}") }
it { is_expected.to send(:"be_#{method}") }
else
it { is_expected.not_to send("be_#{method}") }
it { is_expected.not_to send(:"be_#{method}") }
end
end
end
Expand Down

0 comments on commit 933eb26

Please sign in to comment.