@@ -1601,13 +1601,11 @@ fn publish_records_an_audit_action() {
1601
1601
let crate_to_publish = PublishBuilder :: new ( "fyk" ) ;
1602
1602
token. enqueue_publish ( crate_to_publish) . good ( ) ;
1603
1603
1604
- // make sure it doesn't have any audit actions
1604
+ // make sure it has one publish audit action
1605
1605
// do this as a full integration test once the api is in place.
1606
1606
let json = anon. show_version ( "fyk" , "1.0.0" ) ;
1607
1607
let version_id = json. version . id ;
1608
1608
1609
- // make sure it has one audit action
1610
- // do this as a full integration test once the api is in place.
1611
1609
app. db ( |conn| {
1612
1610
let actions = VersionOwnerAction :: all ( conn) . unwrap ( ) ;
1613
1611
assert_eq ! ( actions. len( ) , 1 ) ;
@@ -1629,8 +1627,6 @@ fn yank_records_an_audit_action() {
1629
1627
let crate_to_publish = PublishBuilder :: new ( "fyk" ) ;
1630
1628
token. enqueue_publish ( crate_to_publish) . good ( ) ;
1631
1629
1632
- // make sure it doesn't have any audit actions
1633
- // do this as a full integration test once the api is in place.
1634
1630
let json = anon. show_version ( "fyk" , "1.0.0" ) ;
1635
1631
let version_id = json. version . id ;
1636
1632
app. db ( |conn| {
@@ -1644,7 +1640,7 @@ fn yank_records_an_audit_action() {
1644
1640
// yank it
1645
1641
token. yank ( "fyk" , "1.0.0" ) . good ( ) ;
1646
1642
1647
- // make sure it has one audit action
1643
+ // make sure it has one publish and one yank audit action
1648
1644
// do this as a full integration test once the api is in place.
1649
1645
app. db ( |conn| {
1650
1646
let actions =
@@ -1688,7 +1684,7 @@ fn unyank_records_an_audit_action() {
1688
1684
// unyank version 1.0.0
1689
1685
token. unyank ( "fyk" , "1.0.0" ) . good ( ) ;
1690
1686
1691
- // make sure it has one audit action
1687
+ // make sure it has one publish, one yank, and one unyank audit action
1692
1688
// do this as a full integration test once the api is in place.
1693
1689
app. db ( |conn| {
1694
1690
let actions =
0 commit comments