fix failing specs

This commit is contained in:
Philipp Tessenow
2014-07-16 17:12:36 +02:00
parent a7740a4c8e
commit 2f2c6e15b7
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ sys_api_enabled:
sys_api_key:
default: ''
repository_authentication_caching_enabled:
default: true
default: 1
commit_ref_keywords:
default: 'refs,references,IssueID'
commit_fix_keywords:
+2 -1
View File
@@ -21,6 +21,7 @@ module OpenProjectRepositoryAuthenticationSpecs
:project => random_project)
Setting.stub(:sys_api_key).and_return("12345678")
Setting.stub(:sys_api_enabled?).and_return(true)
Setting.stub(:repository_authentication_caching_enabled?).and_return(true)
end
describe :repo_auth, "for valid login, but no access to repo_auth" do
@@ -204,7 +205,7 @@ module OpenProjectRepositoryAuthenticationSpecs
describe "with caching disabled" do
before do
Setting.stub(:repository_authentication_caching_enabled?).and_return false
Setting.stub(:repository_authentication_caching_enabled?).and_return(false)
end
it 'should not use a cache' do