Require 'ostruct' for Ruby < 2.0
Need rspec >= 2.14 for `expect` syntax