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
Jérome Perrin
gitlab-ce
Commits
75d48ae3
Commit
75d48ae3
authored
Aug 24, 2016
by
winniehell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add failing test for #21334
parent
02591b04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
spec/lib/extracts_path_spec.rb
spec/lib/extracts_path_spec.rb
+10
-0
No files found.
spec/lib/extracts_path_spec.rb
View file @
75d48ae3
...
...
@@ -51,6 +51,16 @@ describe ExtractsPath, lib: true do
expect
(
@path
).
to
eq
(
params
[
:path
])
end
end
context
'subclass overrides get_id'
do
it
'uses ref returned by get_id'
do
allow_any_instance_of
(
self
.
class
).
to
receive
(
:get_id
){
'38008cb17ce1466d8fec2dfa6f6ab8dcfe5cf49e'
}
assign_ref_vars
expect
(
@id
).
to
eq
(
get_id
)
end
end
end
describe
'#extract_ref'
do
...
...
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