Avoid Manager#map dependency in Manager specs

This commit is contained in:
Thibault Jouan
2015-04-22 03:10:03 +00:00
parent b3a82fcf92
commit a7fe5d767f
2 changed files with 20 additions and 16 deletions

View File

@@ -3,6 +3,10 @@ module Factories
Uh::Geo.new(x, y, width, height)
end
def build_client window = mock_window
Uh::WM::Client.new(window)
end
def mock_event type = :xany, **options
double 'event', type: type, **options
end