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

Remove unnecessary specs

Dombi Attilacf1fb6801019
diff --git a/spec/models/life_cycle_spec.rb b/spec/models/life_cycle_spec.rb
index a855543e534..1c671f05a3f 100644
--- a/spec/models/life_cycle_spec.rb
+++ b/spec/models/life_cycle_spec.rb
@@ -33,14 +33,6 @@ RSpec.describe LifeCycle do
expect { described_class.new }.to raise_error(NotImplementedError)
end
- it "cannot be instantiated with an invalid type" do
- expect { described_class.new(type: "InvalidType") }.to raise_error(ActiveRecord::SubclassNotFound)
- end
-
- it "can be instantiated with a valid type" do
- expect { described_class.new(type: "Gate") }.not_to raise_error
- end
-
# For more specs see:
# - spec/support/shared/life_cycle_helpers.rb
# - spec/models/gate_spec.rb
diff --git a/spec/models/project/life_cycle_spec.rb b/spec/models/project/life_cycle_spec.rb
index cc52e9cb95c..23e5060a579 100644
--- a/spec/models/project/life_cycle_spec.rb
+++ b/spec/models/project/life_cycle_spec.rb
@@ -33,14 +33,6 @@ RSpec.describe Project::LifeCycle do
expect { described_class.new }.to raise_error(NotImplementedError)
end
- it "cannot be instantiated with an invalid type" do
- expect { described_class.new(type: "InvalidType") }.to raise_error(ActiveRecord::SubclassNotFound)
- end
-
- it "can be instantiated with a valid type" do
- expect { described_class.new(type: "Project::Gate") }.not_to raise_error
- end
-
describe "with an instantiated Gate" do
subject { build :project_gate }