File: ruby-tests.rb

package info (click to toggle)
ruby-safe-yaml 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 336 kB
  • ctags: 164
  • sloc: ruby: 1,998; sh: 30; makefile: 8
file content (18 lines) | stat: -rw-r--r-- 243 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

yamlers=\
  case RUBY_VERSION
  when /1\.8/
    [""]
  when /1\.9/
    ["psych", "syck"]
  else # 2.0
    ["psych"]
  end



yamlers.each do |yamler|
  ENV["YAMLER"]=yamler
  system("#{ENV['RUBY_TEST_BIN']} /usr/bin/rake spec") or raise
end