test/integration/legislators_test.rb in sunlight-congress-0.0.1 vs test/integration/legislators_test.rb in sunlight-congress-1.0.0
- old
+ new
@@ -5,10 +5,9 @@
def setup
Sunlight::Congress.api_key = "thisismykey"
end
def test_legislators_by_zipcode
-
stub_request(:get, "http://congress.api.sunlightfoundation.com/legislators/locate?apikey=thisismykey&zip=90210")
.to_return(body: '{"results":[{"first_name":"Joe"}]}')
legislators = Sunlight::Congress::Legislator.by_zipcode(90210)