Convert specs to RSpec 3 syntax with Transpec

Converted specs to 3 syntax using the Transpec gem. Additionally, updated test in endpoint_spec.rb on Line 108 to check for nil rather than attempting to match on nil.