Sha256: ddc1a804400788814454ec283c9bf417be3c14874eed78ddd55fbe3b6673f514

Contents?: true

Size: 953 Bytes

Versions: 5

Compression:

Stored size: 953 Bytes

Contents

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'


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['sqlserver:test_sqlserver_odbc']
    test.invoke
  end
  
end


desc 'Test the default ODBC mode, taks sqlserver:test_sqlserver_odbc.'
task :test do
  test = Rake::Task['sqlserver:test_sqlserver_odbc']
  test.invoke
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activerecord-sqlserver-adapter-2.3.4 Rakefile
activerecord-sqlserver-adapter-2.3.3 Rakefile
activerecord-sqlserver-adapter-2.3.2 Rakefile
activerecord-sqlserver-adapter-2.3.1 Rakefile
activerecord-sqlserver-adapter-2.3 Rakefile