File tree Expand file tree Collapse file tree
lib/groupdocs_viewer_cloud Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11PATH
22 remote: .
33 specs:
4- groupdocs_viewer_cloud (21.8 )
4+ groupdocs_viewer_cloud (21.10 )
55 addressable (~> 2.5.0 , >= 2.5.0 )
66 faraday (~> 0.14.0 )
77
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ gem install groupdocs_viewer_cloud
1212To add dependency to your app copy following into your Gemfile and run ` bundle install ` :
1313
1414```
15- gem "groupdocs_viewer_cloud", "~> 21.8 "
15+ gem "groupdocs_viewer_cloud", "~> 21.10 "
1616```
1717
1818## Getting Started
Original file line number Diff line number Diff line change 2525 # --------------------------------------------------------------------------------------------------------------------
2626 #
2727module GroupDocsViewerCloud
28- VERSION = "21.8 " . freeze
28+ VERSION = "21.10 " . freeze
2929end
Original file line number Diff line number Diff line change @@ -57,7 +57,21 @@ def test_GetInfoReturnsFileNotFound
5757 end
5858
5959 assert_equal "Can't find file located at 'some-folder\\ notexist.docx'." , error . message
60- end
60+ end
61+
62+ def test_TestGetInfoPasswordProtected
63+ file = TestFile . password_protected_docx ;
64+ viewOptions = ViewOptions . new
65+ viewOptions . file_info = file . file_info
66+ viewOptions . file_info . password = nil
67+ request = GetInfoRequest . new ( viewOptions )
68+
69+ error = assert_raises ApiError do
70+ @info_api . get_info ( request )
71+ end
72+
73+ assert_equal "Please specify password to load the document." , error . message
74+ end
6175
6276 def test_GetInfoWithMinimalViewOptions
6377 file = TestFile . password_protected_docx ;
You can’t perform that action at this time.
0 commit comments