Skip to content

Commit 26b428f

Browse files
committed
Improve token_spec by testing validates_token_for with path matching regexp
1 parent 3964064 commit 26b428f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/bitbucket_rest_api/validations/token_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
it 'returns true if authentication token is required' do
1212
token.validates_token_for(:get, '/user').should be true
13+
token.validates_token_for(:get, '/repos/a/b/comments').should be true
1314
end
1415
end
1516
end

0 commit comments

Comments
 (0)