Skip to content

Commit

Permalink
Use #key? instead of #keys.include?
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed May 1, 2023
1 parent 1d22bde commit 37715de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/delete_spec.rb
Expand Up @@ -270,13 +270,13 @@
it "deletes the key" do
@delete.account("delete_cli", "dw1234")
rcfile = @delete.instance_variable_get(:@rcfile)
expect(rcfile.profiles["delete_cli"].keys.include?("dw1234")).to be false
expect(rcfile.profiles["delete_cli"].key?("dw1234")).to be false
end

it "deletes the account" do
@delete.account("delete_cli")
rcfile = @delete.instance_variable_get(:@rcfile)
expect(rcfile.profiles.keys.include?("delete_cli")).to be false
expect(rcfile.profiles.key?("delete_cli")).to be false
end
end

Expand Down

0 comments on commit 37715de

Please sign in to comment.