Skip to content

Commit

Permalink
[ci] Add a test for DistributionStrategySLE15#sp_version
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeuken committed Jun 23, 2018
1 parent db02ace commit 07ccfbb
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
require 'rails_helper'

RSpec.describe ObsFactory::DistributionStrategySLE15 do
let(:stategy) { ObsFactory::DistributionStrategySLE15.new(project: create(:project)) }

describe '#sp_version' do
it 'returns the correct service pack version' do
expect(stategy.sp_version('SUSE:SLE-15:GA')).to be_nil
expect(stategy.sp_version('SUSE:SLE-15-SP4:GA')).to eq('SP4')
end
end
end

0 comments on commit 07ccfbb

Please sign in to comment.