fixed for rspec3.0