Change foo.should_not
syntax to expect(foo).not_to
in specs
This commit is contained in:
parent
0b3c974221
commit
75a40ad5bc
4 changed files with 6 additions and 6 deletions
|
@ -56,7 +56,7 @@ describe Gitlab::LDAP::Access do
|
||||||
|
|
||||||
it "should unblock user in GitLab" do
|
it "should unblock user in GitLab" do
|
||||||
access.allowed?
|
access.allowed?
|
||||||
user.should_not be_blocked
|
expect(user).not_to be_blocked
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -43,7 +43,7 @@ describe IrkerService do
|
||||||
let(:_recipients) { 'a b c d' }
|
let(:_recipients) { 'a b c d' }
|
||||||
it 'should add an error if there is too many recipients' do
|
it 'should add an error if there is too many recipients' do
|
||||||
subject.send :check_recipients_count
|
subject.send :check_recipients_count
|
||||||
subject.errors.should_not be_blank
|
expect(subject.errors).not_to be_blank
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,8 @@ describe DestroyGroupService do
|
||||||
destroy_group(group, user)
|
destroy_group(group, user)
|
||||||
end
|
end
|
||||||
|
|
||||||
it { Group.all.should_not include(group) }
|
it { expect(Group.all).not_to include(group) }
|
||||||
it { Project.all.should_not include(project) }
|
it { expect(Project.all).not_to include(project) }
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'file system' do
|
context 'file system' do
|
||||||
|
|
|
@ -12,7 +12,7 @@ describe Projects::DestroyService do
|
||||||
Sidekiq::Testing.inline! { destroy_project(project, user, {}) }
|
Sidekiq::Testing.inline! { destroy_project(project, user, {}) }
|
||||||
end
|
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?(path).should be_falsey }
|
||||||
it { Dir.exists?(remove_path).should be_falsey }
|
it { Dir.exists?(remove_path).should be_falsey }
|
||||||
end
|
end
|
||||||
|
@ -23,7 +23,7 @@ describe Projects::DestroyService do
|
||||||
Sidekiq::Testing.fake! { destroy_project(project, user, {}) }
|
Sidekiq::Testing.fake! { destroy_project(project, user, {}) }
|
||||||
end
|
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?(path).should be_falsey }
|
||||||
it { Dir.exists?(remove_path).should be_truthy }
|
it { Dir.exists?(remove_path).should be_truthy }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue