Class: Sklaventreiber::Mock

Inherits:
Object
  • Object
show all
Defined in:
lib/sklaventreiber/mock.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMock

Returns a new instance of Mock.



5
6
7
# File 'lib/sklaventreiber/mock.rb', line 5

def initialize()
	puts "mock created"
end

Class Method Details

.mock_method(sleeping_time) ⇒ Object



9
10
11
12
13
# File 'lib/sklaventreiber/mock.rb', line 9

def self.mock_method( sleeping_time )
	puts "mock doing work for " + sleeping_time.to_s + " seconds"
	sleep( sleeping_time )
	puts "work finished"
end