Implement `log_separator' action keyword

This commit is contained in:
Thibault Jouan
2015-04-28 10:45:56 +00:00
parent 85e5abac8d
commit 92dedd16e7
3 changed files with 20 additions and 0 deletions

View File

@@ -24,6 +24,13 @@ module Uh
end
end
describe '#log_separator' do
it 'logs a separator' do
expect(env).to receive(:log).with /(?:- ){20,}/
actions.log_separator
end
end
describe '#layout_*' do
it 'delegates messages to the layout with handle_ prefix' do
expect(env.layout).to receive :handle_screen_sel