diff --git a/test/cassettes/lky_htm.yml b/test/cassettes/lky_htm.yml new file mode 100644 index 000000000..070800916 --- /dev/null +++ b/test/cassettes/lky_htm.yml @@ -0,0 +1,125 @@ +--- +http_interactions: +- request: + method: get + uri: http://www.legco.gov.hk/general/english/members/yr16-20/lky.htm + body: + encoding: US-ASCII + string: '' + headers: + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 25 Apr 2017 09:55:30 GMT + Server: + - Apache/2.2.3 (Red Hat) + Last-Modified: + - Thu, 22 Dec 2016 09:17:57 GMT + Etag: + - '"60a828b-185c-5443bbeb75b40"' + Accept-Ranges: + - bytes + Content-Length: + - '6236' + X-Ua-Compatible: + - IE=edge + Cache-Control: + - max-age=0, private, no-store, no-cache, must-revalidate + Connection: + - close + Content-Type: + - text/html + Set-Cookie: + - BIGipServerWeb_80_pool=184627978.20480.0000; path=/ + body: + encoding: UTF-8 + string: " + \r\n\r\n + \ \r\n \r\n \r\n + \ \r\n \r\n \r\n \r\n \r\n Legislative + Council of the Hong Kong Special Administrative Region - Members' Biographies + ::Hon Andrew LEUNG Kwan-yuen, GBS, JP\r\n\t\r\n + \ \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \t\r\n \r\n + \ \r\n + \ \r\n + \ \r\n + \ \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n
\r\n \r\n + \
\r\n
\r\n + \
\r\n + \
\r\n
\r\n\t\t
\r\n\t\t\t\r\n\t\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\t\t\r\n\t\t\t\t\t
\t\t\t\r\n\t\t\t\t
\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\t
\"\"
\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t
\t\t\t\t\t\t\r\n\t\r\n
\r\n
\r\n\r\n\r\n\"Hon\r\n\r\n\r\n

Hon Andrew + LEUNG Kwan-yuen, GBS, JP\r\n

\r\n\r\n\r\n

Constituency + :

\r\n
  • Functional Constituency - Industrial (First)\r\n
\r\n\r\n\r\n

Education and + professional qualifications :

\r\n
    \r\n
  • BSc (Hon), Leeds + University\r\n
  • Fellow, Textiles Institute \r\n
  • Fellow, Clothing + and Footwear Institute \r\n
  • Honorary Doctor of Business Administration, + Coventry University, UK\r\n
\r\n\r\n\r\n

Occupation + :

\r\n
    \r\n
  • Merchant\r\n
\r\n\r\n\r\n

Political affiliation :

\r\n
    \r\n
  • Business + and Professionals Alliance for Hong Kong\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
Office address:\r\nRoom + 710, Legislative Council Complex,
\r\n1 Legislative Council Road, Central, + Hong Kong\r\n
Office + telephone:2537 1339
Office fax:2697 8482\r\n
E-mail:andrewleunglegco@outlook.com\r\n
Homepage:http://www.andrewkyleung.hk\r\n
\r\n

(Information + as provided by Member)

\r\n
\r\n
\r\n\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t + \
\r\n\t \r\n
\r\n\t\t
\r\n + \ \r\n \r\n + \ \r\n + \ \r\n + \
\t \r\n\t
\r\n \r\n" + http_version: + recorded_at: Tue, 25 Apr 2017 09:55:30 GMT +recorded_with: VCR 3.0.3 diff --git a/test/data/kwan-yuen.yml b/test/data/kwan-yuen.yml new file mode 100644 index 000000000..a10aadbbf --- /dev/null +++ b/test/data/kwan-yuen.yml @@ -0,0 +1,18 @@ +:url: http://www.legco.gov.hk/general/english/members/yr16-20/lky.htm +:class: MemberPage +:to_h: + :id: yr16-20/lky + :term: yr16-20 + :name: Andrew LEUNG Kwan-yuen + :honorific_prefix: Hon + :honorific_suffix: GBS, JP + :gender: + :faction: Business and Professionals Alliance for Hong Kong + :email: andrewleunglegco@outlook.com + :website: http://www.andrewkyleung.hk + :phone: 2537 1339 + :fax: 2697 8482 + :img: http://www.legco.gov.hk/images/mem_1620/lky.jpg + :area: Industrial (First) + :area_type: functional + :source: http://www.legco.gov.hk/general/english/members/yr16-20/lky.htm