File: version_spec.rb

package info (click to toggle)
ruby-ntlm 0.6.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 408 kB
  • sloc: ruby: 2,663; makefile: 6
file content (27 lines) | stat: -rw-r--r-- 751 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
require 'spec_helper'
require 'net/ntlm/version'

describe Net::NTLM::VERSION do

  it 'should contain an integer value for Major Version' do
    expect(Net::NTLM::VERSION::MAJOR).to be_an Integer
  end

  it 'should contain an integer value for Minor Version' do
    expect(Net::NTLM::VERSION::MINOR).to be_an Integer
  end

  it 'should contain an integer value for Patch Version' do
    expect(Net::NTLM::VERSION::TINY).to be_an Integer
  end

  it 'should contain an aggregate version string' do
    string = [
        Net::NTLM::VERSION::MAJOR,
        Net::NTLM::VERSION::MINOR,
        Net::NTLM::VERSION::TINY
    ].join('.')
    expect(Net::NTLM::VERSION::STRING).to be_a String
    expect(Net::NTLM::VERSION::STRING).to eq(string)
  end
end