debian-mirror-gitlab/spec/models/project_ci_cd_setting_spec.rb

25 lines
483 B
Ruby
Raw Normal View History

2018-10-15 14:42:47 +05:30
# frozen_string_literal: true
require 'spec_helper'
describe ProjectCiCdSetting do
describe '.available?' do
before do
described_class.reset_column_information
end
it 'returns true' do
expect(described_class).to be_available
end
it 'memoizes the schema version' do
expect(ActiveRecord::Migrator)
.to receive(:current_version)
.and_call_original
.once
2.times { described_class.available? }
end
end
end