Skip to content

Commit

Permalink
Use I18n.t instead of deprecated Spree.t
Browse files Browse the repository at this point in the history
  • Loading branch information
aldesantis committed Sep 19, 2019
1 parent c0a8971 commit 44390b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -3,7 +3,7 @@
<% if SolidusQuietLogistics.configuration.enabled&.call(@order) %>
<% if !shipment.shipped? && !shipment.canceled? && shipment.pushed? %>
<% if shipment.ql_cancellation_sent.blank? && shipment.ql_cancellation_date.blank? %>
<%= button_to "#{Spree.t('actions.delete')} #{Spree.t(:shipment)}", admin_shipment_path(shipment),
<%= button_to "#{I18n.t('spree.actions.delete')} #{I18n.t('spree.shipment')}", admin_shipment_path(shipment),
method: :delete, remote: true, class: 'btn btn-primary delete-shipment js-delete-shipment-hook' %>
<% end %>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion spec/features/admin/order/return_authorization_spec.rb
Expand Up @@ -79,7 +79,7 @@ def fill_in_rma(_stock_location)
context 'when quiet_logistics is enabled' do
it 'redirects to admin_order_return_authorizations_path and shows error message' do
expect(page).not_to have_selector('.return-items-table')
expect(page).to have_content(Spree.t('cannot_perform_operation'))
expect(page).to have_content(I18n.t('spree.cannot_perform_operation'))
end
end

Expand Down

0 comments on commit 44390b8

Please sign in to comment.