Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Commit

Permalink
Replace Spree.t in api
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn committed Nov 21, 2017
1 parent edb6fd3 commit f2c84d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
json.error(Spree.t(:item_not_in_stock_transfer))
json.error(I18n.t('spree.item_not_in_stock_transfer'))
2 changes: 1 addition & 1 deletion spec/requests/spree/api/stock_transfers_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ module Spree

it "returns a specific error message" do
subject
expect(JSON.parse(response.body)["error"]).to eq Spree.t(:item_not_in_stock_transfer)
expect(JSON.parse(response.body)["error"]).to eq I18n.t('spree.item_not_in_stock_transfer')
end
end
end
Expand Down

0 comments on commit f2c84d3

Please sign in to comment.