Skip to content
Permalink
Browse files

fix up the require tags

  • Loading branch information
Alex Gaynor
Alex Gaynor committed Mar 30, 2013
1 parent 247f4f3 commit 9624e1815bcfe3d4a9215644bd228f48cc4b242c
Showing with 44 additions and 2 deletions.
  1. +44 −2 spec/tags/core/kernel/require_tags.txt
@@ -1,9 +1,51 @@
fails:Kernel#require is a private method
fails:Kernel#require (path resolution) loads a non-canonical absolute path
fails:Kernel#require
fails:Kernel.require
fails:Kernel#require (path resolution) calls #to_str on non-String objects returned by #to_path
fails:Kernel#require (path resolution) loads a path with duplicate path separators
fails:Kernel#require (path resolution) with an unreadable file raises a LoadError
fails:Kernel#require (path resolution) does not load a bare filename unless the current working directory is in $LOAD_PATH
fails:Kernel#require (path resolution) does not load a relative path unless the current working directory is in $LOAD_PATH
fails:Kernel#require (path resolution) loads a file that recursively requires itself
fails:Kernel#require (file extensions) loads a .rb extensioned file when passed a non-extensioned path
fails:Kernel#require (file extensions) loads a .rb extensioned file when a C-extension file of the same name is loaded
fails:Kernel#require (file extensions) does not load a C-extension file if a .rb extensioned file is already loaded
fails:Kernel#require (file extensions) loads a .rb extensioned file when passed a non-.rb extensioned path
fails:Kernel#require (file extensions) loads a .rb extensioned file when a complex-extensioned C-extension file of the same name is loaded
fails:Kernel#require (file extensions) does not load a C-extension file if a complex-extensioned .rb file is already loaded
fails:Kernel#require ($LOAD_FEATURES) does not load a non-canonical path that is already stored
fails:Kernel#require ($LOAD_FEATURES) stores ../ relative paths as absolute paths
fails:Kernel#require ($LOAD_FEATURES) stores ./ relative paths as absolute paths
fails:Kernel#require ($LOAD_FEATURES) collapses duplicate path separators
fails:Kernel#require ($LOAD_FEATURES) canonicalizes non-unique absolute paths
fails:Kernel#require ($LOAD_FEATURES) does not load a non-canonical path for a file already loaded
fails:Kernel#require ($LOAD_FEATURES) does not load a ./ relative path for a file already loaded
fails:Kernel#require ($LOAD_FEATURES) does not load a ../ relative path for a file already loaded
fails:Kernel#require ($LOAD_FEATURES) when a non-extensioned file is in $LOADED_FEATURES returns false if the file is not found
fails:Kernel#require ($LOAD_FEATURES) when a non-extensioned file is in $LOADED_FEATURES returns false when passed a path and the file is not found
fails:Kernel#require (shell expansion) performs tilde expansion on a .rb file before storing paths in $LOADED_FEATURES
fails:Kernel#require (shell expansion) performs tilde expansion on a non-extensioned file before storing paths in $LOADED_FEATURES
fails:Kernel.require (path resolution) loads a non-canonical absolute path
fails:Kernel.require (path resolution) calls #to_str on non-String objects returned by #to_path
fails:Kernel.require (path resolution) loads a path with duplicate path separators
fails:Kernel.require (path resolution) with an unreadable file raises a LoadError
fails:Kernel.require (path resolution) does not load a bare filename unless the current working directory is in $LOAD_PATH
fails:Kernel.require (path resolution) does not load a relative path unless the current working directory is in $LOAD_PATH
fails:Kernel.require (path resolution) loads a file that recursively requires itself
fails:Kernel.require (file extensions) loads a .rb extensioned file when passed a non-extensioned path
fails:Kernel.require (file extensions) loads a .rb extensioned file when a C-extension file of the same name is loaded
fails:Kernel.require (file extensions) does not load a C-extension file if a .rb extensioned file is already loaded
fails:Kernel.require (file extensions) loads a .rb extensioned file when passed a non-.rb extensioned path
fails:Kernel.require (file extensions) loads a .rb extensioned file when a complex-extensioned C-extension file of the same name is loaded
fails:Kernel.require (file extensions) does not load a C-extension file if a complex-extensioned .rb file is already loaded
fails:Kernel.require ($LOAD_FEATURES) does not load a non-canonical path that is already stored
fails:Kernel.require ($LOAD_FEATURES) stores ../ relative paths as absolute paths
fails:Kernel.require ($LOAD_FEATURES) stores ./ relative paths as absolute paths
fails:Kernel.require ($LOAD_FEATURES) collapses duplicate path separators
fails:Kernel.require ($LOAD_FEATURES) canonicalizes non-unique absolute paths
fails:Kernel.require ($LOAD_FEATURES) does not load a non-canonical path for a file already loaded
fails:Kernel.require ($LOAD_FEATURES) does not load a ./ relative path for a file already loaded
fails:Kernel.require ($LOAD_FEATURES) does not load a ../ relative path for a file already loaded
fails:Kernel.require ($LOAD_FEATURES) when a non-extensioned file is in $LOADED_FEATURES returns false if the file is not found
fails:Kernel.require ($LOAD_FEATURES) when a non-extensioned file is in $LOADED_FEATURES returns false when passed a path and the file is not found
fails:Kernel.require (shell expansion) performs tilde expansion on a .rb file before storing paths in $LOADED_FEATURES
fails:Kernel.require (shell expansion) performs tilde expansion on a non-extensioned file before storing paths in $LOADED_FEATURES

0 comments on commit 9624e18

Please sign in to comment.
You can’t perform that action at this time.