user upgrades: handle the refunded status on show page.

This commit is contained in:
evazion
2021-01-01 21:23:03 -06:00
parent 48676789f0
commit 014199ec2b
3 changed files with 29 additions and 8 deletions

View File

@@ -123,6 +123,15 @@ class UserUpgradesControllerTest < ActionDispatch::IntegrationTest
end
end
context "for a refunded upgrade" do
should "render" do
@user_upgrade = create(:self_gold_upgrade, status: "refunded")
get_auth user_upgrade_path(@user_upgrade), @user_upgrade.purchaser
assert_response :success
end
end
context "for a pending upgrade" do
should "render" do
@user_upgrade = create(:self_gold_upgrade, status: "pending")