Sha256: cab70b409fd59dc57e853f818f546b891c2f24ce05e1d6bc2b92cc7702060544
Contents?: true
Size: 1007 Bytes
Versions: 22
Compression:
Stored size: 1007 Bytes
Contents
# Copyright (C) 2011-2012 RightScale, Inc, All Rights Reserved Worldwide. # # THIS PROGRAM IS CONFIDENTIAL AND PROPRIETARY TO RIGHTSCALE # AND CONSTITUTES A VALUABLE TRADE SECRET. Any unauthorized use, # reproduction, modification, or disclosure of this program is # strictly prohibited. Any use of this program by an authorized # licensee is strictly subject to the terms and conditions, # including confidentiality obligations, set forth in the applicable # License Agreement between RightScale.com, Inc. and # the licensee require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper')) describe RightConf::FileReporter do it 'should write to given file' do file = File.join(File.dirname(__FILE__), '__output') begin File.delete(file) if File.exist?(file) reporter = RightConf::FileReporter.new(file) reporter.write("42\n43\n44") res = IO.read(file) res.count("\n").should == 3 ensure File.delete(file) rescue nil end end end
Version data entries
22 entries across 22 versions & 1 rubygems