OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Fix typo beeing->being in spec/ and modules/
luz paze8c2928a126b
diff --git a/modules/avatars/spec/shared_examples.rb b/modules/avatars/spec/shared_examples.rbindex 93042e60bb9..8c81f64f9b4 100644--- a/modules/avatars/spec/shared_examples.rb+++ b/modules/avatars/spec/shared_examples.rb@@ -29,7 +29,7 @@ shared_examples_for "an action requiring login" doallow(User).to receive(:current).and_return(current)end- describe "without beeing logged in" do+ describe "without being logged in" dobefore doallow(User).to receive(:current).and_return AnonymousUser.first@@ -39,7 +39,7 @@ shared_examples_for "an action requiring login" doit { expect(response).to redirect_to signin_path(back_url: redirect_path) }end- describe "with beeing logged in" do+ describe "with being logged in" dobefore doactionend@@ -55,7 +55,7 @@ shared_examples_for "an action requiring admin" doallow(User).to receive(:current).and_return(current)end- describe "without beeing logged in" do+ describe "without being logged in" dobefore doallow(User).to receive(:current).and_return AnonymousUser.first@@ -65,7 +65,7 @@ shared_examples_for "an action requiring admin" doit { expect(response).to redirect_to signin_path(back_url: redirect_path) }end- describe "with beeing logged in as a normal user" do+ describe "with being logged in as a normal user" dobefore doallow(User).to receive(:current).and_return FactoryBot.create(:user)@@ -75,7 +75,7 @@ shared_examples_for "an action requiring admin" doit { expect(response.response_code).to eq(403) }end- describe "with beeing logged in as admin" do+ describe "with being logged in as admin" dobefore doactionenddiff --git a/modules/backlogs/lib/open_project/backlogs/mixins/prevent_issue_sti.rb b/modules/backlogs/lib/open_project/backlogs/mixins/prevent_issue_sti.rbindex d3f73654cad..8aa96235630 100644--- a/modules/backlogs/lib/open_project/backlogs/mixins/prevent_issue_sti.rb+++ b/modules/backlogs/lib/open_project/backlogs/mixins/prevent_issue_sti.rb@@ -35,7 +35,7 @@ module OpenProject::Backlogs::Mixinsend# Overrides ActiveRecord::Inheritance::ClassMethods#find_sti_classes- # so that stories are instantiated correctly despite sti_name beeing "WorkPackage"+ # so that stories are instantiated correctly despite sti_name being "WorkPackage"def find_sti_class(type_name)type_name = to_s if type_name == 'WorkPackage'diff --git a/modules/backlogs/spec/models/sprint_spec.rb b/modules/backlogs/spec/models/sprint_spec.rbindex 95d323f6da9..4ae39622156 100644--- a/modules/backlogs/spec/models/sprint_spec.rb+++ b/modules/backlogs/spec/models/sprint_spec.rb@@ -214,7 +214,7 @@ describe Sprint, type: :model do@other_project = FactoryBot.create(:project)end- describe 'WITH the version beeing shared system wide' do+ describe 'WITH the version being shared system wide' dobefore(:each) do@version = FactoryBot.create(:sprint, name: 'systemwide', project: @other_project, sharing: 'system')end@@ -223,7 +223,7 @@ describe Sprint, type: :model doit { expect(Sprint.apply_to(project)[0]).to eql(@version) }end- describe 'WITH the version beeing shared from a parent project' do+ describe 'WITH the version being shared from a parent project' dobefore(:each) doproject.update(parent: @other_project)project.reload@@ -234,7 +234,7 @@ describe Sprint, type: :model doit { expect(Sprint.apply_to(project)[0]).to eql(@version) }end- describe 'WITH the version beeing shared within the tree' do+ describe 'WITH the version being shared within the tree' dobefore(:each) do@parent_project = FactoryBot.create(:project)@other_project.update(parent: @parent_project)@@ -247,7 +247,7 @@ describe Sprint, type: :model doit { expect(Sprint.apply_to(project)[0]).to eql(@version) }end- describe 'WITH the version beeing shared within the tree' do+ describe 'WITH the version being shared within the tree' dobefore(:each) do@descendant_project = FactoryBot.create(:project, parent: project)project.reloaddiff --git a/modules/backlogs/spec/models/story_spec.rb b/modules/backlogs/spec/models/story_spec.rbindex 3369390434f..564dd614c25 100644--- a/modules/backlogs/spec/models/story_spec.rb+++ b/modules/backlogs/spec/models/story_spec.rb@@ -128,7 +128,7 @@ describe Story, type: :model doWITH two storiesWITH one story per sprintWITH querying for the two sprints- WITH one sprint beeing in another project" do+ WITH one sprint being in another project" dobefore dostory1@@ -164,7 +164,7 @@ describe Story, type: :model dodescribe "WITH one sprintWITH the sprint having two storys- WITH one beeing the child of the other" do+ WITH one being the child of the other" dobefore(:each) dostory1.parent_id = story2.iddiff --git a/modules/backlogs/spec/services/impediments/update_service_spec.rb b/modules/backlogs/spec/services/impediments/update_service_spec.rbindex 686973d39a4..fc044c3bf79 100644--- a/modules/backlogs/spec/services/impediments/update_service_spec.rb+++ b/modules/backlogs/spec/services/impediments/update_service_spec.rb@@ -165,7 +165,7 @@ describe Impediments::UpdateService, type: :model doit { expect(subject.errors[:blocks_ids]).to include I18n.t(:can_only_contain_work_packages_of_current_sprint, scope: [:activerecord, :errors, :models, :work_package, :attributes, :blocks_ids]) }end- describe 'WITH the story beeing non existent' do+ describe 'WITH the story being non existent' dolet(:blocks) { '0' }it_should_behave_like 'impediment update with unchanged blocking relationship'diff --git a/modules/costs/spec/models/work_package/ask_before_destruction_spec.rb b/modules/costs/spec/models/work_package/ask_before_destruction_spec.rbindex 81df85bbe15..f7abcf261a6 100644--- a/modules/costs/spec/models/work_package/ask_before_destruction_spec.rb+++ b/modules/costs/spec/models/work_package/ask_before_destruction_spec.rb@@ -132,7 +132,7 @@ describe WorkPackage, type: :model docost_entryend- describe 'w/o a cleanup beeing necessary' do+ describe 'w/o a cleanup being necessary' dolet(:action) { WorkPackage.cleanup_associated_before_destructing_if_required(work_package, user, action: 'reassign') }before dodiff --git a/modules/meeting/spec/models/user_deletion_spec.rb b/modules/meeting/spec/models/user_deletion_spec.rbindex 280f610ef9a..16a55c87843 100644--- a/modules/meeting/spec/models/user_deletion_spec.rb+++ b/modules/meeting/spec/models/user_deletion_spec.rb@@ -193,7 +193,7 @@ describe User, '#destroy', type: :model dodescribe 'WHEN the user participated in a meeting' dobefore doparticipant- # user2 added to participants by beeing the author+ # user2 added to participants by being the authoruser.destroymeeting.reloaddiff --git a/spec/controllers/forums_controller_spec.rb b/spec/controllers/forums_controller_spec.rbindex aa7811ca7d8..2a26027239c 100644--- a/spec/controllers/forums_controller_spec.rb+++ b/spec/controllers/forums_controller_spec.rb@@ -104,7 +104,7 @@ describe ForumsController, type: :controller do.and_return(forum)end- describe 'w/ the params beeing valid' do+ describe 'w/ the params being valid' dobefore doexpect(forum).to receive(:save).and_return(true)@@ -125,7 +125,7 @@ describe ForumsController, type: :controller doendend- describe 'w/ the params beeing invalid' do+ describe 'w/ the params being invalid' dobefore doexpect(forum).to receive(:save).and_return(false)@@ -207,7 +207,7 @@ describe ForumsController, type: :controller doexpect(@controller).to receive(:authorize)end- describe 'w/ the params beeing valid' do+ describe 'w/ the params being valid' dobefore doas_logged_in_user user doput :update, params: { id: forum.id,@@ -233,7 +233,7 @@ describe ForumsController, type: :controller doendend- describe 'w/ the params beeing invalid' do+ describe 'w/ the params being invalid' dobefore doas_logged_in_user user dopost :update, params: { id: forum.id,diff --git a/spec/controllers/work_packages/bulk_controller_spec.rb b/spec/controllers/work_packages/bulk_controller_spec.rbindex 2ba79d3f92a..6456cf4bd14 100644--- a/spec/controllers/work_packages/bulk_controller_spec.rb+++ b/spec/controllers/work_packages/bulk_controller_spec.rb@@ -645,7 +645,7 @@ describe WorkPackages::BulkController, type: :controller doexpect(controller).to receive(:authorize)end- describe 'w/ the cleanup beeing successful' do+ describe 'w/ the cleanup being successful' dobefore doexpect(stub_work_package).to receive(:reload).and_return(stub_work_package)@@ -671,7 +671,7 @@ describe WorkPackages::BulkController, type: :controller doendend- describe 'w/o the cleanup beeing successful' do+ describe 'w/o the cleanup being successful' dobefore doexpect(WorkPackage).to receive(:cleanup_associated_before_destructing_if_required).with([stub_work_package], user, params['to_do']).and_return falsediff --git a/spec/lib/journal_formatter/attachment_spec.rb b/spec/lib/journal_formatter/attachment_spec.rbindex ec502a6d803..53c14e9bdf2 100644--- a/spec/lib/journal_formatter/attachment_spec.rb+++ b/spec/lib/journal_formatter/attachment_spec.rb@@ -54,7 +54,7 @@ describe OpenProject::JournalFormatter::Attachment dolet(:key) { "attachments_#{attachment.id}" }describe '#render' do- describe 'WITH the first value beeing nil, and the second an id as string' do+ describe 'WITH the first value being nil, and the second an id as string' doit 'adds an attachment added text' dolink = "#{Setting.protocol}://#{Setting.host_name}/api/v3/attachments/#{attachment.id}/content"expect(instance.render(key, [nil, attachment.id.to_s]))@@ -80,7 +80,7 @@ describe OpenProject::JournalFormatter::Attachment doendend- describe 'WITH the first value beeing an id as string, and the second nil' do+ describe 'WITH the first value being an id as string, and the second nil' dolet(:expected) doI18n.t(:text_journal_deleted,label: "<strong>#{I18n.t(:'activerecord.models.attachment')}</strong>",@@ -90,7 +90,7 @@ describe OpenProject::JournalFormatter::Attachment doit { expect(instance.render(key, [attachment.id.to_s, nil])).to eq(expected) }end- describe "WITH the first value beeing nil, and the second an id as a string+ describe "WITH the first value being nil, and the second an id as a stringWITH specifying not to output html" dolet(:expected) doI18n.t(:text_journal_added,@@ -101,7 +101,7 @@ describe OpenProject::JournalFormatter::Attachment doit { expect(instance.render(key, [nil, attachment.id.to_s], no_html: true)).to eq(expected) }end- describe "WITH the first value beeing an id as string, and the second nil,+ describe "WITH the first value being an id as string, and the second nil,WITH specifying not to output html" dolet(:expected) doI18n.t(:text_journal_deleted,diff --git a/spec/lib/journal_formatter/diff_spec.rb b/spec/lib/journal_formatter/diff_spec.rbindex 3dbeac6e07b..f92fc75c128 100644--- a/spec/lib/journal_formatter/diff_spec.rb+++ b/spec/lib/journal_formatter/diff_spec.rb@@ -60,7 +60,7 @@ describe OpenProject::JournalFormatter::Diff dolet(:full_url_link) { link_to(I18n.t(:label_details), full_url, class: 'description-details') }describe '#render' do- describe 'WITH the first value beeing nil, and the second a string' do+ describe 'WITH the first value being nil, and the second a string' dolet(:expected) {I18n.t(:text_journal_set_with_diff,label: "<strong>#{key.camelize}</strong>",@@ -70,7 +70,7 @@ describe OpenProject::JournalFormatter::Diff doit { expect(instance.render(key, [nil, 'new value'])).to eq(expected) }end- describe 'WITH the first value beeing a string, and the second a string' do+ describe 'WITH the first value being a string, and the second a string' dolet(:expected) {I18n.t(:text_journal_changed_with_diff,label: "<strong>#{key.camelize}</strong>",@@ -80,7 +80,7 @@ describe OpenProject::JournalFormatter::Diff doit { expect(instance.render(key, ['old value', 'new value'])).to eq(expected) }end- describe "WITH the first value beeing a string, and the second a string+ describe "WITH the first value being a string, and the second a stringWITH de as locale" dolet(:expected) {I18n.t(:text_journal_changed_with_diff,@@ -99,7 +99,7 @@ describe OpenProject::JournalFormatter::Diff doendend- describe 'WITH the first value beeing a string, and the second nil' do+ describe 'WITH the first value being a string, and the second nil' dolet(:expected) {I18n.t(:text_journal_deleted_with_diff,label: "<strong>#{key.camelize}</strong>",@@ -109,7 +109,7 @@ describe OpenProject::JournalFormatter::Diff doit { expect(instance.render(key, ['old_value', nil])).to eq(expected) }end- describe "WITH the first value beeing nil, and the second a string+ describe "WITH the first value being nil, and the second a stringWITH specifying not to output html" dolet(:expected) {I18n.t(:text_journal_set_with_diff,@@ -120,7 +120,7 @@ describe OpenProject::JournalFormatter::Diff doit { expect(instance.render(key, [nil, 'new value'], no_html: true)).to eq(expected) }end- describe "WITH the first value beeing a string, and the second a string+ describe "WITH the first value being a string, and the second a stringWITH specifying not to output html" dolet(:expected) {I18n.t(:text_journal_changed_with_diff,@@ -131,7 +131,7 @@ describe OpenProject::JournalFormatter::Diff doit { expect(instance.render(key, ['old value', 'new value'], no_html: true)).to eq(expected) }end- describe "WITH the first value beeing a string, and the second a string+ describe "WITH the first value being a string, and the second a stringWITH specifying to output a full url" dolet(:expected) {I18n.t(:text_journal_changed_with_diff,@@ -142,7 +142,7 @@ describe OpenProject::JournalFormatter::Diff doit { expect(instance.render(key, ['old value', 'new value'], only_path: false)).to eq(expected) }end- describe 'WITH the first value beeing a string, and the second nil' do+ describe 'WITH the first value being a string, and the second nil' dolet(:expected) {I18n.t(:text_journal_deleted_with_diff,label: key.camelize,diff --git a/spec/models/work_package/ask_before_destruction_spec.rb b/spec/models/work_package/ask_before_destruction_spec.rbindex b4a25efbe20..e034380c360 100644--- a/spec/models/work_package/ask_before_destruction_spec.rb+++ b/spec/models/work_package/ask_before_destruction_spec.rb@@ -135,7 +135,7 @@ describe WorkPackage, type: :model dotime_entryend- describe 'w/o a cleanup beeing necessary' do+ describe 'w/o a cleanup being necessary' dolet(:action) { WorkPackage.cleanup_associated_before_destructing_if_required([work_package], user, action: 'reassign') }before dodiff --git a/spec/models/work_package/work_package_acts_as_searchable_spec.rb b/spec/models/work_package/work_package_acts_as_searchable_spec.rbindex 4bda79e6df0..a7ed140a128 100644--- a/spec/models/work_package/work_package_acts_as_searchable_spec.rb+++ b/spec/models/work_package/work_package_acts_as_searchable_spec.rb@@ -46,7 +46,7 @@ describe WorkPackage, 'acts_as_searchable', type: :model dodescribe '#search' dodescribe "w/ the user being logged inw/ searching for a matching string- w/ beeing member with the appropriate permission" do+ w/ being member with the appropriate permission" dobefore dowork_packageallow(User).to receive(:current).and_return user@@ -60,7 +60,7 @@ describe WorkPackage, 'acts_as_searchable', type: :model doenddescribe "w/ the user being logged in- w/ beeing member with the appropriate permission+ w/ being member with the appropriate permissionw/ searching for matching stringw/ searching with an offset" do# this offset recreates the way the time is transformed in the controller