Sha256: 90e05efa79ef8c8110e00b908b7d65b1d5985cbd61fb60ba82a59d0ef353cdd9

Contents?: true

Size: 437 Bytes

Versions: 2

Compression:

Stored size: 437 Bytes

Contents

require 'spec_helper'

describe Clieop::File do

  context "#save" do

    it "should create 'filename' and put the CLIEOP data in it" do
      file = mock('file')
      File.should_receive(:open).with("filename", "w").and_yield(file)
      file.should_receive(:write).with("0001A091210CLIEOP03         1                     \r\n9999A                                             \r\n")
      subject.save('filename')
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
clieop-0.2.1 spec/clieop/file_spec.rb
clieop-0.2.0 spec/clieop/file_spec.rb