diff --git a/test/cassettes/chd_htm.yml b/test/cassettes/chd_htm.yml new file mode 100644 index 000000000..3375f568c --- /dev/null +++ b/test/cassettes/chd_htm.yml @@ -0,0 +1,121 @@ +--- +http_interactions: +- request: + method: get + uri: http://www.legco.gov.hk/general/english/members/yr16-20/chd.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: + - Thu, 11 May 2017 10:30:53 GMT + Server: + - Apache/2.2.3 (Red Hat) + Last-Modified: + - Thu, 22 Dec 2016 09:17:58 GMT + Etag: + - '"60a826a-16ff-5443bbec69d80"' + Accept-Ranges: + - bytes + Content-Length: + - '5887' + 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 CHU Hoi-dick\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 + CHU Hoi-dick\r\n

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

Constituency + :

\r\n
  • Geographical Constituency - New Territories West\r\n
\r\n\r\n\r\n

Education and + professional qualifications :

\r\n
    \r\n
  • English Language + and Literature, The Chinese University of Hong Kong\r\n
\r\n\r\n\r\n

Occupation :

\r\n
    \r\n
  • Community + Organiser\r\n
\r\n\r\n\r\n

Political + affiliation : -

\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 + 903, Legislative Council Complex,
\r\n1 Legislative Council Road, Central, + Hong Kong\r\n
Office + telephone:2809 2102\r\n
Office fax:2811 2210\r\n
E-mail:info@chuhoidick.hk\r\n
Homepage or Résumé:-\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: Thu, 11 May 2017 10:30:54 GMT +recorded_with: VCR 3.0.3 diff --git a/test/data/chd.htm.yml b/test/data/chd.htm.yml new file mode 100644 index 000000000..c7232b791 --- /dev/null +++ b/test/data/chd.htm.yml @@ -0,0 +1,20 @@ +--- +:class: MemberPage +:url: http://www.legco.gov.hk/general/english/members/yr16-20/chd.htm +:to_h: + :id: yr16-20/chd + :term: yr16-20 + :name: CHU Hoi-dick + :honorific_prefix: Hon + :honorific_suffix: '' + :gender: + # Tests that members with no listed affiliation are recorded as Independent + :faction: Independent + :email: info@chuhoidick.hk + :website: '' + :phone: 2809 2102 + :fax: 2811 2210 + :img: http://www.legco.gov.hk/images/mem_1620/chd.jpg + :area: New Territories West + :area_type: geographical + :source: http://www.legco.gov.hk/general/english/members/yr16-20/chd.htm