module StartHer::Testing

Attributes

__test_mode[RW]

Public Instance Methods

__set_test_mode(mode) click to toggle source

rubocop:disable Style/TrivialAccessors

# File lib/start_her/testing.rb, line 14
def __set_test_mode(mode)
  @__test_mode = mode
end
clear_stubed_redis() click to toggle source

rubocop:disable Style/GlobalVars

# File lib/start_her/testing.rb, line 8
def clear_stubed_redis
  $stubed_redis.clear_db if $stubed_redis
end
disable!() click to toggle source

rubocop:enable Style/TrivialAccessors

# File lib/start_her/testing.rb, line 19
def disable!
  __set_test_mode(:disable)
end
disable?() click to toggle source
# File lib/start_her/testing.rb, line 27
def disable?
  @__test_mode == :disable
end
fake!() click to toggle source
# File lib/start_her/testing.rb, line 23
def fake!
  __set_test_mode(:fake)
end
fake?() click to toggle source
# File lib/start_her/testing.rb, line 31
def fake?
  @__test_mode == :fake
end