diff options
author | Jonne Haß <me@jhass.eu> | 2015-08-21 15:23:46 +0300 |
---|---|---|
committer | Jonne Haß <me@jhass.eu> | 2015-08-21 15:23:46 +0300 |
commit | d396d5555f1cadc36ddea73ca86485a11f63c6f3 (patch) | |
tree | 55b2ec2ed5ce9490ce1f4d004b769e6317ae68dd /spec/workers | |
parent | 3de942fd8811bda9fd34a1882837e86cf2dd9f78 (diff) | |
parent | 663835ed3ab0d270064490f57890d3864e80c8cc (diff) |
Merge branch 'stable' into develop
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/fetch_webfinger_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/fetch_webfinger_spec.rb b/spec/workers/fetch_webfinger_spec.rb index cfa83b24a..0a9469c75 100644 --- a/spec/workers/fetch_webfinger_spec.rb +++ b/spec/workers/fetch_webfinger_spec.rb @@ -3,7 +3,7 @@ require "spec_helper" describe Workers::FetchWebfinger do it "should webfinger and queue a job to fetch public posts" do @person = FactoryGirl.create(:person) - allow(Webfinger).to receive(:new).and_return(double(fetch: @person)) + allow(Person).to receive(:find_or_fetch_by_identifier).and_return(@person) expect(Diaspora::Fetcher::Public).to receive(:queue_for).exactly(1).times @@ -11,7 +11,7 @@ describe Workers::FetchWebfinger do end it "should webfinger and queue no job to fetch public posts if the person is not found" do - allow(Webfinger).to receive(:new).and_return(double(fetch: nil)) + allow(Person).to receive(:find_or_fetch_by_identifier).and_return(nil) expect(Diaspora::Fetcher::Public).not_to receive(:queue_for) |