Checking in modified RSpec file to work with v3.1 along with solution.