2015-10-07 06:30:10 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2015-12-09 05:55:36 -05:00
|
|
|
describe Gitlab::Database, lib: true do
|
2015-10-07 06:30:10 -04:00
|
|
|
# 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
|