Sha256: 30950a0ef1cf78cfa907b576e99bcc6d287fcd7b4edc66955a28f7473ab33a5c

Contents?: true

Size: 557 Bytes

Versions: 3

Compression:

Stored size: 557 Bytes

Contents

# frozen_string_literal: true

RSpec.describe OAuth2::Version do
  it 'has a version number' do
    expect(described_class).not_to be nil
  end

  it 'can be a string' do
    expect(described_class.to_s).to be_a(String)
  end

  it 'allows Constant access' do
    expect(described_class::VERSION).to be_a(String)
  end

  it 'is greater than 0.1.0' do
    expect(Gem::Version.new(described_class) > Gem::Version.new('0.1.0')).to be(true)
  end

  it 'is not a pre-release' do
    expect(Gem::Version.new(described_class).prerelease?).to be(false)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
oauth2-1.4.9 spec/oauth2/version_spec.rb
oauth2-1.4.8 spec/oauth2/version_spec.rb
oauth2-1.4.7 spec/oauth2/version_spec.rb