Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #26 from oneacross/master

Fix open_congress_spec to use new uri
  • Loading branch information...
commit 32ac2de93430ee21aaaf00838b3e1997711793cf 2 parents 3fbf203 + 30dfd16
@NateBarnes NateBarnes authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/open_congress_spec.rb
View
4 spec/open_congress_spec.rb
@@ -4,7 +4,7 @@ module GovKit::OpenCongress
describe GovKit::OpenCongress do
before(:all) do
@oc_objs = [Bill, Person]
- base_uri = "http://www.opencongress.org/api/"
+ base_uri = "http://api.opencongress.org/"
# An array of uris and filenames
# Use FakeWeb to intercept net requests;
@@ -27,7 +27,7 @@ module GovKit::OpenCongress
it "should construct a url properly" do
@oc_objs.each do |klass|
- klass.construct_url(klass.to_s.split("::").last, {}).should == "http://www.opencongress.org/api/#{klass.to_s.split("::").last}?format=json"
+ klass.construct_url(klass.to_s.split("::").last, {}).should == "http://api.opencongress.org/#{klass.to_s.split("::").last}?format=json"
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.