Skip to content

Commit

Permalink
feature: pending checked methods (#2068)
Browse files Browse the repository at this point in the history
  • Loading branch information
askonev authored May 22, 2024
1 parent 3c5f1e7 commit b1f2efc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,28 @@ def config
it "#{path}/Parameters" do
pending('https://github.com/ONLYOFFICE/api.onlyoffice.com/issues/49') if failed_docbuilder_tests.include?("#{path}/Parameters")
pending('https://github.com/ONLYOFFICE/api.onlyoffice.com/issues/54') if failed_community_server_tests.include?("#{path}/Parameters")
pending('https://github.com/ONLYOFFICE/api.onlyoffice.com/issues/576') if failed_docspace_tests.include?("#{path}/Parameters")
expect(@documentation_page.params_exist).to be_truthy
end

it "#{path}/Returns" do
pending 'https://github.com/ONLYOFFICE/api.onlyoffice.com/issues/49' if failed_docbuilder_tests.include?("#{path}/Returns")
pending 'https://github.com/ONLYOFFICE/api.onlyoffice.com/issues/54' if failed_community_server_tests.include?("#{path}/Returns")
pending('https://github.com/ONLYOFFICE/api.onlyoffice.com/issues/576') if failed_docspace_tests.include?("#{path}/Returns")
expect(@documentation_page.return_exist).to be_truthy
end

it "#{path}/Example" do
pending 'https://github.com/ONLYOFFICE/api.onlyoffice.com/issues/49' if failed_docbuilder_tests.include?("#{path}/Example")
pending 'https://github.com/ONLYOFFICE/api.onlyoffice.com/issues/54' if failed_community_server_tests.include?("#{path}/Example")
pending('https://github.com/ONLYOFFICE/api.onlyoffice.com/issues/576') if failed_docspace_tests.include?("#{path}/Example")
expect(@documentation_page.example_exist).to be_truthy
end

it "#{path}/Resulting document" do
pending 'https://github.com/ONLYOFFICE/api.onlyoffice.com/issues/49' if failed_docbuilder_tests.include?("#{path}/Resulting document")
pending 'https://github.com/ONLYOFFICE/api.onlyoffice.com/issues/54' if failed_community_server_tests.include?("#{path}/Resulting document")
pending('https://github.com/ONLYOFFICE/api.onlyoffice.com/issues/576') if failed_docspace_tests.include?("#{path}/Resulting document")
expect(@documentation_page.document_exist).to be_truthy
end
end
Expand All @@ -48,3 +52,7 @@ def failed_docbuilder_tests
def failed_community_server_tests
@failed_community_server_tests ||= File.read("#{__dir__}/data/failed_community_server_tests.list").split("\n")
end

def failed_docspace_tests
@failed_docspace_tests ||= File.read("#{__dir__}/data/failed_docspace_tests.list").split("\n")
end

0 comments on commit b1f2efc

Please sign in to comment.