mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
fix failing specs
This commit is contained in:
+1
-1
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user