File: version_spec.rb

package info (click to toggle)
ruby-sequel 5.63.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,408 kB
  • sloc: ruby: 113,747; makefile: 3
file content (14 lines) | stat: -rw-r--r-- 431 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require_relative "spec_helper"

describe "Sequel.version" do
  it "should be in the form X.Y.Z with all being numbers" do
    Sequel.version.must_match(/\A\d+\.\d+\.\d+\z/)
  end

  it "MAJOR/MINOR/TINY/VERSION_NUMBER should be integers" do
    Sequel::MAJOR.must_be_kind_of(Integer)
    Sequel::MINOR.must_be_kind_of(Integer)
    Sequel::TINY.must_be_kind_of(Integer)
    Sequel::VERSION_NUMBER.must_be_kind_of(Integer)
  end
end