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
9b0c360b
Commit
9b0c360b
authored
Jan 07, 2016
by
Yorick Peterse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue sorting specs for ID changes
These specs assumed data was still sorted by timestamp, instead of by ID.
parent
5dc708e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
issues_spec.rb
spec/features/issues_spec.rb
+6
-6
No files found.
spec/features/issues_spec.rb
View file @
9b0c360b
...
...
@@ -127,15 +127,15 @@ describe 'Issues', feature: true do
it
'sorts by newest'
do
visit
namespace_project_issues_path
(
project
.
namespace
,
project
,
sort:
sort_value_recently_created
)
expect
(
first_issue
).
to
include
(
'
foo
'
)
expect
(
last_issue
).
to
include
(
'
baz
'
)
expect
(
first_issue
).
to
include
(
'
baz
'
)
expect
(
last_issue
).
to
include
(
'
foo
'
)
end
it
'sorts by oldest'
do
visit
namespace_project_issues_path
(
project
.
namespace
,
project
,
sort:
sort_value_oldest_created
)
expect
(
first_issue
).
to
include
(
'
baz
'
)
expect
(
last_issue
).
to
include
(
'
foo
'
)
expect
(
first_issue
).
to
include
(
'
foo
'
)
expect
(
last_issue
).
to
include
(
'
baz
'
)
end
it
'sorts by most recently updated'
do
...
...
@@ -190,8 +190,8 @@ describe 'Issues', feature: true do
sort:
sort_value_oldest_created
,
assignee_id:
user2
.
id
)
expect
(
first_issue
).
to
include
(
'
bar
'
)
expect
(
last_issue
).
to
include
(
'
foo
'
)
expect
(
first_issue
).
to
include
(
'
foo
'
)
expect
(
last_issue
).
to
include
(
'
bar
'
)
expect
(
page
).
not_to
have_content
'baz'
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