diaspora/spec/models/job/update_service_users_spec.rb
2011-09-12 17:02:40 -07:00

18 lines
486 B
Ruby

require 'spec_helper'
describe Job::UpdateServiceUsers do
before do
@user = alice
@post = @user.post(:status_message, :text => "hello", :to =>@user.aspects.first.id)
@service = Services::Facebook.new(:access_token => "yeah")
@user.services << @service
end
it 'calls the update_friends for the service' do
Service.stub!(:find).and_return(@service)
@service.should_receive(:save_friends)
Job::UpdateServiceUsers.perform(@service.id)
end
end