Sha256: 483440a7841e464671cd8392c84d3948be9fd92e75e9c998f2f6fd584966a7b0

Contents?: true

Size: 551 Bytes

Versions: 4

Compression:

Stored size: 551 Bytes

Contents

require File.dirname(__FILE__) + '/units_helper'

describe CertificateAuthority::SerialNumber do
  before(:each) do
    @serial_number = CertificateAuthority::SerialNumber.new
  end

  it "should support basic integer serial numbers", :rfc3280 => true do
    @serial_number.number = 25
    @serial_number.should be_valid
    @serial_number.number = "abc"
    @serial_number.should_not be_valid
  end

  it "should not allow negative serial numbers", :rfc3280 => true do
    @serial_number.number = -5
    @serial_number.should_not be_valid
  end

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
certificate_authority_sonian-0.1.7 spec/units/serial_number_spec.rb
certificate_authority-0.1.6 spec/units/serial_number_spec.rb
certificate_authority-0.1.5 spec/units/serial_number_spec.rb
certificate_authority-0.1.4 spec/units/serial_number_spec.rb