Sha256: 609e25593b5c3fc500c37e2b2c67d430ff07bd514c67812e87de86112dc68606
Contents?: true
Size: 611 Bytes
Versions: 83
Compression:
Stored size: 611 Bytes
Contents
# XXX Crashes #require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' #require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/fixtures/classes' # #describe "IO#printf" do # before :each do # @io = IO.new STDOUT.fileno, 'w' # end # # it "writes the #sprintf formatted string to the file descriptor" do # lambda { # @io.printf "%s\n", "look ma, no hands" # }.should output_to_fd("look ma, no hands\n", @io) # end # # it "raises IOError on closed stream" do # lambda { IOSpecs.closed_file.printf("stuff") }.should raise_error(IOError) # end #end
Version data entries
83 entries across 83 versions & 1 rubygems