Sha256: c9211e052caebcc7d840edb16acb10da30cc9605d3e1df56d72d01c41f7eb6c2

Contents?: true

Size: 1.11 KB

Versions: 25

Compression:

Stored size: 1.11 KB

Contents

require 'rubygems'
require 'active_record'
require 'tmpdir'

ActiveRecord::ActiveRecordError # hack for https://rails.lighthouseapp.com/projects/8994/tickets/2577-when-using-activerecordassociations-outside-of-rails-a-nameerror-is-thrown

RUBY = File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']).sub(/.*\s.*/m, '"\&"')
RUBYDOCTEST = ENV['RUBYDOCTEST'] || "#{RUBY} -S rubydoctest"

$:.unshift File.expand_path('../../hobo_support/lib', __FILE__)
$:.unshift File.expand_path('../lib', __FILE__)
require 'hobo_support'
require 'hobo_fields'

GEM_ROOT = File.expand_path('../', __FILE__)
TESTAPP_PATH = File.join Dir.tmpdir, 'hobo_fields_testapp'
BIN = File.expand_path('../bin/hobofields', __FILE__)
require 'hobo_support/common_tasks'
include HoboSupport::CommonTasks


namespace "test" do
  desc "Run the doctests"
  task :doctest do |t|
    files=Dir['test/*.rdoctest'].map {|f| File.expand_path(f)}.join(' ')
    exit(1) if !system("#{RUBYDOCTEST} #{files}")
  end

  desc "Run the unit tests"
  task :unit do |t|
    Dir["test/test_*.rb"].each do |f|
      exit(1) if !system("#{RUBY} #{f}")
    end
  end

end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
hobo_fields-1.3.3 Rakefile
hobo_fields-1.3.2 Rakefile
hobo_fields-1.3.1 Rakefile
hobo_fields-1.3.0 Rakefile
hobo_fields-1.3.0.RC4 Rakefile
hobo_fields-1.3.0.RC3 Rakefile
hobo_fields-1.3.0.RC2 Rakefile
hobo_fields-1.3.0.RC1 Rakefile
hobo_fields-1.3.0.RC Rakefile
hobo_fields-1.3.0.pre31 Rakefile
hobo_fields-1.3.0.pre29 Rakefile
hobo_fields-1.3.0.pre28 Rakefile
hobo_fields-1.3.0.pre27 Rakefile
hobo_fields-1.3.0.pre26 Rakefile
hobo_fields-1.3.0.pre25 Rakefile
hobo_fields-1.3.0.pre24 Rakefile
hobo_fields-1.3.0.pre23 Rakefile
hobo_fields-1.3.0.pre22 Rakefile
hobo_fields-1.3.0.pre21 Rakefile
hobo_fields-1.3.0.pre20 Rakefile