Skip to content

Commit 4134e8b

Browse files
committed
Rename reactivate to restore
1 parent dd311ab commit 4134e8b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/views/donation_sites/_donation_site_row.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
<%= edit_button_to edit_donation_site_path(donation_site_row) %>
1010
<% if donation_site_row.active? %>
1111
<%= deactivate_button_to deactivate_donation_site_path(donation_site_row),
12-
text: 'Deactivate',
12+
text: "Deactivate",
1313
confirm: confirm_deactivate_msg(donation_site_row.name) %>
1414
<% else %>
1515
<%= reactivate_button_to reactivate_donation_site_path(donation_site_row),
16-
text: 'Reactivate',
16+
text: "Restore",
1717
confirm: confirm_reactivate_msg(donation_site_row.name) %>
1818
<% end %>
1919
</td>

spec/requests/donation_sites_requests_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
# Inactive donation site should have reactivate button
4747
button2 = page.css(".btn[href='/donation_sites/#{inactive_donation_site.id}/reactivate']")
48-
expect(button2.text.strip).to eq("Reactivate")
48+
expect(button2.text.strip).to eq("Restore")
4949
expect(button2.attr('class')).not_to match(/disabled/)
5050
end
5151
end

0 commit comments

Comments
 (0)