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
# frozen_string_literal: true
require "spec_helper"
RSpec.describe WorkPackageRole do
let(:work_package_role) { build(:view_work_package_role) }
subject do
described_class.create(name: "work_package_role",
permissions: %w[permissions])
end
describe "validations" do
it { is_expected.to validate_presence_of :name }
it { is_expected.to validate_uniqueness_of :name }
it { is_expected.to validate_length_of(:name).is_at_most(256) }
end
describe "#member?" do
it "is one (even though it is builtin)" do
expect(work_package_role).to be_member
end
end
end