diff options
| author | zeyla <[email protected]> | 2018-06-09 15:42:56 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-06-09 15:42:56 -0700 |
| commit | 2ff819ef7dab480caeb5f157f50a79fb84eba321 (patch) | |
| tree | f59b420360060409560cef980c800ace8702f75d /tests/test_msg_builder.rs | |
| parent | Merge pull request #322 from Erk-/example_01_fix (diff) | |
| parent | Add test and fix another newline difference (diff) | |
| download | serenity-v0.6.x.tar.xz serenity-v0.6.x.zip | |
Merge pull request #327 from PvdBerg1998/v0.6.xv0.6.x
Fix push_codeblock_safe
Diffstat (limited to 'tests/test_msg_builder.rs')
| -rw-r--r-- | tests/test_msg_builder.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_msg_builder.rs b/tests/test_msg_builder.rs index c291bf5..eca8aef 100644 --- a/tests/test_msg_builder.rs +++ b/tests/test_msg_builder.rs @@ -16,6 +16,14 @@ fn code_blocks() { } #[test] +fn safe_code_blocks() { + let content = MessageBuilder::new() + .push_codeblock_safe("test", Some("rb")) + .build(); + assert_eq!(content, "```rb\ntest\n```"); +} + +#[test] fn safe_content() { let content = MessageBuilder::new() .push_safe("@everyone discord.gg/discord-api") |