spec/errawr_http_spec.rb in errawr-http-1.0.1 vs spec/errawr_http_spec.rb in errawr-http-1.1.0

- old
+ new

@@ -26,11 +26,11 @@ [426, :upgrade_required], [428, :precondition_required], [429, :too_many_requests], [431, :request_header_fields_too_large] ] - + ERRORS_5XX = [ [500, :internal_server_error], [501, :not_implemented], [502, :bad_gateway], [503, :service_unavailable], @@ -40,26 +40,26 @@ [507, :insufficient_storage], [508, :loop_detected], [510, :not_extended], [511, :network_authentication_required] ] - + ERRORS_4XX.each do |error| it "should define 4XX error #{error[0]}" do begin Errawr.error!(error[1]) rescue => e - e.context[:http_status].should == error[0] + expect(e.context[:http_status]).to eq(error[0]) end end end - + ERRORS_5XX.each do |error| it "should define 5XX error #{error[0]}" do begin Errawr.error!(error[1]) rescue => e - e.context[:http_status].should == error[0] + expect(e.context[:http_status]).to eq(error[0]) end end end -end \ No newline at end of file +end