Permalink
Browse files

Fisting arel specs -- still needs tree_manager and cleanup

  • Loading branch information...
1 parent 7959e55 commit e1ebe6e949ef3674434bfa90d271a7b74c2ac153 @zenspider zenspider committed Oct 18, 2010
Showing with 6,108 additions and 404 deletions.
  1. +26 −0 .autotest
  2. +5 −1 Rakefile
  3. +5,725 −0 TAGS
  4. +1 −5 lib/arel/table.rb
  5. +0 −21 spec/nodes/select_core_spec.rb
  6. +0 −3 spec/spec.opts
  7. +0 −18 spec/spec_helper.rb
  8. +0 −6 spec/support/check.rb
  9. +0 −1 spec/support/matchers.rb
  10. +0 −24 spec/support/matchers/be_like.rb
  11. +83 −83 spec/attributes/attribute_spec.rb → test/attributes/test_attribute.rb
  12. +2 −2 spec/nodes/count_spec.rb → test/nodes/test_count.rb
  13. +2 −3 spec/nodes/delete_statement_spec.rb → test/nodes/test_delete_statement.rb
  14. +10 −8 spec/nodes/equality_spec.rb → test/nodes/test_equality.rb
  15. +5 −5 spec/nodes/insert_statement_spec.rb → test/nodes/test_insert_statement.rb
  16. +6 −4 spec/nodes/or_spec.rb → test/nodes/test_or.rb
  17. +22 −0 test/nodes/test_select_core.rb
  18. +2 −3 spec/nodes/select_statement_spec.rb → test/nodes/test_select_statement.rb
  19. +5 −3 spec/nodes/sql_literal_spec.rb → test/nodes/test_sql_literal.rb
  20. +1 −1 spec/nodes/sum_spec.rb → test/nodes/test_sum.rb
  21. +5 −5 spec/nodes/update_statement_spec.rb → test/nodes/test_update_statement.rb
  22. +21 −0 test/spec_helper.rb
  23. 0 {spec → test}/support/fake_record.rb
  24. +1 −1 spec/activerecord_compat_spec.rb → test/test_activerecord_compat.rb
  25. +6 −6 spec/attributes_spec.rb → test/test_attributes.rb
  26. +3 −3 spec/crud_spec.rb → test/test_crud.rb
  27. +15 −14 spec/delete_manager_spec.rb → test/test_delete_manager.rb
  28. +22 −23 spec/insert_manager_spec.rb → test/test_insert_manager.rb
  29. +65 −65 spec/select_manager_spec.rb → test/test_select_manager.rb
  30. +31 −53 spec/table_spec.rb → test/test_table.rb
  31. +20 −19 spec/update_manager_spec.rb → test/test_update_manager.rb
  32. +2 −2 spec/visitors/join_sql_spec.rb → test/visitors/test_join_sql.rb
  33. +9 −9 spec/visitors/oracle_spec.rb → test/visitors/test_oracle.rb
  34. +1 −1 spec/visitors/postgres_spec.rb → test/visitors/test_postgres.rb
  35. +12 −12 spec/visitors/to_sql_spec.rb → test/visitors/test_to_sql.rb
View
@@ -0,0 +1,26 @@
+# -*- ruby -*-
+
+# require 'autotest/restart'
+
+ENV['GEM_PATH'] = "tmp/isolate/ruby-1.8"
+
+module Autotest::Restart
+ Autotest.add_hook :updated do |at, *args|
+ if args.flatten.include? ".autotest" then
+ warn "Detected change to .autotest, restarting"
+ cmd = %w(autotest)
+ cmd << " -v" if $v
+ cmd += ARGV
+
+ exec(*cmd)
+ end
+ end
+end
+
+Autotest.add_hook :initialize do |at|
+ at.add_exception 'tmp'
+ at.testlib = "minitest/autorun"
+
+ at.find_directories = ARGV unless ARGV.empty?
+end
+
View
@@ -2,6 +2,7 @@ require "rubygems"
gem 'hoe', '>= 2.1.0'
require 'hoe'
+Hoe.plugin :isolate
Hoe.plugin :gemspec # `gem install hoe-gemspec`
Hoe.spec 'arel' do
@@ -13,5 +14,8 @@ Hoe.spec 'arel' do
self.readme_file = 'README.markdown'
self.extra_rdoc_files = FileList['README.markdown']
self.extra_dev_deps << ['rspec', '~> 1.3.0']
- self.testlib = :rspec
+ self.extra_dev_deps << ['ZenTest']
+ self.extra_dev_deps << ['minitest']
+ self.extra_dev_deps << ['hoe-gemspec']
+ self.testlib = :minitest
end
Oops, something went wrong.

0 comments on commit e1ebe6e

Please sign in to comment.