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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
4d89445d
Commit
4d89445d
authored
Jan 09, 2020
by
Vitali Tatarintev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix grammar in specs
parent
af7c6174
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
spec/lib/sentry/client/issue_spec.rb
spec/lib/sentry/client/issue_spec.rb
+10
-10
No files found.
spec/lib/sentry/client/issue_spec.rb
View file @
4d89445d
...
...
@@ -9,13 +9,13 @@ describe Sentry::Client::Issue do
let
(
:client
)
{
Sentry
::
Client
.
new
(
sentry_url
,
token
)
}
describe
'#list_issues'
do
shared_examples
'issues ha
s
correct return type'
do
|
klass
|
shared_examples
'issues ha
ve
correct return type'
do
|
klass
|
it
"returns objects of type
#{
klass
}
"
do
expect
(
subject
[
:issues
]).
to
all
(
be_a
(
klass
)
)
end
end
shared_examples
'issues ha
s
correct length'
do
|
length
|
shared_examples
'issues ha
ve
correct length'
do
|
length
|
it
{
expect
(
subject
[
:issues
].
length
).
to
eq
(
length
)
}
end
...
...
@@ -46,8 +46,8 @@ describe Sentry::Client::Issue do
it_behaves_like
'calls sentry api'
it_behaves_like
'issues ha
s
correct return type'
,
Gitlab
::
ErrorTracking
::
Error
it_behaves_like
'issues ha
s
correct length'
,
1
it_behaves_like
'issues ha
ve
correct return type'
,
Gitlab
::
ErrorTracking
::
Error
it_behaves_like
'issues ha
ve
correct length'
,
1
shared_examples
'has correct external_url'
do
context
'external_url'
do
...
...
@@ -168,8 +168,8 @@ describe Sentry::Client::Issue do
it_behaves_like
'calls sentry api'
it_behaves_like
'issues ha
s
correct return type'
,
Gitlab
::
ErrorTracking
::
Error
it_behaves_like
'issues ha
s
correct length'
,
1
it_behaves_like
'issues ha
ve
correct return type'
,
Gitlab
::
ErrorTracking
::
Error
it_behaves_like
'issues ha
ve
correct length'
,
1
it_behaves_like
'has correct external_url'
end
...
...
@@ -203,8 +203,8 @@ describe Sentry::Client::Issue do
it_behaves_like
'calls sentry api'
it_behaves_like
'issues ha
s
correct return type'
,
Gitlab
::
ErrorTracking
::
Error
it_behaves_like
'issues ha
s
correct length'
,
1
it_behaves_like
'issues ha
ve
correct return type'
,
Gitlab
::
ErrorTracking
::
Error
it_behaves_like
'issues ha
ve
correct length'
,
1
end
context
'when cursor is present'
do
...
...
@@ -213,8 +213,8 @@ describe Sentry::Client::Issue do
it_behaves_like
'calls sentry api'
it_behaves_like
'issues ha
s
correct return type'
,
Gitlab
::
ErrorTracking
::
Error
it_behaves_like
'issues ha
s
correct length'
,
1
it_behaves_like
'issues ha
ve
correct return type'
,
Gitlab
::
ErrorTracking
::
Error
it_behaves_like
'issues ha
ve
correct length'
,
1
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