Skip to content

Commit 255dca3

Browse files
committed
Fixed a deprecation warning from RSpec and added a newline to
spec_helper.rb.
1 parent ac03c25 commit 255dca3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/prime_field_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
describe '#mod' do
2222
it 'returns the integer modulo the prime' do
2323
n = double('num')
24-
n.should_receive(:%).with(prime).and_return(4)
24+
expect(n).to receive(:%).with(prime).and_return(4)
2525
expect(field.mod(n)).to eq 4
2626
end
2727
end

spec/spec_helper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
g: [0, 0x5455],
1515
n: 0x7efb,
1616
h: 2,
17-
)
17+
)

0 commit comments

Comments
 (0)