Fix current violations of Style/Send cop

This commit is contained in:
Pau Perez
2018-08-31 12:10:52 +02:00
parent 1de13a5049
commit b23cb55525
35 changed files with 103 additions and 106 deletions

View File

@@ -20,7 +20,9 @@ module Spree
let!(:current_api_user) do
user = create(:user)
user.spree_roles = []
enterprises.each { |e| user.enterprise_roles.create(enterprise: send(e)) }
enterprises.each do |enterprise|
user.enterprise_roles.create(enterprise: public_send(enterprise))
end
user.save!
user
end