|
@ -83,6 +83,12 @@ describe SalesBackend do |
|
|
address_state = Array(Address).from_json(Global.response.not_nil!.body) |
|
|
address_state = Array(Address).from_json(Global.response.not_nil!.body) |
|
|
expected_address_state = Array(Address).from_json(new_address_str) |
|
|
expected_address_state = Array(Address).from_json(new_address_str) |
|
|
(address_state.to_json == expected_address_state.to_json).should be_true |
|
|
(address_state.to_json == expected_address_state.to_json).should be_true |
|
|
|
|
|
delete "/user/address", headers, new_address_str |
|
|
|
|
|
Global.response.not_nil!.status_code.should eq(200) |
|
|
|
|
|
get "/user/address", headers |
|
|
|
|
|
Global.response.not_nil!.status_code.should eq(200) |
|
|
|
|
|
address_state = Array(Address).from_json(Global.response.not_nil!.body) |
|
|
|
|
|
address_state.size.should eq(0) |
|
|
get "/user/tokens", headers |
|
|
get "/user/tokens", headers |
|
|
Global.response.not_nil!.status_code.should eq(200) |
|
|
Global.response.not_nil!.status_code.should eq(200) |
|
|
|
|
|
|
|
|