From 4a09eb2ece79551c06cba77fc9e3299657d06cf8 Mon Sep 17 00:00:00 2001 From: zhitomirskiyi Date: Wed, 27 Oct 2010 10:14:24 -0700 Subject: [PATCH] IZ MS update pending aspects controller spec --- spec/controllers/aspects_controller_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/controllers/aspects_controller_spec.rb b/spec/controllers/aspects_controller_spec.rb index b762a49ba..7635bbfc1 100644 --- a/spec/controllers/aspects_controller_spec.rb +++ b/spec/controllers/aspects_controller_spec.rb @@ -54,7 +54,8 @@ describe AspectsController do describe "#move_friend" do let(:opts) { {:friend_id => "person_id", :from => "from_aspect_id", :to => {:to => "to_aspect_id"}}} it 'calls the move_friend_method' do - pending "need to figure out how to stub current_user to return our test @user" + pending "need to figure out what is the deal with remote requests" + @controller.stub!(:current_user).and_return(@user) @user.should_receive(:move_friend).with( :friend_id => "person_id", :from => "from_aspect_id", :to => "to_aspect_id") post :move_friend, opts end