Skip to content

Commit 24dda93

Browse files
committed
Updated sources
1 parent e64a430 commit 24dda93

4 files changed

Lines changed: 18 additions & 4 deletions

File tree

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ gem install groupdocs_viewer_cloud
1212
To 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

lib/groupdocs_viewer_cloud/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
# --------------------------------------------------------------------------------------------------------------------
2626
#
2727
module GroupDocsViewerCloud
28-
VERSION = "21.8".freeze
28+
VERSION = "21.10".freeze
2929
end

test/api/test_viewer_get_info_api.rb

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)