Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix fakeweb urls

  • Loading branch information...
commit 08f35543c0a631ada6a9fa09e0c69c2321536794 1 parent 3a599e7
@jpmckinney jpmckinney authored
Showing with 7 additions and 7 deletions.
  1. +4 −4 spec/open_states_spec.rb
  2. +3 −3 spec/transparency_data_spec.rb
View
8 spec/open_states_spec.rb
@@ -8,15 +8,15 @@ module GovKit::OpenStates
# @todo The fixtures are out-of-date.
urls = [
- ['/bills/ca/20092010/AB667/', 'bill.response'],
+ ['/bills/ca/20092010/lower/AB%20667/', 'bill.response'],
['/bills/\?.*q=cooperatives.*', 'bill_query.response'],
['/bills/\?.*state=tx.*', 'bill_query.response'],
['/bills/\?.*q=professions.*', 'bill.response'],
['/bills/latest/\?', 'bill_query.response'],
- ['/legislators/2462/\?', 'legislator.response'],
+ ['/legislators/CAL000088/\?', 'legislator.response'],
['/legislators/410/\?', '410.response'],
- ['/legislators/401/\?', '401.response'],
- ['/legislators/404/\?', '404.response'],
+ ['/legislators/XXL123456/\?', '401.response'],
+ ['/legislators/CAL999999/\?', '404.response'],
['/legislators/\?.*state=zz.*', '404.response'],
['/legislators/\?.*state=ca.*', 'legislator.response'],
['/committees/MDC000012/', 'committee_find.response'],
View
6 spec/transparency_data_spec.rb
@@ -11,9 +11,9 @@ module GovKit::TransparencyData
['/contributions.json\?', 'contributions.response'],
['/lobbying.json\?', 'lobbyists_find_all.response'],
['/grants.json\?', 'grants_find_all.response'],
- ['/entities.json\?apikey=YOUR_OPENSTATES_API_KEY&search=$', 'entities_search.response'],
- ['/entities.json\?apikey=YOUR_OPENSTATES_API_KEY&search=harry%20pelosi', 'entities_search_limit_0.response'],
- ['/entities.json\?apikey=YOUR_OPENSTATES_API_KEY&search=nancy%2Bpelosi', 'entities_search_limit_1.response']
+ ['/entities.json\?apikey=&search=$', 'entities_search.response'],
+ ['/entities.json\?apikey=&search=harry%20pelosi', 'entities_search_limit_0.response'],
+ ['/entities.json\?apikey=&search=nancy%2Bpelosi', 'entities_search_limit_1.response']
]
urls.each do |u|
Please sign in to comment.
Something went wrong with that request. Please try again.