From d2db4280396b0cdc5ad48bb15f004172f0e9c6af Mon Sep 17 00:00:00 2001 From: Marin Jankovski Date: Mon, 16 Feb 2015 14:42:08 -0800 Subject: [PATCH] Fix stubbing in group feature. --- features/steps/groups.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/steps/groups.rb b/features/steps/groups.rb index d004322acc..74cc39d69f 100644 --- a/features/steps/groups.rb +++ b/features/steps/groups.rb @@ -313,11 +313,11 @@ class Spinach::Features::Groups < Spinach::FeatureSteps end step 'LDAP enabled' do - Gitlab.config.ldap.stub(:enabled).and_return(true) + Gitlab.config.ldap.should_receive(:enabled).and_return(true) end step 'LDAP disabled' do - Gitlab.config.ldap.stub(:enabled).and_return(false) + Gitlab.config.ldap.should_receive(:enabled).and_return(false) end step 'I add a new LDAP synchronization' do