summaryrefslogtreecommitdiff
path: root/spec/lib/system_check
diff options
context:
space:
mode:
authorGabriel Mazetto <brodock@gmail.com>2017-05-30 19:06:58 +0200
committerGabriel Mazetto <brodock@gmail.com>2017-05-31 14:33:03 +0200
commit3f187751d40a687ab9b76857c04849bab0f84357 (patch)
tree2165e91838e774e5c80dbd37eba88551526fe1e7 /spec/lib/system_check
parentbca5603740f77667dda6355c457ad1791b4fa42e (diff)
downloadgitlab-ce-3f187751d40a687ab9b76857c04849bab0f84357.tar.gz
Fixed and improved some existing checks and SystemCheck library
Diffstat (limited to 'spec/lib/system_check')
-rw-r--r--spec/lib/system_check/base_executor_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/lib/system_check/base_executor_spec.rb b/spec/lib/system_check/base_executor_spec.rb
index 139f7f3248f..4b379392da0 100644
--- a/spec/lib/system_check/base_executor_spec.rb
+++ b/spec/lib/system_check/base_executor_spec.rb
@@ -26,7 +26,7 @@ describe SystemCheck::BaseExecutor, lib: true do
subject << SimpleCheck
end
- it 'returns an array of classes' do
+ it 'returns a set of classes' do
expect(subject.checks).to include(SimpleCheck)
end
end
@@ -39,12 +39,14 @@ describe SystemCheck::BaseExecutor, lib: true do
it 'appends a new check to the Set' do
subject << OtherCheck
stored_checks = subject.checks.to_a
+
expect(stored_checks.first).to eq(SimpleCheck)
expect(stored_checks.last).to eq(OtherCheck)
end
it 'inserts unique itens only' do
subject << SimpleCheck
+
expect(subject.checks.size).to eq(1)
end
end