Sha256: 554b77b05f572871ebd7ba6e013135188806dbff8d198a78c6dcf7aff3d68b47

Contents?: true

Size: 362 Bytes

Versions: 37

Compression:

Stored size: 362 Bytes

Contents

module Cistern
  class Mock
    def self.not_implemented(method="")
      raise 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

37 entries across 37 versions & 1 rubygems

Version Path
cistern-0.11.2.pre2 lib/cistern/mock.rb
cistern-0.11.1 lib/cistern/mock.rb
cistern-0.11.0 lib/cistern/mock.rb
cistern-0.10.2 lib/cistern/mock.rb
cistern-0.9.2 lib/cistern/mock.rb
cistern-0.9.1 lib/cistern/mock.rb
cistern-0.9.0 lib/cistern/mock.rb
cistern-0.8.0 lib/cistern/mock.rb
cistern-0.7.1 lib/cistern/mock.rb
cistern-0.7.0 lib/cistern/mock.rb
cistern-0.6.0 lib/cistern/mock.rb
cistern-0.5.10 lib/cistern/mock.rb
cistern-0.5.9 lib/cistern/mock.rb
cistern-0.5.8 lib/cistern/mock.rb
cistern-0.5.7 lib/cistern/mock.rb
cistern-0.5.6 lib/cistern/mock.rb
cistern-0.5.4 lib/cistern/mock.rb