~singpolyma/sgx-jmp

3b0771261905670e7fd0a182ca7df3cfa521844c — Stephen Paul Weber 2 years ago f7efec3
Fixed code to expect 201 but forgot to update tests
2 files changed, 3 insertions(+), 3 deletions(-)

M test/test_bandwidth_tn_order.rb
M test/test_registration.rb
M test/test_bandwidth_tn_order.rb => test/test_bandwidth_tn_order.rb +2 -2
@@ 69,7 69,7 @@ class BandwidthTNOrderTest < Minitest::Test
					"Authorization" => "Basic Y2F0YXB1bHRfdG9rZW46Y2F0YXB1bHRfc2VjcmV0",
					"Content-Type" => "application/json"
				}
			).to_return(status: 200)
			).to_return(status: 201)
			@order.poll.sync
			assert_requested req
		end


@@ 95,7 95,7 @@ class BandwidthTNOrderTest < Minitest::Test
					"Authorization" => "Basic Y2F0YXB1bHRfdG9rZW46Y2F0YXB1bHRfc2VjcmV0",
					"Content-Type" => "application/json"
				}
			).to_return(status: 200)
			).to_return(status: 201)
			assert_equal @order, @order.poll.sync
			assert_requested req
		end

M test/test_registration.rb => test/test_registration.rb +1 -1
@@ 381,7 381,7 @@ class RegistrationTest < Minitest::Test
					"Authorization" => "Basic Y2F0YXB1bHRfdG9rZW46Y2F0YXB1bHRfc2VjcmV0",
					"Content-Type" => "application/json"
				}
			).to_return(status: 200)
			).to_return(status: 201)
			BACKEND_SGX.expect(
				:register!,
				EMPromise.resolve(OpenStruct.new(error?: false)),