Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

Commit

Permalink
Updated spec tags
Browse files Browse the repository at this point in the history
  • Loading branch information
pbm committed Jan 19, 2009
1 parent 01ac81a commit 3ffde66
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
3 changes: 0 additions & 3 deletions default.mspec
Expand Up @@ -63,9 +63,6 @@ class MSpecScript
# error (i.e., tagging it as fails still generates an error). So, for
# the kernel specs, we turn all of them on except for case_compare_spec...
'^' + DIR + '/spec/rubyspec/1.8/core/kernel/case_compare_spec.rb',

# TODO: Depends on FileUtils
'^' + DIR + '/spec/rubyspec/1.8/core/kernel/require_spec.rb',
'^' + DIR + '/spec/rubyspec/1.8/core/objectspace',

# TODO: core/proc/arity_spec.rb has a parse error which blows up the whole
Expand Down
10 changes: 0 additions & 10 deletions spec/tags/frozen/1.8/core/kernel/load_tags.txt
@@ -1,13 +1,3 @@
fails:Kernel#load
fails:Kernel#load is a private method
fails:Kernel#load loads a .rb from a relative path and returns true
fails:Kernel#load does not expand/resolve qualified files against $LOAD_PATH
fails:Kernel#load allows unqualified files to contain path information (just not in the beginning)
fails:Kernel#load does not add the loaded file to $LOADED_FEATURES
fails:Kernel#load produces __FILE__ as the given filename and __LINE__ as the source line number
fails:Kernel#load re-evaluates the file each time it is loaded
fails:Kernel#load loads the file even if it has already been #required
fails:Kernel#load does not cause #require on the same filename to fail
fails:Kernel#load raises a LoadError if filename given without its extension
fails:Kernel#load only accepts strings as the filename argument
fails:Shell expansion in Kernel#load expands a preceding ~/ to the user's home directory to use as path
14 changes: 14 additions & 0 deletions spec/tags/frozen/1.8/core/kernel/require_tags.txt
@@ -1 +1,15 @@
fails:Shell expansion in Kernel#require adds the path to $LOADED_FEATURES
fails:Kernel#require is a private method
fails:Kernel#require does not expand/resolve qualified files against $LOAD_PATH
fails:Kernel#require appends a file with no extension with .rb/.<ext> in that order to locate file
fails:Kernel#require prefers to use .rb over .<ext> if given non-extensioned file and both exist
fails:Kernel#require will load file.rb when given 'file' if it exists even if file.<ext> is loaded
fails:Kernel#require appends any non-ruby extensioned file with .rb/.<ext> in that order to locate file
fails:Kernel#require produces __FILE__ as the given filename and __LINE__ as the source line number
fails:Kernel#require stores the loaded file in $LOADED_FEATURES
fails:Kernel#require stores a non-extensioned file with its located suffix
fails:Kernel#require bases the filename in $LOADED_FEATURES on the path given, not just basename
fails:Kernel#require will not load the same file twice, returns false instead
fails:Kernel#require checks $LOADED_FEATURES to see whether file is already loaded
fails:Kernel#require raises a LoadError if the file can't be found
fails:Kernel#require does not infinite loop on an rb file that requires itself

0 comments on commit 3ffde66

Please sign in to comment.