Result of rubocop auto-correct and rebuilding rubocop_manual_todo

This commit is contained in:
luisramos0
2019-05-21 11:53:31 +02:00
parent 4a67acf954
commit 86b0d71c7e
419 changed files with 2722 additions and 4676 deletions

View File

@@ -4,7 +4,7 @@ module Spree
module Setup
def sign_in_as_user!
let!(:current_api_user) do
user = Spree::LegacyUser.new(:email => "spree@example.com")
user = Spree::LegacyUser.new(email: "spree@example.com")
user.stub(:has_spree_role?).with("admin").and_return(false)
user.stub(:enterprises) { [] }
user.stub(:owned_groups) { [] }
@@ -31,7 +31,7 @@ module Spree
def sign_in_as_admin!
let!(:current_api_user) do
user = Spree::LegacyUser.new(:email => "spree@example.com")
user = Spree::LegacyUser.new(email: "spree@example.com")
user.stub(:has_spree_role?).with("admin").and_return(true)
# Stub enterprises, needed for cancan ability checks