use stub, not real object value
remove unused variable
remove unused variable
edit indentation
add spec for rails caching