Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-06-14 01:19:24 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-06-14 01:19:24 +0300
commit75a40ad5bcee37f43fcfe89789dbd8c65be56c21 (patch)
tree498acf2d595e0206e43ed4d5097525ae999083c2 /spec/services
parent0b3c97422136683357cdb4433a5ef0aa8858c18d (diff)
Change `foo.should_not` syntax to `expect(foo).not_to` in specs
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/destroy_group_service_spec.rb4
-rw-r--r--spec/services/projects/destroy_service_spec.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/services/destroy_group_service_spec.rb b/spec/services/destroy_group_service_spec.rb
index 24e439503e7..2a7372b986e 100644
--- a/spec/services/destroy_group_service_spec.rb
+++ b/spec/services/destroy_group_service_spec.rb
@@ -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
diff --git a/spec/services/projects/destroy_service_spec.rb b/spec/services/projects/destroy_service_spec.rb
index cdf576cc0c1..381008def5f 100644
--- a/spec/services/projects/destroy_service_spec.rb
+++ b/spec/services/projects/destroy_service_spec.rb
@@ -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