From tutorial from The RSpec Book by David Chelimsky