Permalink
Browse files

Cleaning up test setup a little - using gem dev dependencies with jew…

…eler's dependency checking.
  • Loading branch information...
1 parent bdaf643 commit 83d3be9a8cfaef3d9d0b5f85d8afffbcd3e3a6eb @pat pat committed May 20, 2010
@@ -1,3 +1,5 @@
+require 'faker'
+
Developer.create :name => "Pat Allan", :city => "Melbourne", :state => "Victoria", :country => "Australia", :age => 26
2.times do
@@ -1,5 +1,3 @@
-require 'faker'
-
ActiveRecord::Base.connection.create_table :developers, :force => true do |t|
t.column :name, :string, :null => false
t.column :city, :string
View
@@ -31,6 +31,13 @@
gem.add_dependency 'riddle', '>= 1.0.10'
gem.add_dependency 'after_commit', '>= 1.0.6'
+ gem.add_development_dependency "yard", ">= 0"
+ gem.add_development_dependency "rspec", ">= 1.2.9"
+ gem.add_development_dependency "cucumber", ">= 0"
+ gem.add_development_dependency "will_paginate", "2.3.11"
+ gem.add_development_dependency "ginger", "1.2.0"
+ gem.add_development_dependency "faker", "0.3.1"
+
gem.post_install_message = <<-MESSAGE
If you're upgrading, you should read this:
http://freelancing-god.github.com/ts/en/upgrading.html
View
@@ -7,6 +7,7 @@
t.spec_files = FileList['spec/**/*_spec.rb']
t.spec_opts << "-c"
end
+task :spec => :check_dependencies
desc "Run all feature-set configurations"
task :features do |t|
@@ -26,6 +27,9 @@ def add_task(name, description)
add_task :mysql, "Run feature-set against MySQL"
add_task :postgresql, "Run feature-set against PostgreSQL"
+
+ task :mysql => :check_dependencies
+ task :postgresql => :check_dependencies
end
desc "Generate RCov reports"

0 comments on commit 83d3be9

Please sign in to comment.