lib/airborne/base.rb in airborne-0.1.12 vs lib/airborne/base.rb in airborne-0.1.13

- old
+ new

@@ -1,11 +1,11 @@ require 'json' require 'active_support/hash_with_indifferent_access' module Airborne + class InvalidJsonError < StandardError; end include RequestExpectations - def self.configure RSpec.configure do |config| yield config end end @@ -63,9 +63,10 @@ def body @body end def json_body + raise InvalidJsonError, "Api request returned invalid json" unless @json_body @json_body end private