Refactored Document Spec to RSpec 3 syntax