Commit 75a40ad5 authored by Robert Speicher's avatar Robert Speicher
Browse files

Change `foo.should_not` syntax to `expect(foo).not_to` in specs

parent b71dc723b026
......@@ -56,7 +56,7 @@
it "should unblock user in GitLab" do
access.allowed?
user.should_not be_blocked
expect(user).not_to be_blocked
end
end
end
......
......@@ -43,7 +43,7 @@
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
......
......@@ -12,8 +12,8 @@
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
......
......@@ -12,7 +12,7 @@
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 @@
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment