travis-api/spec/lib/model/build/config/matrix_spec.rb
Aakriti Gupta 65f1a29d86 Move travis-core files from /vendor to /lib.
- Re-factor
- Remove code for notifications
- Remove addons
- Remove travis-core gem.
- Ignore logs directory only
- Move core tests to spec/lib
2016-07-20 11:22:25 +02:00

12 lines
371 B
Ruby

require 'core_ext/hash/deep_symbolize_keys'
describe Build::Config::Matrix do
it 'can handle nil values in exclude matrix' do
-> { Build::Config::Matrix.new(matrix: { exclude: [nil] }).expand }.should_not raise_error
end
it 'can handle list values in exclude matrix' do
-> { Build::Config::Matrix.new(matrix: []).expand }.should_not raise_error
end
end