added spec for pdf2swf url conversion
[swftools.git] / spec / links.spec.rb
diff --git a/spec/links.spec.rb b/spec/links.spec.rb
new file mode 100644 (file)
index 0000000..25e754d
--- /dev/null
@@ -0,0 +1,9 @@
+require File.dirname(__FILE__) + '/spec_helper'
+
+describe "pdf conversion" do
+    convert_file "links.pdf" do
+        area_at(0,0,200,200).should_contain_link("http://www.swftools.org")
+        area_at(0,0,200,200).should_contain_link("http://www.pdf2swf.org")
+        area_at(0,0,200,200).should_contain_link("http://www.quiss.org")
+    end
+end