summaryrefslogtreecommitdiff
path: root/t/05_links.t
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-06-14 15:45:06 +0200
committerfranck cuny <franck@lumberjaph.net>2010-06-14 15:45:06 +0200
commit0c7665d653db4ae0b8caaa00436d110518c76730 (patch)
treec3510ef3bbc1cfe73a97dc0401afced1592493da /t/05_links.t
parentadd n::r::client and now client is a n::r::client (diff)
downloadnet-riak-0c7665d653db4ae0b8caaa00436d110518c76730.tar.gz
add more tests
Diffstat (limited to '')
-rw-r--r--t/05_links.t18
1 files changed, 18 insertions, 0 deletions
diff --git a/t/05_links.t b/t/05_links.t
new file mode 100644
index 0000000..ab2ebb0
--- /dev/null
+++ b/t/05_links.t
@@ -0,0 +1,18 @@
+use strict;
+use warnings;
+use Test::More;
+
+use Net::Riak::Client;
+use Net::Riak::Bucket;
+use Net::Riak::Link;
+
+my $client = Net::Riak::Client->new();
+my $bucket = Net::Riak::Bucket->new(name => 'foo', client => $client);
+
+ok my $link = Net::Riak::Link->new(bucket => $bucket), 'link created';
+
+my $header = $link->to_link_header($client);
+
+is $header, '</riak/foo/_>; riaktag="foo"', 'generate valid link string';
+
+done_testing;