Skip to content

Commit

Permalink
Add default Gates to seed data
Browse files Browse the repository at this point in the history
  • Loading branch information
dombesz committed Nov 12, 2024
1 parent c8e57b7 commit fb7881b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
3 changes: 3 additions & 0 deletions app/seeders/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ colors:
- reference: :default_color_orange_dark
t_name: Orange (dark)
hexcode: "#F7983A"
- reference: :default_color_purple
t_name: Purple
hexcode: "#682D91"
- reference: :default_color_red_dark
t_name: Red (dark)
hexcode: "#F05823"
Expand Down
12 changes: 12 additions & 0 deletions app/seeders/standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,26 @@ life_cycles:
t_name: Initiating
type: Stage
color_name: :default_color_orange_dark
- reference: :default_life_cycle_ready_for_planning
t_name: Ready for Planning
type: Gate
color_name: :default_color_purple
- reference: :default_life_cycle_planning
t_name: Planning
type: Stage
color_name: :default_color_red_dark
- reference: :default_life_cycle_ready_for_executing
t_name: Ready for Executing
type: Gate
color_name: :default_color_purple
- reference: :default_life_cycle_executing
t_name: Executing
type: Stage
color_name: :default_color_magenta_light
- reference: :default_life_cycle_ready_for_closing
t_name: Ready for Closing
type: Gate
color_name: :default_color_purple
- reference: :default_life_cycle_closing
t_name: Closing
type: Stage
Expand Down
2 changes: 1 addition & 1 deletion modules/bim/spec/seeders/root_seeder_bim_edition_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def group_name(reference)
)
end

include_examples "it creates records", model: Color, expected_count: 148
include_examples "it creates records", model: Color, expected_count: 149
include_examples "it creates records", model: DocumentCategory, expected_count: 3
include_examples "it creates records", model: IssuePriority, expected_count: 4
include_examples "it creates records", model: Status, expected_count: 4
Expand Down
8 changes: 5 additions & 3 deletions spec/seeders/root_seeder_standard_edition_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
expect(VersionSetting.count).to eq 4
expect(Boards::Grid.count).to eq 5
expect(Boards::Grid.count { |grid| grid.options.has_key?(:filters) }).to eq 1
expect(LifeCycle.count).to eq 4
expect(Stage.count).to eq 4
expect(Gate.count).to eq 3
end

it "links work packages to their version" do
Expand Down Expand Up @@ -125,7 +126,7 @@
)
end

include_examples "it creates records", model: Color, expected_count: 148
include_examples "it creates records", model: Color, expected_count: 149
include_examples "it creates records", model: DocumentCategory, expected_count: 3
include_examples "it creates records", model: GlobalRole, expected_count: 2
include_examples "it creates records", model: WorkPackageRole, expected_count: 3
Expand Down Expand Up @@ -172,7 +173,8 @@
expect(Version.count).to eq 4
expect(VersionSetting.count).to eq 4
expect(Boards::Grid.count).to eq 5
expect(LifeCycle.count).to eq 4
expect(Stage.count).to eq 4
expect(Gate.count).to eq 3
end
end
end
Expand Down

0 comments on commit fb7881b

Please sign in to comment.