Skip to content

Commit d589480

Browse files
committed
Add good keyword test
1 parent 34294e0 commit d589480

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/tests/krate/publish.rs

+12
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,18 @@ fn publish_after_removing_documentation() {
710710
assert_eq!(json.krate.documentation, None);
711711
}
712712

713+
#[test]
714+
fn good_keywords() {
715+
let (_, _, _, token) = TestApp::full().with_token();
716+
let crate_to_publish = PublishBuilder::new("foo_good_key")
717+
.keyword("c++")
718+
.keyword("crates-io_index")
719+
.keyword("1password");
720+
let json = token.publish_crate(crate_to_publish).good();
721+
assert_eq!(json.krate.name, "foo_good_key");
722+
assert_eq!(json.krate.max_version, "1.0.0");
723+
}
724+
713725
#[test]
714726
fn bad_keywords() {
715727
let (_, _, _, token) = TestApp::full().with_token();

0 commit comments

Comments
 (0)