1
0
mirror of https://github.com/meineerde/rackstash.git synced 2025-10-17 14:01:01 +00:00
rackstash/spec/rackstash/version_spec.rb

24 lines
646 B
Ruby

# Copyright 2017 Holger Just
#
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE.txt file for details.
require 'spec_helper'
require 'rackstash/version'
describe 'Rackstash::Version' do
it 'has a version number' do
expect(Rackstash::Version::STRING).to be_a String
end
it 'exposes the version as Rackstash::VERSION' do
expect(Rackstash::VERSION).to equal Rackstash::Version::STRING
end
it 'exposes a gem_version method' do
expect(Rackstash::Version.gem_version).to be_a Gem::Version
expect(Rackstash::Version.gem_version.to_s).to eql Rackstash::VERSION
end
end