Skip to content
Snippets Groups Projects
Commit 0e590ff01265 authored by Balasankar "Balu" C's avatar Balasankar "Balu" C
Browse files

Stub redis version check methods in tests


Signed-off-by: default avatarBalasankar "Balu" C <balasankar@gitlab.com>
parent 42e8bfe77f83
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,8 @@
stub_command('/opt/gitlab/embedded/bin/psql --version').and_return("fake_version")
allow(VersionHelper).to receive(:version).and_call_original
allow(VersionHelper).to receive(:version).with('/opt/gitlab/embedded/bin/psql --version').and_return('fake_psql_version')
allow_any_instance_of(RedisHelper).to receive(:installed_version).and_return('3.2.12')
allow_any_instance_of(RedisHelper).to receive(:running_version).and_return('3.2.12')
stub_command('/sbin/init --version | grep upstart')
stub_command('systemctl | grep "\-\.mount"')
# ChefSpec::SoloRunner doesn't support Chef.event_handler, so stub it
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment