class Lolcommits::CaptureFake
Public Instance Methods
capture()
click to toggle source
# File lib/lolcommits/capturer/capture_fake.rb, line 5 def capture FileUtils.cp(test_file, capture_path) end
Private Instance Methods
test_file()
click to toggle source
# File lib/lolcommits/capturer/capture_fake.rb, line 11 def test_file filename = capture_duration.zero? ? 'test_image.jpg' : 'test_video.mp4' File.join(Configuration::LOLCOMMITS_ROOT, 'test', 'assets', filename) end