Skip to content

Commit df5f414

Browse files
committed
spec: Use eq to compare integers
1 parent 25b615a commit df5f414

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/pycall/libpython/api_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module LibPython
1010
it 'returns the different instance but the same address' do
1111
other = API.builtins_module_ptr
1212
expect(subject).not_to equal(other)
13-
expect(subject.__address__).to equal(other.__address__)
13+
expect(subject.__address__).to eq(other.__address__)
1414
end
1515
end
1616
end

spec/pycall_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
it 'returns a Module that wraps a Python object' do
126126
expect(subject).to be_a(Module)
127127
expect(subject).to be_a(PyCall::PyObjectWrapper)
128-
expect(subject.__pyptr__.__address__).to equal(PyCall::LibPython::API.builtins_module_ptr.__address__)
128+
expect(subject.__pyptr__.__address__).to eq(PyCall::LibPython::API.builtins_module_ptr.__address__)
129129
end
130130

131131
it 'returns the first-created wrapper module when called twice' do

0 commit comments

Comments
 (0)