Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (28 sloc) 866 Bytes
require 'rake'
require 'rake/testtask'
require 'rbconfig'
task :test => 'test:all'
namespace :test do
desc 'Check formality of all locale files.'
task :all do
ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME'))
system(ruby, File.dirname(__FILE__) + '/rails/test/structure.rb')
require 'rspec/core'
require 'rspec/core/rake_task' do |spec|
spec.pattern = FileList['spec/**/*_spec.rb']
end"spec:unit") do |spec|
spec.pattern = 'spec/unit/**/*_spec.rb'
end"spec:integration") do |spec|
spec.pattern = 'spec/integration/**/*_spec.rb'
end do |spec|
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
require 'i18n-spec/tasks' # needs to be loaded after rspec
task :default => :spec
Jump to Line
Something went wrong with that request. Please try again.