File: spec_version.rb

package info (click to toggle)
ruby-rack 3.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,580 kB
  • sloc: ruby: 15,541; sh: 12; makefile: 7; javascript: 1
file content (27 lines) | stat: -rw-r--r-- 505 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# frozen_string_literal: true

require_relative 'helper'

separate_testing do
  require_relative '../lib/rack/version'
end

describe Rack do
  describe 'VERSION' do
    it 'is a version string' do
      Rack::VERSION.must_match(/\d+\.\d+\.\d+/)
    end
  end

  describe 'RELEASE' do
    it 'is the same as VERSION' do
      Rack::RELEASE.must_equal Rack::VERSION
    end
  end

  describe '.release' do
    it 'returns the version string' do
      Rack.release.must_equal Rack::VERSION
    end
  end
end