debian-mirror-gitlab/doorkeeper/spec/version/version_spec.rb

16 lines
381 B
Ruby
Raw Normal View History

2020-01-04 02:51:38 +05:30
require 'spec_helper_integration'
describe 'Doorkeeper version' do
context '#gem_version' do
it 'returns Gem::Version instance' do
expect(Doorkeeper.gem_version).to be_an_instance_of(Gem::Version)
end
end
context 'VERSION' do
it 'returns gem version string' do
expect(Doorkeeper::VERSION::STRING).to match(/^\d+\.\d+\.\d+[.\w]?$/)
end
end
end