Sha256: 95d144506bce42e308861881482683016aad15600c6d1db96ea65da1e460961d
Contents?: true
Size: 352 Bytes
Versions: 1
Compression:
Stored size: 352 Bytes
Contents
require 'spec_helper' describe Heirloom do describe 'misc' do before do @object = Object.new @object.extend Heirloom::Misc::Tmp end it "should return a temporary archive file" do Kernel.stub :rand => 0 Dir.stub :tmpdir => '/tmp' @object.random_archive.should == '/tmp/AAAAAAAA.tar.gz' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
heirloom-0.5.0rc2 | spec/misc/tmp_spec.rb |