lib/caseblocks_api.rb in caseblocks_api-0.2.14 vs lib/caseblocks_api.rb in caseblocks_api-0.2.15

- old
+ new

@@ -30,10 +30,10 @@ end def create_case(params, case_type=nil) params.merge!(:case_type_id => fetch_case_type_id(case_type)) response = self.class.post("/case_blocks/cases", :body => {:case => params}.to_json) - raise CaseblocksAPI::CaseCreationError, "Unable to create case - received response code #{response.code}" if response.code != 200 + raise CaseblocksAPI::CaseCreationError, "Unable to create case - received response code #{response.code}" if response.code != 201 end private def fetch_case_type_id(case_type_name)