Sha256: b4e426c1e0574e61e5c9f7f1f496cdcaa1ef5ea985379e4758f4a62063ce439a

Contents?: true

Size: 577 Bytes

Versions: 3

Compression:

Stored size: 577 Bytes

Contents

desc 'Run features for all languages'
task :i18n do
  dir = File.dirname(__FILE__)
  Dir["#{dir}/*"].each do |f|
    if File.directory?(f)
      lang = f[dir.length+1..-1]
      if examples_working?(lang)
        Dir.chdir(f) do
          puts "DIR: #{f}"
          rake("cucumber")
        end
      else
        STDERR.puts %{
!!!!!
!!!!!
!!!!! SKIPPING #{lang} (The examples are out of date - please help update them)
!!!!!
!!!!!
}
      end
    end
  end
end

task :default => :i18n

def examples_working?(lang)
  !%w{}.index(lang)
end

def rake(args)
  ruby($0, args)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cucumber-0.7.0.beta.3 examples/i18n/Rakefile
cucumber-0.7.0.beta.2 examples/i18n/Rakefile
cucumber-0.7.0.beta.1 examples/i18n/Rakefile