Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move spec/sequel_{core,model} to spec/{core,model}

This commit also adds the deprec helper method to
spec/core/spec_helper.rb.  A few spec_core specs were previously
broken because of this.  I usually run the full test suite (since
that is rake default task), which is why I didn't notice this
earlier.
  • Loading branch information...
commit 6fe3a7e6314396a98c5090fd9956715cb0e2968c 1 parent 39cc5be
@jeremyevans authored
Showing with 13 additions and 2 deletions.
  1. +2 −2 Rakefile
  2. 0  spec/{sequel_core → core}/connection_pool_spec.rb
  3. 0  spec/{sequel_core → core}/core_ext_spec.rb
  4. 0  spec/{sequel_core → core}/core_sql_spec.rb
  5. 0  spec/{sequel_core → core}/database_spec.rb
  6. 0  spec/{sequel_core → core}/dataset_spec.rb
  7. 0  spec/{sequel_core → core}/expression_filters_spec.rb
  8. 0  spec/{sequel_core → core}/migration_spec.rb
  9. 0  spec/{sequel_core → core}/object_graph_spec.rb
  10. 0  spec/{sequel_core → core}/pretty_table_spec.rb
  11. 0  spec/{sequel_core → core}/schema_generator_spec.rb
  12. 0  spec/{sequel_core → core}/schema_spec.rb
  13. +11 −0 spec/{sequel_core → core}/spec_helper.rb
  14. 0  spec/{sequel_core → core}/version_spec.rb
  15. 0  spec/{sequel_model → model}/association_reflection_spec.rb
  16. 0  spec/{sequel_model → model}/associations_spec.rb
  17. 0  spec/{sequel_model → model}/base_spec.rb
  18. 0  spec/{sequel_model → model}/caching_spec.rb
  19. 0  spec/{sequel_model → model}/dataset_methods_spec.rb
  20. 0  spec/{sequel_model → model}/eager_loading_spec.rb
  21. 0  spec/{sequel_model → model}/hooks_spec.rb
  22. 0  spec/{sequel_model → model}/inflector_spec.rb
  23. 0  spec/{sequel_model → model}/model_spec.rb
  24. 0  spec/{sequel_model → model}/plugins_spec.rb
  25. 0  spec/{sequel_model → model}/record_spec.rb
  26. 0  spec/{sequel_model → model}/schema_spec.rb
  27. 0  spec/{sequel_model → model}/spec_helper.rb
  28. 0  spec/{sequel_model → model}/validations_spec.rb
View
4 Rakefile
@@ -96,8 +96,8 @@ task :website=>[:website_base, :website_rdoc]
lib_dir = File.join(File.dirname(__FILE__), 'lib')
fixRUBYLIB = Proc.new{ENV['RUBYLIB'] ? (ENV['RUBYLIB'] += ":#{lib_dir}") : (ENV['RUBYLIB'] = lib_dir)}
-sequel_core_specs = "spec/sequel_core/*_spec.rb"
-sequel_model_specs = "spec/sequel_model/*_spec.rb"
+sequel_core_specs = "spec/core/*_spec.rb"
+sequel_model_specs = "spec/model/*_spec.rb"
sequel_plugin_specs = "spec/extensions/*_spec.rb"
spec_opts = proc{File.read("spec/spec.opts").split("\n")}
rcov_opts = proc{File.read("spec/rcov.opts").split("\n")}
View
0  spec/sequel_core/connection_pool_spec.rb → spec/core/connection_pool_spec.rb
File renamed without changes
View
0  spec/sequel_core/core_ext_spec.rb → spec/core/core_ext_spec.rb
File renamed without changes
View
0  spec/sequel_core/core_sql_spec.rb → spec/core/core_sql_spec.rb
File renamed without changes
View
0  spec/sequel_core/database_spec.rb → spec/core/database_spec.rb
File renamed without changes
View
0  spec/sequel_core/dataset_spec.rb → spec/core/dataset_spec.rb
File renamed without changes
View
0  spec/sequel_core/expression_filters_spec.rb → spec/core/expression_filters_spec.rb
File renamed without changes
View
0  spec/sequel_core/migration_spec.rb → spec/core/migration_spec.rb
File renamed without changes
View
0  spec/sequel_core/object_graph_spec.rb → spec/core/object_graph_spec.rb
File renamed without changes
View
0  spec/sequel_core/pretty_table_spec.rb → spec/core/pretty_table_spec.rb
File renamed without changes
View
0  spec/sequel_core/schema_generator_spec.rb → spec/core/schema_generator_spec.rb
File renamed without changes
View
0  spec/sequel_core/schema_spec.rb → spec/core/schema_spec.rb
File renamed without changes
View
11 spec/sequel_core/spec_helper.rb → spec/core/spec_helper.rb
@@ -6,6 +6,17 @@
Sequel.virtual_row_instance_eval = true
+module Spec::Example::ExampleMethods
+ def deprec
+ output = Sequel::Deprecation.output = nil
+ begin
+ yield
+ ensure
+ Sequel::Deprecation.output = output
+ end
+ end
+end
+
module Spec::Example::ExampleGroupMethods
def deprec_specify(*args, &block)
specify(*args) do
View
0  spec/sequel_core/version_spec.rb → spec/core/version_spec.rb
File renamed without changes
View
0  spec/sequel_model/association_reflection_spec.rb → spec/model/association_reflection_spec.rb
File renamed without changes
View
0  spec/sequel_model/associations_spec.rb → spec/model/associations_spec.rb
File renamed without changes
View
0  spec/sequel_model/base_spec.rb → spec/model/base_spec.rb
File renamed without changes
View
0  spec/sequel_model/caching_spec.rb → spec/model/caching_spec.rb
File renamed without changes
View
0  spec/sequel_model/dataset_methods_spec.rb → spec/model/dataset_methods_spec.rb
File renamed without changes
View
0  spec/sequel_model/eager_loading_spec.rb → spec/model/eager_loading_spec.rb
File renamed without changes
View
0  spec/sequel_model/hooks_spec.rb → spec/model/hooks_spec.rb
File renamed without changes
View
0  spec/sequel_model/inflector_spec.rb → spec/model/inflector_spec.rb
File renamed without changes
View
0  spec/sequel_model/model_spec.rb → spec/model/model_spec.rb
File renamed without changes
View
0  spec/sequel_model/plugins_spec.rb → spec/model/plugins_spec.rb
File renamed without changes
View
0  spec/sequel_model/record_spec.rb → spec/model/record_spec.rb
File renamed without changes
View
0  spec/sequel_model/schema_spec.rb → spec/model/schema_spec.rb
File renamed without changes
View
0  spec/sequel_model/spec_helper.rb → spec/model/spec_helper.rb
File renamed without changes
View
0  spec/sequel_model/validations_spec.rb → spec/model/validations_spec.rb
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.