spec/actv/client/event_results_spec.rb in actv-1.1.6 vs spec/actv/client/event_results_spec.rb in actv-1.1.17

- old
+ new

@@ -19,17 +19,18 @@ end end context "performs a search with no results" do before do - stub_get("/v2/events/popular?topic=asdf"). - to_return(body: fixture("valid_search_no_event_results.json"), headers: { content_type: "application/json; charset=utf-8" }) + stub_request(:get, "http://api.amp.active.com/api/v1/events/asdf/asdf.json"). + with(:headers => {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3'}). + to_return(:status => 200, :body => "", :headers => {}) end it 'returns nil' do search_results = @client.event_results("asdf", "asdf",{}) search_results.should eql nil end end end -end \ No newline at end of file +end