Navigation Menu

Skip to content

Commit

Permalink
[Truffle] Tagged specs that pass on not-Windows but fail on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum committed Jan 28, 2015
1 parent c8a63b3 commit 01944cc
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/truffle/tags/core/file/dirname_tags.txt
Expand Up @@ -6,3 +6,5 @@ fails(windows):File.dirname returns all the components of filename except the la
fails(windows):File.dirname returns the return all the components of filename except the last one (Windows format)
fails(windows):File.dirname returns the return all the components of filename except the last one (windows unc)
fails(windows):File.dirname returns the return all the components of filename except the last one (forward_slash)
fails(windows bug):File.dirname ignores a trailing /
fails(windows bug):File.dirname returns the return all the components of filename except the last one (unix format)
5 changes: 5 additions & 0 deletions spec/truffle/tags/core/file/expand_path_tags.txt
Expand Up @@ -16,3 +16,8 @@ fails:File.expand_path when HOME is not set raises an ArgumentError when passed
fails:File.expand_path when HOME is not set raises an ArgumentError when passed '~' if HOME == ''
fails(windows):File.expand_path does not return a frozen string
fails(windows):File.expand_path expands C:/./dir to C:/dir
fails(windows bug):File.expand_path converts a pathname to an absolute pathname, Ruby-Talk:18512
fails(windows bug):File.expand_path converts a pathname to an absolute pathname, using a complete path
fails(windows bug):File.expand_path raises a TypeError if not passed a String type
fails(windows bug):File.expand_path does not modify the string argument
fails(windows bug):File.expand_path returns a String when passed a String subclass
3 changes: 3 additions & 0 deletions spec/truffle/tags/core/file/file_tags.txt
@@ -1,2 +1,5 @@
fails:File includes File::Constants
fails:File.file? accepts an object that has a #to_path method
fails(windows bug):File.file? returns true if the named file exists and is a regular file.
fails(windows bug):File.file? raises an ArgumentError if not passed one argument
fails(windows bug):File.file? raises a TypeError if not passed a String type
4 changes: 4 additions & 0 deletions spec/truffle/tags/core/file/join_tags.txt
Expand Up @@ -11,3 +11,7 @@ fails:File.join calls #to_str
fails:File.join doesn't mutate the object when calling #to_str
fails:File.join calls #to_path
fails(windows):File.join respects given separator if only one part has a boundary separator
fails(windows bug):File.join joins parts using File::SEPARATOR if there are no boundary separators
fails(windows bug):File.join supports any number of arguments
fails(windows bug):File.join flattens nested arrays
fails(windows bug):File.join inserts the separator in between empty strings and arrays
1 change: 1 addition & 0 deletions spec/truffle/tags/core/file/path_tags.txt
@@ -1 +1,2 @@
fails:File#path returns the pathname used to create file as a string
fails(windows bug):File.path returns the full path for the given file
3 changes: 3 additions & 0 deletions spec/truffle/tags/core/file/size_tags.txt
Expand Up @@ -17,3 +17,6 @@ fails:File#size returns the file's current size even if modified
fails:File#size raises an IOError on a closed file
fails:File#size follows symlinks if necessary
fails:File#size for an empty file returns 0
fails(windows bug):File.size? returns the size of the file if it exists and is not empty
fails(windows bug):File.size? returns nil if file_name doesn't exist or has 0 size
fails(windows bug):File.size? returns nil if file_name is empty
1 change: 1 addition & 0 deletions spec/truffle/tags/core/file/stat/file_tags.txt
Expand Up @@ -2,3 +2,4 @@ fails:File::Stat#file? returns true if the named file exists and is a regular fi
fails:File::Stat#file? accepts an object that has a #to_path method
fails:File::Stat#file? returns true if the null device exists and is a regular file.
fails:File::Stat#file? raises a TypeError if not passed a String type
fails(windows bug):File::Stat#file? raises an ArgumentError if not passed one argument

0 comments on commit 01944cc

Please sign in to comment.