
- Re-factor - Remove code for notifications - Remove addons - Remove travis-core gem. - Ignore logs directory only - Move core tests to spec/lib
27 lines
570 B
Ruby
27 lines
570 B
Ruby
require 'travis/model/build/config/group'
|
|
|
|
describe Build::Config::Group do
|
|
subject { described_class.new(config) }
|
|
let(:config) { { dist: 'bork' } }
|
|
|
|
it 'sets group to the default' do
|
|
subject.run[:group].should eql(described_class::DEFAULT_GROUP)
|
|
end
|
|
|
|
context 'with :group' do
|
|
let(:config) { { group: 'foo' } }
|
|
|
|
it 'is a no-op' do
|
|
subject.run[:group].should eql('foo')
|
|
end
|
|
end
|
|
|
|
context "with 'group'" do
|
|
let(:config) { { 'group' => 'bar' } }
|
|
|
|
it 'is a no-op' do
|
|
subject.run['group'].should eql('bar')
|
|
end
|
|
end
|
|
end
|