matrix_test.rb in capybara-screenshot-diff-0.7.0 vs matrix_test.rb in capybara-screenshot-diff-0.7.1

- old
+ new

@@ -12,11 +12,11 @@ ENV[key] = value end puts '*' * 80 puts "Testing #{ruby} #{gemfile} #{env}" puts - system "chruby-exec #{ruby} -- bundle exec rake" || exit(1) + system("chruby-exec #{ruby} -- bundle exec rake") || exit(1) puts '*' * 80 end def use_gemfile(ruby, gemfile, update_gemfiles) puts '$' * 80 @@ -40,11 +40,12 @@ puts system "ruby-install --no-reinstall #{ruby}" || exit(1) bundler_gem_check_cmd = "chruby-exec #{ruby} -- gem query -i -n bundler >/dev/null" system "#{bundler_gem_check_cmd} || chruby-exec #{ruby} -- gem install bundler" || exit(1) travis['gemfile'].each do |gemfile| - if (travis['matrix']['exclude'].to_a + travis['matrix']['allowed_failures'].to_a) - .any? { |f| f['rvm'] == ruby && f['gemfile'] == gemfile } + if travis['matrix'] && + (travis['matrix']['exclude'].to_a + travis['matrix']['allowed_failures'].to_a) + .any? { |f| f['rvm'] == ruby && f['gemfile'] == gemfile } puts 'Skipping known failure.' next end use_gemfile(ruby, gemfile, update_gemfiles) do travis['env'].each do |env|