Skip to content

Commit

Permalink
Merge pull request #546 from xevix/fix_rescue_from_unit_test
Browse files Browse the repository at this point in the history
Fix typo in rescue_from unit test (Communication --> Communications).
  • Loading branch information
dblock committed Jan 1, 2014
2 parents 268a58d + d61ea89 commit 5a904ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/grape/api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1342,9 +1342,9 @@ class CommunicationsError < RuntimeError; end
rack_response("rescued from #{e.class.name}", 500)
end
subject.get '/uncaught' do
raise CommunicationError
raise CommunicationsError
end
lambda { get '/uncaught' }.should raise_error(CommunicationError)
lambda { get '/uncaught' }.should raise_error(CommunicationsError)
end
end

Expand Down

0 comments on commit 5a904ba

Please sign in to comment.