Commit 7e6283c0 authored by Florian R. Hanke's avatar Florian R. Hanke

Add test for Executable::Indenter#<<.

parent 705342be
...@@ -59,5 +59,18 @@ module Pod ...@@ -59,5 +59,18 @@ module Pod
RB RB
Executable.execute_command('ruby', cmd, true).should == "foo\rbar\nbaz\r" Executable.execute_command('ruby', cmd, true).should == "foo\rbar\nbaz\r"
end end
describe Executable::Indenter do
it 'indents any appended strings' do
UI.indentation_level = 4
io = StringIO.new
indenter = Executable::Indenter.new(io)
indenter << 'hello'
io.string.should == ' hello'
end
end
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment