Skip to content
Extraits de code Groupes Projets
requests_controller_spec.rb 674 octets
Newer Older
  • Learn to ignore specific revisions
  • Raphael's avatar
    Raphael a validé
    #   Copyright (c) 2010, Diaspora Inc.  This file is
    
    Raphael's avatar
    Raphael a validé
    #   licensed under the Affero General Public License version 3.  See
    #   the COPYRIGHT file.
    
    require 'spec_helper'
    
    include ApplicationHelper
    include RequestsHelper
    
    describe RequestsController do
    
      before do
    
        stub_success("tom@tom.joindiaspora.com")
    
    
        @tom = Redfinger.finger('tom@tom.joindiaspora.com')
    
        stub!(:current_user).and_return @user
    
      end
      it 'should return the correct tag and url for a given address' do
    
        relationship_flow('tom@tom.joindiaspora.com')[:friend].receive_url.include?("receive/user").should ==  true