Skip to content

Commit

Permalink
Autocorrect new offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Apr 17, 2020
1 parent 80ad69d commit ea25f4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/aruba/platforms/unix_environment_variables.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class UpdateAction
attr_reader :other_env, :block

def initialize(other_env, &block)
@other_env = other_env.to_h.each_with_object({}) { |(k, v), a| a[k] = v.to_s }
@other_env = other_env.to_h.transform_values(&:to_s)

@block = (block if block_given?)
end
Expand Down
4 changes: 2 additions & 2 deletions spec/aruba/api/filesystem_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ def actual_permissions
expect(full_content).to match(/foo/)
expect(full_content).not_to match(/zoo/)
end
end . not_to raise_error
end.not_to raise_error
end

it "raises ExpectationNotMetError when the inner expectations don't match" do
Expand All @@ -550,7 +550,7 @@ def actual_permissions
expect(full_content).to match(/zoo/)
expect(full_content).not_to match(/foo/)
end
end . to raise_error RSpec::Expectations::ExpectationNotMetError
end.to raise_error RSpec::Expectations::ExpectationNotMetError
end
end
end
Expand Down

0 comments on commit ea25f4e

Please sign in to comment.