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
fdacc4ee
Commit
fdacc4ee
authored
May 04, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved to a view spec
parent
9ee274c0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
15 deletions
+21
-15
app/views/projects/tags/index.html.haml
app/views/projects/tags/index.html.haml
+1
-0
spec/features/projects/tags/sort_spec.rb
spec/features/projects/tags/sort_spec.rb
+0
-15
spec/views/projects/tags/index.html.haml_spec.rb
spec/views/projects/tags/index.html.haml_spec.rb
+20
-0
No files found.
app/views/projects/tags/index.html.haml
View file @
fdacc4ee
-
@no_container
=
true
-
@no_container
=
true
-
@sort
||=
sort_value_recently_updated
-
page_title
"Tags"
-
page_title
"Tags"
=
render
"projects/commits/head"
=
render
"projects/commits/head"
...
...
spec/features/projects/tags/sort_spec.rb
deleted
100644 → 0
View file @
9ee274c0
require
'spec_helper'
feature
'Tags sort dropdown'
,
:feature
do
let
(
:project
)
{
create
(
:project
)
}
before
do
login_as
(
:admin
)
visit
namespace_project_tags_path
(
project
.
namespace
,
project
)
end
it
'defaults sort dropdown to last updated'
do
expect
(
page
).
to
have_button
(
'Last updated'
)
end
end
spec/views/projects/tags/index.html.haml_spec.rb
0 → 100644
View file @
fdacc4ee
require
'spec_helper'
describe
'projects/tags/index'
,
:view
do
let
(
:project
)
{
create
(
:project
)
}
before
do
assign
(
:project
,
project
)
assign
(
:repository
,
project
.
repository
)
assign
(
:tags
,
[])
allow
(
view
).
to
receive
(
:current_ref
).
and_return
(
'master'
)
allow
(
view
).
to
receive
(
:can?
).
and_return
(
false
)
end
it
'defaults sort dropdown toggle to last updated'
do
render
expect
(
rendered
).
to
have_button
(
'Last updated'
)
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