[macruby-changes] [1850] MacRuby/branches/experimental/spec/frozen
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jun 12 17:54:47 PDT 2009
Revision: 1850
http://trac.macosforge.org/projects/ruby/changeset/1850
Author: eloy.de.enige at gmail.com
Date: 2009-06-12 17:54:47 -0700 (Fri, 12 Jun 2009)
Log Message:
-----------
For some reason the File.expand_path examples which raise ArgumentError and TypeError fail when running the specs, so tagged those. Also tagged an IO#write example around writing to a readonly File instance.
Modified Paths:
--------------
MacRuby/branches/experimental/spec/frozen/core/io/write_spec.rb
Added Paths:
-----------
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/file/expand_path_tags.txt
MacRuby/branches/experimental/spec/frozen/tags/macruby/core/io/write_tags.txt
Modified: MacRuby/branches/experimental/spec/frozen/core/io/write_spec.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/core/io/write_spec.rb 2009-06-13 00:54:30 UTC (rev 1849)
+++ MacRuby/branches/experimental/spec/frozen/core/io/write_spec.rb 2009-06-13 00:54:47 UTC (rev 1850)
@@ -11,13 +11,13 @@
@file = File.open(@filename, "r+")
@readonly_file = File.open(@filename)
end
-
+
after :each do
@file.close
@readonly_file.close
File.delete(@filename)
end
-
+
# TODO: impl detail? discuss this with matz. This spec is useless. - rdavis
# I agree. I've marked it not compliant on macruby, as we don't buffer input. -pthomson
not_compliant_on :macruby do
@@ -32,7 +32,7 @@
end
end
end
-
+
it "does not check if the file is writable if writing zero bytes" do
lambda { @readonly_file.write("") }.should_not raise_error
end
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/file/expand_path_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/file/expand_path_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/file/expand_path_tags.txt 2009-06-13 00:54:47 UTC (rev 1850)
@@ -0,0 +1,2 @@
+critical:File.expand_path raises an ArgumentError if not passed one or two arguments
+critical:File.expand_path raises a TypeError if not passed a String type
\ No newline at end of file
Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/io/write_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/io/write_tags.txt (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/io/write_tags.txt 2009-06-13 00:54:47 UTC (rev 1850)
@@ -0,0 +1 @@
+fails:IO#write on a file does not check if the file is writable if writing zero bytes
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090612/c55f78f0/attachment.html>
More information about the macruby-changes
mailing list