@@ -1601,13 +1601,11 @@ fn publish_records_an_audit_action() {
16011601 let crate_to_publish = PublishBuilder :: new ( "fyk" ) ;
16021602 token. enqueue_publish ( crate_to_publish) . good ( ) ;
16031603
1604- // make sure it doesn't have any audit actions
1604+ // make sure it has one publish audit action
16051605 // do this as a full integration test once the api is in place.
16061606 let json = anon. show_version ( "fyk" , "1.0.0" ) ;
16071607 let version_id = json. version . id ;
16081608
1609- // make sure it has one audit action
1610- // do this as a full integration test once the api is in place.
16111609 app. db ( |conn| {
16121610 let actions = VersionOwnerAction :: all ( conn) . unwrap ( ) ;
16131611 assert_eq ! ( actions. len( ) , 1 ) ;
@@ -1629,8 +1627,6 @@ fn yank_records_an_audit_action() {
16291627 let crate_to_publish = PublishBuilder :: new ( "fyk" ) ;
16301628 token. enqueue_publish ( crate_to_publish) . good ( ) ;
16311629
1632- // make sure it doesn't have any audit actions
1633- // do this as a full integration test once the api is in place.
16341630 let json = anon. show_version ( "fyk" , "1.0.0" ) ;
16351631 let version_id = json. version . id ;
16361632 app. db ( |conn| {
@@ -1644,7 +1640,7 @@ fn yank_records_an_audit_action() {
16441640 // yank it
16451641 token. yank ( "fyk" , "1.0.0" ) . good ( ) ;
16461642
1647- // make sure it has one audit action
1643+ // make sure it has one publish and one yank audit action
16481644 // do this as a full integration test once the api is in place.
16491645 app. db ( |conn| {
16501646 let actions =
@@ -1688,7 +1684,7 @@ fn unyank_records_an_audit_action() {
16881684 // unyank version 1.0.0
16891685 token. unyank ( "fyk" , "1.0.0" ) . good ( ) ;
16901686
1691- // make sure it has one audit action
1687+ // make sure it has one publish, one yank, and one unyank audit action
16921688 // do this as a full integration test once the api is in place.
16931689 app. db ( |conn| {
16941690 let actions =
0 commit comments