FIx typo nucleous-> nucleus in app/ and modules/ (#8947)

pull/8953/head
luzpaz 4 years ago committed by GitHub
parent e8c2928a12
commit 4ff8169d33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/controllers/copy_projects_controller.rb
  2. 6
      modules/my_page/spec/features/my/time_entries_current_user_spec.rb

@ -71,10 +71,10 @@ class CopyProjectsController < ApplicationController
"copy_from_#{from}" "copy_from_#{from}"
end end
def project_copy(nucleous, contract = Projects::CreateContract) def project_copy(nucleus, contract = Projects::CreateContract)
Projects::SetAttributesService Projects::SetAttributesService
.new(user: current_user, .new(user: current_user,
model: nucleous, model: nucleus,
contract_class: contract) contract_class: contract)
.call(params[:project] ? permitted_params.project : {}) .call(params[:project] ? permitted_params.project : {})
end end

@ -305,10 +305,10 @@ describe 'My page time entries current user widget spec', type: :feature, js: tr
entries_area.remove entries_area.remove
# as the last widget has been removed, the add button is always displayed # as the last widget has been removed, the add button is always displayed
nucleous_area = Components::Grids::GridArea.of(2, 2) nucleus_area = Components::Grids::GridArea.of(2, 2)
nucleous_area.expect_to_exist nucleus_area.expect_to_exist
within nucleous_area.area do within nucleus_area.area do
expect(page) expect(page)
.to have_selector(".grid--widget-add") .to have_selector(".grid--widget-add")
end end

Loading…
Cancel
Save