Sha256: 152ca10c178ed7d35285873a05b0d8e1cd34271e003faad373cf191e87f013de
Contents?: true
Size: 461 Bytes
Versions: 1
Compression:
Stored size: 461 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("0001A#{Date.today.strftime('%d%m%y')}CLIEOP03 1 \r\n9999A \r\n") subject.save('filename') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
clieop-0.2.2 | spec/clieop/file_spec.rb |