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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-31 15:08:33 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-31 15:08:33 +0300
commit1808454313ed75c92e1384466e8c83bfbc8ae25e (patch)
tree5c006c158fd796dc6d21e9bd771542f2fb0c24e2 /spec/lib/gitlab/runtime_spec.rb
parentfd3a95f07ae9cd78fecffcfa5de4494f933a7808 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/runtime_spec.rb')
-rw-r--r--spec/lib/gitlab/runtime_spec.rb17
1 files changed, 9 insertions, 8 deletions
diff --git a/spec/lib/gitlab/runtime_spec.rb b/spec/lib/gitlab/runtime_spec.rb
index 194ed49bb32..52976d925b9 100644
--- a/spec/lib/gitlab/runtime_spec.rb
+++ b/spec/lib/gitlab/runtime_spec.rb
@@ -5,6 +5,7 @@ require 'spec_helper'
describe Gitlab::Runtime do
before do
allow(described_class).to receive(:process_name).and_return('ruby')
+ stub_rails_env('production')
end
context "when unknown" do
@@ -47,7 +48,7 @@ describe Gitlab::Runtime do
expect(subject.sidekiq?).to be(false)
expect(subject.console?).to be(false)
expect(subject.rake?).to be(false)
- expect(subject.rspec?).to be(false)
+ expect(subject.test_suite?).to be(false)
end
it "reports its maximum concurrency" do
@@ -74,7 +75,7 @@ describe Gitlab::Runtime do
expect(subject.sidekiq?).to be(false)
expect(subject.console?).to be(false)
expect(subject.rake?).to be(false)
- expect(subject.rspec?).to be(false)
+ expect(subject.test_suite?).to be(false)
end
it "reports its maximum concurrency" do
@@ -106,7 +107,7 @@ describe Gitlab::Runtime do
expect(subject.puma?).to be(false)
expect(subject.console?).to be(false)
expect(subject.rake?).to be(false)
- expect(subject.rspec?).to be(false)
+ expect(subject.test_suite?).to be(false)
end
it "reports its maximum concurrency" do
@@ -131,7 +132,7 @@ describe Gitlab::Runtime do
expect(subject.sidekiq?).to be(false)
expect(subject.puma?).to be(false)
expect(subject.rake?).to be(false)
- expect(subject.rspec?).to be(false)
+ expect(subject.test_suite?).to be(false)
end
it "reports its maximum concurrency" do
@@ -139,14 +140,14 @@ describe Gitlab::Runtime do
end
end
- context "rspec" do
+ context "test suite" do
before do
- allow(described_class).to receive(:process_name).and_return('rspec')
+ stub_rails_env('test')
end
it "identifies itself" do
- expect(subject.identify).to eq(:rspec)
- expect(subject.rspec?).to be(true)
+ expect(subject.identify).to eq(:test_suite)
+ expect(subject.test_suite?).to be(true)
end
it "does not identify as others" do