gitlab-org--gitlab-foss/spec/lib/gitlab/database_spec.rb
2015-12-09 11:55:42 +01:00

17 lines
471 B
Ruby

require 'spec_helper'
describe Gitlab::Database, lib: true do
# These are just simple smoke tests to check if the methods work (regardless
# of what they may return).
describe '.mysql?' do
subject { described_class.mysql? }
it { is_expected.to satisfy { |val| val == true || val == false } }
end
describe '.postgresql?' do
subject { described_class.postgresql? }
it { is_expected.to satisfy { |val| val == true || val == false } }
end
end