Skip to content
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...
1 parent 39cc5be commit 6fe3a7e6314396a98c5090fd9956715cb0e2968c @jeremyevans committed Mar 13, 2009
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 ...quel_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.

0 comments on commit 6fe3a7e

Please sign in to comment.
Something went wrong with that request. Please try again.