Permalink
Browse files

gemspec, add pending specs

  • Loading branch information...
1 parent 79086c4 commit 0b39edc8a4ccc4531f4be8e52eeab94aafe3d1cc @bmabey bmabey committed Mar 5, 2009
Showing with 41 additions and 10 deletions.
  1. +2 −1 .gitignore
  2. +1 −0 Rakefile
  3. +29 −0 database_cleaner.gemspec
  4. +9 −9 spec/database_cleaner/active_record/truncation_spec.rb
View
3 .gitignore
@@ -1,3 +1,4 @@
*.sw?
.DS_Store
-coverage
+coverage
+pkg
View
1 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
View
29 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
View
18 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

0 comments on commit 0b39edc

Please sign in to comment.