Sha256: 0d19b2abc5724e0a809e49ac27154505b4377d87b910bdabb83e8f14e9d8d8a1

Contents?: true

Size: 736 Bytes

Versions: 2

Compression:

Stored size: 736 Bytes

Contents

namespace :sqlserver do
  
  ['sqlserver','sqlserver_odbc'].each do |adapter|
    
    Rake::TestTask.new("test_#{adapter}") do |t|
      t.libs << "test" 
      t.libs << "test/connections/native_#{adapter}"
      t.libs << "../../../rails/activerecord/test/"
      t.test_files = (
        Dir.glob("test/cases/**/*_test_sqlserver.rb").sort + 
        Dir.glob("../../../rails/activerecord/test/**/*_test.rb").sort )
      t.verbose = true
    end
    
    namespace adapter do
      task :test => "test_#{adapter}"
    end

  end
  
  desc 'Test with unicode types enabled.'
  task :test_unicode_types do
    ENV['ENABLE_DEFAULT_UNICODE_TYPES'] = 'true'
    test = Rake::Task['test_sqlserver_odbc']
    test.invoke
  end
  
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activerecord-sqlserver-adapter-2.2.19 tasks/sqlserver.rake
activerecord-sqlserver-adapter-2.2.18 tasks/sqlserver.rake