Sha256: 994a7dfa038da62df0170c20812004be39d37e67167e20363b7675407b38f278

Contents?: true

Size: 376 Bytes

Versions: 7

Compression:

Stored size: 376 Bytes

Contents

# frozen_string_literal: true

require 'helper'

class TestSemVer < Test::Unit::TestCase
  include DeterministicHelper

  assert_methods_are_deterministic(FFaker::SemVer, :next)

  def setup
    @tester = FFaker::SemVer
  end

  def test_next
    assert_includes(%w[0.0.1 0.1.0 1.0.0], @tester.next)
    assert_includes(%w[2.0.0 1.3.0 1.2.4], @tester.next('1.2.3'))
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ffaker-2.18.0 test/test_sem_ver.rb
ffaker-2.17.0 test/test_sem_ver.rb
ffaker-2.16.0 test/test_sem_ver.rb
ffaker-2.15.0 test/test_sem_ver.rb
ffaker-2.14.0 test/test_sem_ver.rb
ffaker-2.13.0 test/test_sem_ver.rb
ffaker-2.12.0 test/test_sem_ver.rb