describe :tempfile_length, shared: true do
before :each do
@tempfile = Tempfile.new()
end
after :each do
@tempfile.close!
end
it do
@tempfile.send(@method).should eql(0)
@tempfile.print()
@tempfile.send(@method).should eql(5)
end
it do
@tempfile.print()
@tempfile.close
@tempfile.send(@method).should eql(5)
end
end