mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Fix more deprecated keyword arguments
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
.columns.small-12.fat
|
||||
%div{"ng-if" => "::producer.name"}
|
||||
%label
|
||||
= t :producers_buy_at_html, {enterprise: '<span class="turquoise" ng-bind="::producer.name"></span>'.html_safe}
|
||||
= t :producers_buy_at_html, enterprise: '<span class="turquoise" ng-bind="::producer.name"></span>'.html_safe
|
||||
%div.show-for-medium-up{"ng-if" => "::!producer.name"}
|
||||
|
||||
.row.cta-container
|
||||
|
||||
@@ -38,7 +38,7 @@ describe Api::V0::BaseController do
|
||||
context "cannot make a request to the API" do
|
||||
it "with an invalid API key" do
|
||||
request.headers["X-Spree-Token"] = "fake_key"
|
||||
get :index, {}
|
||||
get :index, params: {}
|
||||
expect(json_response).to eq( "error" => "Invalid API key (fake_key) specified." )
|
||||
expect(response.status).to eq(401)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user