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.12.3 lib/cistern/mock.rb
cistern-2.2.3 lib/cistern/mock.rb
cistern-2.2.1 lib/cistern/mock.rb
cistern-2.1.0 lib/cistern/mock.rb
cistern-2.0.5 lib/cistern/mock.rb
cistern-2.0.4 lib/cistern/mock.rb
cistern-0.12.2 lib/cistern/mock.rb
cistern-0.12.1 lib/cistern/mock.rb
cistern-2.0.3 lib/cistern/mock.rb
cistern-2.0.2 lib/cistern/mock.rb
cistern-0.11.3 lib/cistern/mock.rb
cistern-2.0.1 lib/cistern/mock.rb
cistern-1.0.1.pre6 lib/cistern/mock.rb
cistern-1.0.1.pre5 lib/cistern/mock.rb
cistern-1.0.1.pre4 lib/cistern/mock.rb
cistern-1.0.1.pre3 lib/cistern/mock.rb
cistern-1.0.1.pre2 lib/cistern/mock.rb
cistern-0.11.2 lib/cistern/mock.rb
cistern-1.0.1.pre1 lib/cistern/mock.rb
cistern-1.0.0.pre lib/cistern/mock.rb