Sample code from IPRUG presentation, 4 Oct 2011
Ruby Shell JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
spec
vendor
.gitignore
.rspec
.rvmrc
.rvmrc187
.rvmrc192
.rvmrc193
Gemfile
Gemfile.lock
README.markdown
Rakefile
config.ru

README.markdown

Fast Rails Tests

Sample code from my IPRUG talk.

The method I refactored is the discount_percentage method in app/models/order.rb. The original version is in master, and the three approaches to extracting code to lib are all in branches.