class Cistern::Mock
Public Class Methods
not_implemented(method = '')
click to toggle source
# File lib/cistern/mock.rb, line 5 def self.not_implemented(method = '') fail NotImplementedError, method ? "The call '#{method}' is not implemented" : '' end
random_hex(length)
click to toggle source
# File lib/cistern/mock.rb, line 9 def self.random_hex(length) rand(('f' * length).to_i(16)).to_s(16).rjust(length, '0') end
random_numbers(length)
click to toggle source
# File lib/cistern/mock.rb, line 13 def self.random_numbers(length) rand(('9' * length).to_i).to_s end