Converted rspec code to rspec3 style by transpec