Skip to content

Commit

Permalink
Fix ruby warning:
Browse files Browse the repository at this point in the history
type_map_by_oid_spec.rb:58: warning: ambiguous first argument; put parentheses or a space even after `-' operator
  • Loading branch information
larskanis committed Jan 10, 2020
1 parent d5de9d1 commit 18218da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/pg/type_map_by_oid_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def decode(*v)
end

it "should check format when deleting coders" do
expect{ tm.rm_coder 2, 123 }.to raise_error(ArgumentError)
expect{ tm.rm_coder -1, 123 }.to raise_error(ArgumentError)
expect{ tm.rm_coder(2, 123) }.to raise_error(ArgumentError)
expect{ tm.rm_coder(-1, 123) }.to raise_error(ArgumentError)
end

it "should check format when adding coders" do
Expand Down

0 comments on commit 18218da

Please sign in to comment.