@@ -23,11 +23,18 @@ def given_a_couple_organisations_exist
2323 end
2424
2525 def and_there_are_teams_in_the_organisations
26- @programme = Programme . sample
26+ @programme = Programme . menacwy
2727 @team1 =
2828 create ( :team , organisation : @organisation1 , programmes : [ @programme ] )
2929 @team2 =
3030 create ( :team , organisation : @organisation2 , programmes : [ @programme ] )
31+ @team_national_reporting =
32+ create (
33+ :team ,
34+ :national_reporting ,
35+ national_reporting_cut_off_date : 1 . day . ago
36+ )
37+ @team_support = create ( :team , :support )
3138 end
3239
3340 def when_i_run_the_list_teams_command
@@ -46,11 +53,24 @@ def when_i_run_the_list_teams_command_with_an_ods_code
4653
4754 def then_i_should_see_the_list_of_teams
4855 expect ( @output ) . to include ( @team1 . name )
56+ expect ( @output ) . to include ( @team1 . type )
4957 expect ( @output ) . to include ( @organisation1 . ods_code )
5058 expect ( @output ) . to include ( @team1 . workgroup )
59+
5160 expect ( @output ) . to include ( @team2 . name )
61+ expect ( @output ) . to include ( @team2 . type )
5262 expect ( @output ) . to include ( @organisation2 . ods_code )
5363 expect ( @output ) . to include ( @team2 . workgroup )
64+
65+ expect ( @output ) . to include ( @team_national_reporting . name )
66+ expect ( @output ) . to include ( @team_national_reporting . type )
67+ expect ( @output ) . to include (
68+ @team_national_reporting . national_reporting_cut_off_date . to_s
69+ )
70+
71+ expect ( @output ) . to include ( @team_support . name )
72+ expect ( @output ) . to include ( @team_support . type )
73+
5474 expect ( @output ) . to include ( @programme . name ) . twice
5575 end
5676
0 commit comments