Skip to content

Commit 574ddf9

Browse files
committed
Use expect syntax in token_spec
1 parent 26b428f commit 574ddf9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/bitbucket_rest_api/validations/token_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
describe ".validates_token_for" do
77
it 'returns false if authentication token is not required' do
8-
token.validates_token_for(:get, '/anotherpath').should be false
8+
expect(token.validates_token_for(:get, '/anotherpath')).to be false
99
end
1010

1111
it 'returns true if authentication token is required' do
12-
token.validates_token_for(:get, '/user').should be true
13-
token.validates_token_for(:get, '/repos/a/b/comments').should be true
12+
expect(token.validates_token_for(:get, '/user')).to be true
13+
expect(token.validates_token_for(:get, '/repos/a/b/comments')).to be true
1414
end
1515
end
1616
end

0 commit comments

Comments
 (0)