- Dynamic Dispatch
- Dynamic Method
- Ghost Methods
- Dynamic Proxies
- Blank Slate
- Kernel Method
- Flattening the Scope (aka Nested Lexical Scopes)
- Context Probe
- Class Eval (not really a 'spell' more just a demonstration of its usage)
- Class Macros
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Keeping your lovely 'vimrc' INSIDE of your 'vim' directory is a good idea, | |
" if only because it makes it easier to move your config around. | |
" If you are using 7.4 exclusively, the following will be enough: | |
" | |
" on Unix-like systems ~/.vim/vimrc | |
" on Windows %userprofile%\vimfiles\vimrc | |
" If you use both 7.4 and an older version, or only an older version, | |
" the simplest, future-proof, solution is to put this line and only |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Model | |
@user.should have(1).error_on(:username) # Checks whether there is an error in username | |
@user.errors[:username].should include("can't be blank") # check for the error message | |
#Rendering | |
response.should render_template(:index) | |
#Redirecting | |
response.should redirect_to(movies_path) |