Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
be98ee25
Commit
be98ee25
authored
Jun 06, 2016
by
Paco Guzman
Committed by
Yorick Peterse
Jun 10, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing specs stubbed objects cannot access database
parent
136a4ea3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
spec/lib/banzai/pipeline/wiki_pipeline_spec.rb
spec/lib/banzai/pipeline/wiki_pipeline_spec.rb
+2
-2
spec/models/project_services/bamboo_service_spec.rb
spec/models/project_services/bamboo_service_spec.rb
+1
-1
spec/models/project_services/teamcity_service_spec.rb
spec/models/project_services/teamcity_service_spec.rb
+1
-1
No files found.
spec/lib/banzai/pipeline/wiki_pipeline_spec.rb
View file @
be98ee25
...
@@ -52,8 +52,8 @@ describe Banzai::Pipeline::WikiPipeline do
...
@@ -52,8 +52,8 @@ describe Banzai::Pipeline::WikiPipeline do
end
end
describe
"Links"
do
describe
"Links"
do
let
(
:namespace
)
{
build_stubbed
(
:namespace
,
name:
"wiki_link_ns"
)
}
let
(
:namespace
)
{
create
(
:namespace
,
name:
"wiki_link_ns"
)
}
let
(
:project
)
{
build_stubbed
(
:empty_project
,
:public
,
name:
"wiki_link_project"
,
namespace:
namespace
)
}
let
(
:project
)
{
create
(
:empty_project
,
:public
,
name:
"wiki_link_project"
,
namespace:
namespace
)
}
let
(
:project_wiki
)
{
ProjectWiki
.
new
(
project
,
double
(
:user
))
}
let
(
:project_wiki
)
{
ProjectWiki
.
new
(
project
,
double
(
:user
))
}
let
(
:page
)
{
build
(
:wiki_page
,
wiki:
project_wiki
,
page:
OpenStruct
.
new
(
url_path:
'nested/twice/start-page'
))
}
let
(
:page
)
{
build
(
:wiki_page
,
wiki:
project_wiki
,
page:
OpenStruct
.
new
(
url_path:
'nested/twice/start-page'
))
}
...
...
spec/models/project_services/bamboo_service_spec.rb
View file @
be98ee25
...
@@ -194,7 +194,7 @@ describe BambooService, models: true do
...
@@ -194,7 +194,7 @@ describe BambooService, models: true do
def
service
(
bamboo_url:
'http://gitlab.com'
)
def
service
(
bamboo_url:
'http://gitlab.com'
)
described_class
.
create
(
described_class
.
create
(
project:
build_stubbed
(
:empty_project
),
project:
create
(
:empty_project
),
properties:
{
properties:
{
bamboo_url:
bamboo_url
,
bamboo_url:
bamboo_url
,
username:
'mic'
,
username:
'mic'
,
...
...
spec/models/project_services/teamcity_service_spec.rb
View file @
be98ee25
...
@@ -182,7 +182,7 @@ describe TeamcityService, models: true do
...
@@ -182,7 +182,7 @@ describe TeamcityService, models: true do
def
service
(
teamcity_url:
'http://gitlab.com'
)
def
service
(
teamcity_url:
'http://gitlab.com'
)
described_class
.
create
(
described_class
.
create
(
project:
build_stubbed
(
:empty_project
),
project:
create
(
:empty_project
),
properties:
{
properties:
{
teamcity_url:
teamcity_url
,
teamcity_url:
teamcity_url
,
username:
'mic'
,
username:
'mic'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment