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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
861129c3
Commit
861129c3
authored
Feb 19, 2016
by
Kamil Trzcinski
Committed by
James Edwards-Jones
Jan 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mock Dir::exist? in project_spec.rb
parent
06d96a9a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
spec/models/project_spec.rb
spec/models/project_spec.rb
+1
-2
No files found.
spec/models/project_spec.rb
View file @
861129c3
...
@@ -1074,8 +1074,7 @@ describe Project, models: true do
...
@@ -1074,8 +1074,7 @@ describe Project, models: true do
subject
{
project
.
pages_deployed?
}
subject
{
project
.
pages_deployed?
}
context
'if public folder does exist'
do
context
'if public folder does exist'
do
before
{
FileUtils
.
mkdir_p
(
project
.
public_pages_path
)
}
before
{
allow
(
Dir
).
to
receive
(
:exist?
).
with
(
project
.
public_pages_path
).
and_return
(
true
)
}
after
{
FileUtils
.
rmdir
(
project
.
public_pages_path
)
}
it
{
is_expected
.
to
be_truthy
}
it
{
is_expected
.
to
be_truthy
}
end
end
...
...
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