Sha256: e67a89d618380d9d33534d5b38db03064836b04f1742a6d80eeece6b20dc782f

Contents?: true

Size: 363 Bytes

Versions: 13

Compression:

Stored size: 363 Bytes

Contents

module Cistern
  class Mock
    def self.not_implemented(method = '')
      fail NotImplementedError, method ? "The call '#{method}' is not implemented" : ''
    end

    def self.random_hex(length)
      rand(('f' * length).to_i(16)).to_s(16).rjust(length, '0')
    end

    def self.random_numbers(length)
      rand(('9' * length).to_i).to_s
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cistern-2.8.0 lib/cistern/mock.rb
cistern-2.7.2 lib/cistern/mock.rb
cistern-2.7.1 lib/cistern/mock.rb
cistern-2.7.0 lib/cistern/mock.rb
cistern-2.6.0 lib/cistern/mock.rb
cistern-2.5.0 lib/cistern/mock.rb
cistern-2.4.1 lib/cistern/mock.rb
cistern-2.4.0 lib/cistern/mock.rb
cistern-2.3.0 lib/cistern/mock.rb
cistern-2.2.7 lib/cistern/mock.rb
cistern-2.2.6 lib/cistern/mock.rb
cistern-2.2.5 lib/cistern/mock.rb
cistern-2.2.4 lib/cistern/mock.rb