Skip to content

Commit 1ec4a98

Browse files
committed
Use expect syntax in deprecation_spec
1 parent 5d4681b commit 1ec4a98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/bitbucket_rest_api/deprecation_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@
1212
end
1313

1414
it 'tracks messages' do
15-
BitBucket.should_receive(:warn).once()
15+
expect(BitBucket).to receive(:warn).once()
1616
BitBucket.deprecate(method)
1717
BitBucket.deprecate(method)
1818
end
1919

2020
it 'prints the message through Kernel' do
21-
BitBucket.should_receive(:warn).once()
21+
expect(BitBucket).to receive(:warn).once()
2222
BitBucket.deprecate method
2323
end
2424
end
2525

2626
it 'prints the message through Kernel' do
27-
BitBucket.should_receive(:warn)
27+
expect(BitBucket).to receive(:warn)
2828
BitBucket.warn_deprecation method
2929
end
3030
end

0 commit comments

Comments
 (0)