spec/controllers/authenticated_controller_spec.rb in foyer-0.1.1 vs spec/controllers/authenticated_controller_spec.rb in foyer-0.1.2

- old
+ new

@@ -22,10 +22,10 @@ describe "after authenticating" do let(:user) { OpenStruct.new.tap { |i| i.id = rand(10000) } } before do sign_in user - allow(controller).to receive(:find_user_by_id).and_return(user) + Foyer.user_finder = lambda { |_| user } end it "allows user to access the action" do get :index