Skip to content

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

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.rb
index 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" do
allow(User).to receive(:current).and_return(current)
end
- describe "without beeing logged in" do
+ describe "without being logged in" do
before do
allow(User).to receive(:current).and_return AnonymousUser.first
@@ -39,7 +39,7 @@ shared_examples_for "an action requiring login" do
it { expect(response).to redirect_to signin_path(back_url: redirect_path) }
end
- describe "with beeing logged in" do
+ describe "with being logged in" do
before do
action
end
@@ -55,7 +55,7 @@ shared_examples_for "an action requiring admin" do
allow(User).to receive(:current).and_return(current)
end
- describe "without beeing logged in" do
+ describe "without being logged in" do
before do
allow(User).to receive(:current).and_return AnonymousUser.first
@@ -65,7 +65,7 @@ shared_examples_for "an action requiring admin" do
it { 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" do
before do
allow(User).to receive(:current).and_return FactoryBot.create(:user)
@@ -75,7 +75,7 @@ shared_examples_for "an action requiring admin" do
it { expect(response.response_code).to eq(403) }
end
- describe "with beeing logged in as admin" do
+ describe "with being logged in as admin" do
before do
action
end
diff --git a/modules/backlogs/lib/open_project/backlogs/mixins/prevent_issue_sti.rb b/modules/backlogs/lib/open_project/backlogs/mixins/prevent_issue_sti.rb
index 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::Mixins
end
# 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.rb
index 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' do
before(:each) do
@version = FactoryBot.create(:sprint, name: 'systemwide', project: @other_project, sharing: 'system')
end
@@ -223,7 +223,7 @@ describe Sprint, type: :model do
it { 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' do
before(:each) do
project.update(parent: @other_project)
project.reload
@@ -234,7 +234,7 @@ describe Sprint, type: :model do
it { 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' do
before(:each) do
@parent_project = FactoryBot.create(:project)
@other_project.update(parent: @parent_project)
@@ -247,7 +247,7 @@ describe Sprint, type: :model do
it { 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' do
before(:each) do
@descendant_project = FactoryBot.create(:project, parent: project)
project.reload
diff --git a/modules/backlogs/spec/models/story_spec.rb b/modules/backlogs/spec/models/story_spec.rb
index 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 do
WITH two stories
WITH one story per sprint
WITH querying for the two sprints
- WITH one sprint beeing in another project" do
+ WITH one sprint being in another project" do
before do
story1
@@ -164,7 +164,7 @@ describe Story, type: :model do
describe "WITH one sprint
WITH the sprint having two storys
- WITH one beeing the child of the other" do
+ WITH one being the child of the other" do
before(:each) do
story1.parent_id = story2.id
diff --git a/modules/backlogs/spec/services/impediments/update_service_spec.rb b/modules/backlogs/spec/services/impediments/update_service_spec.rb
index 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 do
it { 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' do
let(: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.rb
index 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 do
cost_entry
end
- describe 'w/o a cleanup beeing necessary' do
+ describe 'w/o a cleanup being necessary' do
let(:action) { WorkPackage.cleanup_associated_before_destructing_if_required(work_package, user, action: 'reassign') }
before do
diff --git a/modules/meeting/spec/models/user_deletion_spec.rb b/modules/meeting/spec/models/user_deletion_spec.rb
index 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 do
describe 'WHEN the user participated in a meeting' do
before do
participant
- # user2 added to participants by beeing the author
+ # user2 added to participants by being the author
user.destroy
meeting.reload
diff --git a/spec/controllers/forums_controller_spec.rb b/spec/controllers/forums_controller_spec.rb
index 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' do
before do
expect(forum).to receive(:save).and_return(true)
@@ -125,7 +125,7 @@ describe ForumsController, type: :controller do
end
end
- describe 'w/ the params beeing invalid' do
+ describe 'w/ the params being invalid' do
before do
expect(forum).to receive(:save).and_return(false)
@@ -207,7 +207,7 @@ describe ForumsController, type: :controller do
expect(@controller).to receive(:authorize)
end
- describe 'w/ the params beeing valid' do
+ describe 'w/ the params being valid' do
before do
as_logged_in_user user do
put :update, params: { id: forum.id,
@@ -233,7 +233,7 @@ describe ForumsController, type: :controller do
end
end
- describe 'w/ the params beeing invalid' do
+ describe 'w/ the params being invalid' do
before do
as_logged_in_user user do
post :update, params: { id: forum.id,
diff --git a/spec/controllers/work_packages/bulk_controller_spec.rb b/spec/controllers/work_packages/bulk_controller_spec.rb
index 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 do
expect(controller).to receive(:authorize)
end
- describe 'w/ the cleanup beeing successful' do
+ describe 'w/ the cleanup being successful' do
before do
expect(stub_work_package).to receive(:reload).and_return(stub_work_package)
@@ -671,7 +671,7 @@ describe WorkPackages::BulkController, type: :controller do
end
end
- describe 'w/o the cleanup beeing successful' do
+ describe 'w/o the cleanup being successful' do
before do
expect(WorkPackage).to receive(:cleanup_associated_before_destructing_if_required).with([stub_work_package], user, params['to_do']).and_return false
diff --git a/spec/lib/journal_formatter/attachment_spec.rb b/spec/lib/journal_formatter/attachment_spec.rb
index 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 do
let(: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' do
it 'adds an attachment added text' do
link = "#{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 do
end
end
- 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' do
let(:expected) do
I18n.t(:text_journal_deleted,
label: "<strong>#{I18n.t(:'activerecord.models.attachment')}</strong>",
@@ -90,7 +90,7 @@ describe OpenProject::JournalFormatter::Attachment do
it { 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 string
WITH specifying not to output html" do
let(:expected) do
I18n.t(:text_journal_added,
@@ -101,7 +101,7 @@ describe OpenProject::JournalFormatter::Attachment do
it { 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" do
let(:expected) do
I18n.t(:text_journal_deleted,
diff --git a/spec/lib/journal_formatter/diff_spec.rb b/spec/lib/journal_formatter/diff_spec.rb
index 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 do
let(: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' do
let(:expected) {
I18n.t(:text_journal_set_with_diff,
label: "<strong>#{key.camelize}</strong>",
@@ -70,7 +70,7 @@ describe OpenProject::JournalFormatter::Diff do
it { 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' do
let(:expected) {
I18n.t(:text_journal_changed_with_diff,
label: "<strong>#{key.camelize}</strong>",
@@ -80,7 +80,7 @@ describe OpenProject::JournalFormatter::Diff do
it { 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 string
WITH de as locale" do
let(:expected) {
I18n.t(:text_journal_changed_with_diff,
@@ -99,7 +99,7 @@ describe OpenProject::JournalFormatter::Diff do
end
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' do
let(:expected) {
I18n.t(:text_journal_deleted_with_diff,
label: "<strong>#{key.camelize}</strong>",
@@ -109,7 +109,7 @@ describe OpenProject::JournalFormatter::Diff do
it { 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 string
WITH specifying not to output html" do
let(:expected) {
I18n.t(:text_journal_set_with_diff,
@@ -120,7 +120,7 @@ describe OpenProject::JournalFormatter::Diff do
it { 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 string
WITH specifying not to output html" do
let(:expected) {
I18n.t(:text_journal_changed_with_diff,
@@ -131,7 +131,7 @@ describe OpenProject::JournalFormatter::Diff do
it { 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 string
WITH specifying to output a full url" do
let(:expected) {
I18n.t(:text_journal_changed_with_diff,
@@ -142,7 +142,7 @@ describe OpenProject::JournalFormatter::Diff do
it { 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' do
let(: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.rb
index 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 do
time_entry
end
- describe 'w/o a cleanup beeing necessary' do
+ describe 'w/o a cleanup being necessary' do
let(:action) { WorkPackage.cleanup_associated_before_destructing_if_required([work_package], user, action: 'reassign') }
before do
diff --git a/spec/models/work_package/work_package_acts_as_searchable_spec.rb b/spec/models/work_package/work_package_acts_as_searchable_spec.rb
index 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 do
describe '#search' do
describe "w/ the user being logged in
w/ searching for a matching string
- w/ beeing member with the appropriate permission" do
+ w/ being member with the appropriate permission" do
before do
work_package
allow(User).to receive(:current).and_return user
@@ -60,7 +60,7 @@ describe WorkPackage, 'acts_as_searchable', type: :model do
end
describe "w/ the user being logged in
- w/ beeing member with the appropriate permission
+ w/ being member with the appropriate permission
w/ searching for matching string
w/ searching with an offset" do
# this offset recreates the way the time is transformed in the controller