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
75a40ad5
Commit
75a40ad5
authored
Jun 13, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change `foo.should_not` syntax to `expect(foo).not_to` in specs
parent
0b3c9742
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
access_spec.rb
spec/lib/gitlab/ldap/access_spec.rb
+1
-1
irker_service_spec.rb
spec/models/project_services/irker_service_spec.rb
+1
-1
destroy_group_service_spec.rb
spec/services/destroy_group_service_spec.rb
+2
-2
destroy_service_spec.rb
spec/services/projects/destroy_service_spec.rb
+2
-2
No files found.
spec/lib/gitlab/ldap/access_spec.rb
View file @
75a40ad5
...
...
@@ -56,7 +56,7 @@ describe Gitlab::LDAP::Access do
it
"should unblock user in GitLab"
do
access
.
allowed?
user
.
should_not
be_blocked
expect
(
user
).
not_to
be_blocked
end
end
end
...
...
spec/models/project_services/irker_service_spec.rb
View file @
75a40ad5
...
...
@@ -43,7 +43,7 @@ describe IrkerService do
let
(
:_recipients
)
{
'a b c d'
}
it
'should add an error if there is too many recipients'
do
subject
.
send
:check_recipients_count
subject
.
errors
.
should_not
be_blank
expect
(
subject
.
errors
).
not_to
be_blank
end
end
...
...
spec/services/destroy_group_service_spec.rb
View file @
75a40ad5
...
...
@@ -12,8 +12,8 @@ describe DestroyGroupService do
destroy_group
(
group
,
user
)
end
it
{
Group
.
all
.
should_not
include
(
group
)
}
it
{
Project
.
all
.
should_not
include
(
project
)
}
it
{
expect
(
Group
.
all
).
not_to
include
(
group
)
}
it
{
expect
(
Project
.
all
).
not_to
include
(
project
)
}
end
context
'file system'
do
...
...
spec/services/projects/destroy_service_spec.rb
View file @
75a40ad5
...
...
@@ -12,7 +12,7 @@ describe Projects::DestroyService do
Sidekiq
::
Testing
.
inline!
{
destroy_project
(
project
,
user
,
{})
}
end
it
{
Project
.
all
.
should_not
include
(
project
)
}
it
{
expect
(
Project
.
all
).
not_to
include
(
project
)
}
it
{
Dir
.
exists?
(
path
).
should
be_falsey
}
it
{
Dir
.
exists?
(
remove_path
).
should
be_falsey
}
end
...
...
@@ -23,7 +23,7 @@ describe Projects::DestroyService do
Sidekiq
::
Testing
.
fake!
{
destroy_project
(
project
,
user
,
{})
}
end
it
{
Project
.
all
.
should_not
include
(
project
)
}
it
{
expect
(
Project
.
all
).
not_to
include
(
project
)
}
it
{
Dir
.
exists?
(
path
).
should
be_falsey
}
it
{
Dir
.
exists?
(
remove_path
).
should
be_truthy
}
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