spec/rake/funnel/extensions/shell_spec.rb in rake-funnel-0.9.0.pre vs spec/rake/funnel/extensions/shell_spec.rb in rake-funnel-0.9.1.pre
- old
+ new
@@ -157,9 +157,17 @@
it 'should log to stdout after error' do
expect($stdout).to have_received(:puts).with(/output 2/)
end
end
+
+ context 'lines with different encoding' do
+ let(:stdout_and_stderr) { StringIO.new('error äöüß'.encode('CP850')) }
+
+ it 'should log to stdout before error' do
+ expect($stderr).to have_received(:puts).with(/error/)
+ end
+ end
end
describe 'callback block' do
it 'should yield' do
expect { |b| subject.shell('foo', &b) }.to yield_control