From 0b39edc8a4ccc4531f4be8e52eeab94aafe3d1cc Mon Sep 17 00:00:00 2001 From: Ben Mabey Date: Wed, 4 Mar 2009 21:48:20 -0700 Subject: [PATCH] gemspec, add pending specs --- .gitignore | 3 +- Rakefile | 1 + database_cleaner.gemspec | 29 +++++++++++++++++++ .../active_record/truncation_spec.rb | 18 ++++++------ 4 files changed, 41 insertions(+), 10 deletions(-) create mode 100644 database_cleaner.gemspec diff --git a/.gitignore b/.gitignore index 0e33e78..00278f4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.sw? .DS_Store -coverage \ No newline at end of file +coverage +pkg diff --git a/Rakefile b/Rakefile index 052d8f6..ed90299 100644 --- a/Rakefile +++ b/Rakefile @@ -8,6 +8,7 @@ begin s.email = "ben@benmabey.com" s.homepage = "http://github.com/bmabey/database_cleaner" s.description = "TODO" + s.files = FileList["[A-Z]*.*", "{examples,lib,features,spec}/**/*", "Rakefile", "cucumber.yml"] s.authors = ["Ben Mabey"] end rescue LoadError diff --git a/database_cleaner.gemspec b/database_cleaner.gemspec new file mode 100644 index 0000000..f83d601 --- /dev/null +++ b/database_cleaner.gemspec @@ -0,0 +1,29 @@ +# -*- encoding: utf-8 -*- + +Gem::Specification.new do |s| + s.name = %q{database_cleaner} + s.version = "0.0.1" + + s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= + s.authors = ["Ben Mabey"] + s.date = %q{2009-03-04} + s.description = %q{TODO} + s.email = %q{ben@benmabey.com} + s.files = ["VERSION.yml", "examples/features", "examples/features/example.feature", "examples/features/step_definitions", "examples/features/step_definitions/example_steps.rb", "examples/features/support", "examples/features/support/env.rb", "examples/lib", "examples/lib/activerecord.rb", "lib/database_cleaner", "lib/database_cleaner/active_record", "lib/database_cleaner/active_record/transaction.rb", "lib/database_cleaner/active_record/truncation.rb", "lib/database_cleaner/configuration.rb", "lib/database_cleaner/cucumber.rb", "lib/database_cleaner/data_mapper", "lib/database_cleaner/data_mapper/transaction.rb", "lib/database_cleaner.rb", "features/cleaning.feature", "features/step_definitions", "features/step_definitions/database_cleaner_steps.rb", "features/support", "features/support/env.rb", "spec/database_cleaner", "spec/database_cleaner/active_record", "spec/database_cleaner/active_record/truncation_spec.rb", "spec/database_cleaner/configuration_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "Rakefile", "cucumber.yml"] + s.has_rdoc = true + s.homepage = %q{http://github.com/bmabey/database_cleaner} + s.rdoc_options = ["--inline-source", "--charset=UTF-8"] + s.require_paths = ["lib"] + s.rubygems_version = %q{1.3.1} + s.summary = %q{TODO} + + if s.respond_to? :specification_version then + current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION + s.specification_version = 2 + + if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then + else + end + else + end +end diff --git a/spec/database_cleaner/active_record/truncation_spec.rb b/spec/database_cleaner/active_record/truncation_spec.rb index 1ad7905..19cb2e8 100644 --- a/spec/database_cleaner/active_record/truncation_spec.rb +++ b/spec/database_cleaner/active_record/truncation_spec.rb @@ -1,15 +1,15 @@ require File.dirname(__FILE__) + '/../../spec_helper' require 'database_cleaner/active_record/truncation' require 'active_record' -#module ActiveRecord - #module ConnectionAdapters - #[MysqlAdapter, SQLite3Adapter].each do |adapter| - #describe adapter, "#truncate_table" do - #it "should truncate the table" - #end - #end - #end -#end +module ActiveRecord + module ConnectionAdapters + [MysqlAdapter, SQLite3Adapter].each do |adapter| + describe adapter, "#truncate_table" do + it "should truncate the table" + end + end + end +end module DatabaseCleaner module ActiveRecord