Sha256: d14e294102940de6012a38d70b6cd740da571e73086347568aa3fb4e563fd4cd
Contents?: true
Size: 1.23 KB
Versions: 2
Compression:
Stored size: 1.23 KB
Contents
require 'spec_helper' require 'yaml' module Patentscope describe 'WIPO supplied test suite', :more, :vcr do before(:all) do Patentscope.configure_from_env end let(:webservice) { Webservice.new } after(:all) do Patentscope.reset_configuration end context 'International Application numbers' do File.open(File.join(File.dirname(__FILE__), *%w[wipo_test_suite_ia_number_examples.yaml])) do |file| examples = YAML.load(file) examples['passes'].each do |e| it "get_iasr of #{e['ia_number']} includes title #{e["title"]}" do iasr_xml = webservice.get_iasr(ia_number: e["ia_number"]) expect(iasr_xml).to include(e["title"]) end end end end context 'Document IDs' do File.open(File.join(File.dirname(__FILE__), *%w[wipo_test_suite_doc_id_examples.yaml])) do |file| examples = YAML.load(file) examples['passes'].each do |e| it "get_document_table_of_contents of #{e['doc_id']} includes #{e["signature"]}" do iasr_xml = webservice.get_document_table_of_contents(doc_id: e["doc_id"]) expect(iasr_xml).to include(e["signature"]) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
patentscope-0.0.2 | spec/wipo_test_suite_spec.rb |
patentscope-0.0.1 | spec/wipo_test_suite_spec.rb |