From 96ce4deb45f47e15caccfb3342cc7ffe63b85815 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Tue, 23 Jul 2019 13:50:54 +0100 Subject: [PATCH] Transpec spec/support/api_helper.rb --- spec/support/api_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/support/api_helper.rb b/spec/support/api_helper.rb index 582f7ea341..2dd217117d 100644 --- a/spec/support/api_helper.rb +++ b/spec/support/api_helper.rb @@ -17,8 +17,8 @@ module OpenFoodNetwork end def assert_unauthorized! - json_response.should == { "error" => "You are not authorized to perform that action." } - response.status.should == 401 + expect(json_response).to eq("error" => "You are not authorized to perform that action.") + expect(response.status).to eq 401 end def image(filename)