This file contains hidden or 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
| PATH="/usr/local/bin:/usr/local/sbin:$PATH" # if not already present | |
| PATH="$PATH:/usr/local/mysql/bin" | |
| export PATH=$PATH | |
| source ~/.bashrc | |
| ## | |
| # Your previous /Users/voland/.bash_profile file was backed up as /Users/voland/.bash_profile.macports-saved_2011-01-26_at_17:41:49 | |
| ## | |
| # MacPorts Installer addition on 2011-01-26_at_17:41:49: adding an appropriate PATH variable for use with MacPorts. | |
| export PATH=/opt/local/bin:/opt/local/sbin:$PATH |
This file contains hidden or 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
| PS1="mac osx:\W \$ " | |
| alias gera="cd ~/Documents/railsapp/gera-it" | |
| alias ra="cd ~/Documents/railsapp" | |
| alias ss="cd ~/Documents/railsapp/sstore-experimental" | |
| alias rs="rails s" | |
| alias rc="rails c" | |
| alias rg="rails g" | |
| alias m="mate" | |
| alias bu="bundle" | |
| alias dbm="rake db:migrate" |
This file contains hidden or 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
| Changes in syntax | |
| Selectors for the content of an element | |
| before: | |
| response.should have_selector("title", :content => "My Title") | |
| after: | |
| ? | |
| response.body.should have_selector("head title", :text => "My Title") | |
| Value of an input field |
This file contains hidden or 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
| @request.env["devise.mapping"] = :admin | |
| request.env["devise.mapping"] = Devise.mappings[:user] |
This file contains hidden or 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
| Factory girl is an object factory library to be used with your tests. | |
| Installation: | |
| $ [sudo] gem install factory_girl | |
| or with Rails >2.1 dependency management, add to environment.rb | |
| config.gem "factory_girl", :lib => false | |
| Then add: |
NewerOlder