spec/twitter/rest/api/geo_spec.rb in twitter-5.0.0.rc.1 vs spec/twitter/rest/api/geo_spec.rb in twitter-5.0.0
- old
+ new
@@ -63,20 +63,6 @@
expect(places).to be_a Twitter::GeoResults
expect(places.first.name).to eq("Bernal Heights")
end
end
- describe "#place_create" do
- before do
- stub_post("/1.1/geo/place.json").with(:body => {:name => "@sferik's Apartment", :token => "22ff5b1f7159032cf69218c4d8bb78bc", :contained_within => "41bcb736f84a799e", :lat => "37.783699", :long => "-122.393581"}).to_return(:body => fixture("place.json"), :headers => {:content_type => "application/json; charset=utf-8"})
- end
- it "requests the correct resource" do
- @client.place_create(:name => "@sferik's Apartment", :token => "22ff5b1f7159032cf69218c4d8bb78bc", :contained_within => "41bcb736f84a799e", :lat => "37.783699", :long => "-122.393581")
- expect(a_post("/1.1/geo/place.json").with(:body => {:name => "@sferik's Apartment", :token => "22ff5b1f7159032cf69218c4d8bb78bc", :contained_within => "41bcb736f84a799e", :lat => "37.783699", :long => "-122.393581"})).to have_been_made
- end
- it "returns a place" do
- place = @client.place_create(:name => "@sferik's Apartment", :token => "22ff5b1f7159032cf69218c4d8bb78bc", :contained_within => "41bcb736f84a799e", :lat => "37.783699", :long => "-122.393581")
- expect(place.name).to eq("Twitter HQ")
- end
- end
-
end