diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-06-13 18:19:24 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-06-13 18:19:24 -0400 |
commit | 75a40ad5bcee37f43fcfe89789dbd8c65be56c21 (patch) | |
tree | 498acf2d595e0206e43ed4d5097525ae999083c2 /spec/services | |
parent | 0b3c97422136683357cdb4433a5ef0aa8858c18d (diff) | |
download | gitlab-ce-75a40ad5bcee37f43fcfe89789dbd8c65be56c21.tar.gz |
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.rb | 4 | ||||
-rw-r--r-- | spec/services/projects/destroy_service_spec.rb | 4 |
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 |