Sha256: ace8f5b3b9f7e2d456fd5225a6af0007d1d5d06c8b2b06e3be46bf354eb41ca6

Contents?: true

Size: 1.28 KB

Versions: 2

Compression:

Stored size: 1.28 KB

Contents

def member_response
  File.read('example_data/member.json')
end

def limited_legislator_attributes
  <<-JSON
    {"id":"B000444",
    "name":"Joseph Biden",
    "party":"D",
    "state":"DE",
    "district":"N/A"}
  JSON
end

def full_legislator_attributes
  <<-JSON
  {
     "member_id":"B000444",
     "name":"Joseph Biden",
     "date_of_birth":"1942-11-20",
     "gender":"M",
     "url":"http://biden.senate.gov",
     "govtrack_id":"300008",
     "roles":[
        {
           "congress":"111",
           "chamber":"Senate",
           "title":"Senator, 2nd Class",
           "state":"DE",
           "party":"D",
           "district":"N/A",
           "start_date":"2009-01-06",
           "end_date":"2009-01-20"
        },
        {
           "congress":"110",
           "chamber":"Senate",
           "title":"Senator, 2nd Class",
           "state":"DE",
           "party":"D",
           "district":"N/A",
           "start_date":"2007-01-04",
           "end_date":"2009-01-03"
        }
     ]
   }
  JSON
end

def role_response_fragment
  <<-JSON
    {
       "congress":"111",
       "chamber":"Senate",
       "title":"Senator, 2nd Class",
       "state":"DE",
       "party":"D",
       "district":"N/A",
       "start_date":"2009-01-06",
       "end_date":"2009-01-20"
    }
  JSON
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hoverbird-ny-times-congress-1.0.0 spec/example_data/example_data.rb
hoverbird-ny-times-congress-1.1.0 spec/example_data/example_data.rb