Sha256: c4aaa1f5af2c99d21fe7a3de21dea6a42cbc42a894b4a2e6b85bc3083ae22087
Contents?: true
Size: 513 Bytes
Versions: 1
Compression:
Stored size: 513 Bytes
Contents
require 'test_helper' require 'plugins/rvm2/ui/output/log' require 'tempfile' describe Rvm2::Ui::Output::Log do before do @tempfile = Tempfile.new("rvm2-ui-output-log-test") @tempfile.close end after do @tempfile.unlink end subject do Rvm2::Ui::Output::Log.new(@tempfile.path) end it "adds messages" do subject.log("Test me 1") subject.finalize File.open(@tempfile.path, "r") do |file| file.read.must_equal(<<-EXPECTED) Test me 1 EXPECTED end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rvm2-ui-0.9.0 | test/plugins_test/rvm2/ui/output/log_test.rb |