Sha256: 7ef8fb152c5b170018e762cc3f622554b1931d2d44ee07a6fd82573499f251f5

Contents?: true

Size: 294 Bytes

Versions: 10

Compression:

Stored size: 294 Bytes

Contents

module Cistern
  class Mock
    def self.not_implemented
      raise NotImplementedError
    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

10 entries across 10 versions & 1 rubygems

Version Path
cistern-0.3.2 lib/cistern/mock.rb
cistern-0.3.1 lib/cistern/mock.rb
cistern-0.3.0 lib/cistern/mock.rb
cistern-0.2.3 lib/cistern/mock.rb
cistern-0.2.2 lib/cistern/mock.rb
cistern-0.2.1 lib/cistern/mock.rb
cistern-0.2.0 lib/cistern/mock.rb
cistern-0.1.4 lib/cistern/mock.rb
cistern-0.1.2 lib/cistern/mock.rb
cistern-0.0.3 lib/cistern/mock.rb