Module: Addons::Client::Mock::Methods

Included in:
Addons::Client
Defined in:
lib/addons-client/mock.rb

Instance Method Summary collapse

Instance Method Details

#mock!Object



5
6
7
# File 'lib/addons-client/mock.rb', line 5

def mock!
  @mock = true
end

#mocked?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/addons-client/mock.rb', line 13

def mocked?
  @mock
end

#unmock!Object



9
10
11
# File 'lib/addons-client/mock.rb', line 9

def unmock!
  @mock = false
end