-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This version cuts out certain "features" that would make things much more complex and just caused restrictions to the person using the module. This version though is the first that works properly without errors.
- Loading branch information
Showing
4 changed files
with
30 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env perl6 | ||
|
||
use Test; | ||
use lib 'lib'; | ||
|
||
use WebService::Slack::webhook; | ||
|
||
#Make some vars | ||
my $fake-url = "https://hooks.slack.com/services/example/integration/url"; | ||
|
||
my $slack = WebService::Slack::webhook.new(url => $fake-url); | ||
my %info = ( | ||
text => "This is a test with a hash", | ||
username => "test-bot" | ||
); | ||
|
||
ok $slack.send("This is a test with a string"), 'Send works with string arg'; | ||
ok $slack.send(%info), 'Send works with hash arg'; | ||
|
||
done-testing; |