Sha256: 51f6531a1885998444993e0cfbf0d1fe20a26d2f6c08248a23a55e45887fdce5

Contents?: true

Size: 1003 Bytes

Versions: 79

Compression:

Stored size: 1003 Bytes

Contents

# Copyright (C) 2011 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

79 entries across 79 versions & 1 rubygems

Version Path
rconf-0.9.18 spec/progress_reporters/file_reporter_spec.rb
rconf-0.9.17 spec/progress_reporters/file_reporter_spec.rb
rconf-0.9.12 spec/progress_reporters/file_reporter_spec.rb
rconf-0.9.11 spec/progress_reporters/file_reporter_spec.rb
rconf-0.9.10 spec/progress_reporters/file_reporter_spec.rb
rconf-0.9.9 spec/progress_reporters/file_reporter_spec.rb
rconf-0.9.8 spec/progress_reporters/file_reporter_spec.rb
rconf-0.9.7 spec/progress_reporters/file_reporter_spec.rb
rconf-0.9.6 spec/progress_reporters/file_reporter_spec.rb
rconf-0.9.4 spec/progress_reporters/file_reporter_spec.rb
rconf-0.8.30 spec/progress_reporters/file_reporter_spec.rb
rconf-0.8.29 spec/progress_reporters/file_reporter_spec.rb
rconf-0.8.21 spec/progress_reporters/file_reporter_spec.rb
rconf-0.8.20 spec/progress_reporters/file_reporter_spec.rb
rconf-0.8.19 spec/progress_reporters/file_reporter_spec.rb
rconf-0.8.18 spec/progress_reporters/file_reporter_spec.rb
rconf-0.8.17 spec/progress_reporters/file_reporter_spec.rb
rconf-0.8.16 spec/progress_reporters/file_reporter_spec.rb
rconf-0.8.15 spec/progress_reporters/file_reporter_spec.rb
rconf-0.8.14 spec/progress_reporters/file_reporter_spec.rb