Implement Client#configure

This commit is contained in:
Thibault Jouan 2015-04-20 04:59:38 +00:00
parent c69a600ca4
commit 7fc695f258
2 changed files with 16 additions and 0 deletions

View File

@ -31,6 +31,11 @@ module Uh
@wclass ||= @window.wclass
end
def configure
@window.configure @geo
self
end
def moveresize
@window.moveresize @geo
self

View File

@ -50,6 +50,17 @@ module Uh
end
end
describe '#configure' do
it 'configures the window with client geo' do
expect(window).to receive(:configure).with geo
client.configure
end
it 'returns self' do
expect(client.configure).to be client
end
end
describe '#moveresize' do
it 'moveresizes the window with client geo' do
expect(window).to receive(:moveresize).with geo