Skip to content

Commit

Permalink
Minimise duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie committed Dec 17, 2024
1 parent fdaeb18 commit fd26056
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def then_i_see_the_details_of_the_claim
def when_i_click_on_confirm_provider_rejected_claim
click_on "Confirm provider rejected claim"
end
alias_method :and_i_click_on_confirm_provider_rejected_claim,
:when_i_click_on_confirm_provider_rejected_claim

def then_i_see_the_confirmation_page
expect(page).to have_title(
Expand All @@ -84,10 +86,6 @@ def when_i_click_on_cancel
click_on "Cancel"
end

def and_i_click_on_confirm_provider_rejected_claim
click_on "Confirm provider rejected claim"
end

def then_i_see_that_the_claim_has_been_updated_to_provider_not_approved
expect(page).to have_current_path(claims_support_claims_sampling_path(@claim), ignore_query: true)
expect(page).to have_title(
Expand Down

0 comments on commit fd26056

Please sign in to comment.