spec/security_spec.rb in prawn-0.11.1.pre vs spec/security_spec.rb in prawn-0.11.1
- old
+ new
@@ -64,9 +64,15 @@
should == 0b1111_1111_1111_1111_1111_1111_1110_1111
doc_with_permissions(:modify_annotations => false).permissions_value.
should == 0b1111_1111_1111_1111_1111_1111_1101_1111
end
+ it "should raise ArgumentError if invalid option is provided" do
+ lambda {
+ doc_with_permissions(:modify_document => false)
+ }.should.raise(ArgumentError)
+ end
+
end
describe "Encryption keys" do
# Since PDF::Reader doesn't read encrypted PDF files, we just take the
# roundabout method of verifying each step of the encryption. This works