File: version_spec.rb

package info (click to toggle)
ruby-launchy 2.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 292 kB
  • sloc: ruby: 1,285; makefile: 6
file content (11 lines) | stat: -rw-r--r-- 291 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
require 'spec_helper'

describe 'Launchy::VERSION' do
  it "should have a #.#.# format" do
    _(Launchy::VERSION).must_match( /\d+\.\d+\.\d+/ )
    _(Launchy::Version.to_s).must_match( /\d+\.\d+\.\d+/ )
    Launchy::Version.to_a.each do |n|
      _(n.to_i).must_be :>=, 0
    end
  end
end