We were previously testing the return value of this line in the Project model within its cover_photo method:
ActionController::Base.helpers.asset_pack_path "media/images/#{filename}-default.png"
As we do not have control over the inner workings of ActionController::Base.helpers.asset_pack_path, only the parameter that we feed it, this PR changes the spec to test the parameter we give to ActionController::Base.helpers.asset_pack_path
We were previously testing the return value of this line in the
Project
model within itscover_photo
method:ActionController::Base.helpers.asset_pack_path "media/images/#{filename}-default.png"
As we do not have control over the inner workings of
ActionController::Base.helpers.asset_pack_path
, only the parameter that we feed it, this PR changes the spec to test the parameter we give toActionController::Base.helpers.asset_pack_path
cc @jamiew