BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
15 deletions
+21
-15
index.html.haml
app/views/projects/tags/index.html.haml
+1
-0
sort_spec.rb
spec/features/projects/tags/sort_spec.rb
+0
-15
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
-
@sort
||=
sort_value_recently_updated
-
page_title
"Tags"
=
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