Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added support for testing across versions of activerecord.

  • Loading branch information...
commit d5a02443ce761a3353e0e761d4233b881903590c 1 parent d98a857
@flavorjones flavorjones authored
View
3  .gitignore
@@ -0,0 +1,3 @@
+Gemfile
+Gemfile*.lock
+.bundle
View
8 Gemfile-2.2
@@ -0,0 +1,8 @@
+source :gemcutter
+
+gem "activerecord", "2.2.3"
+gem "sqlite3-ruby"
+
+group :development do
+ gem "rspec", "~>1"
+end
View
8 Gemfile-2.3
@@ -0,0 +1,8 @@
+source :gemcutter
+
+gem "activerecord", "2.3.8"
+gem "sqlite3-ruby"
+
+group :development do
+ gem "rspec", "~>1"
+end
View
8 Gemfile-3.0
@@ -0,0 +1,8 @@
+source :gemcutter
+
+gem "activerecord", "3.0.0"
+gem "sqlite3-ruby"
+
+group :development do
+ gem "rspec", "~>1"
+end
View
14 Rakefile
@@ -0,0 +1,14 @@
+
+namespace :spec do
+ desc "run specs against multiple versions of rails"
+ task :all do
+ Dir["Gemfile-*"].sort.each do |gemfile|
+ next if gemfile =~ /lock/
+ puts "* running specs under #{gemfile} ..."
+ FileUtils.rm_f "Gemfile"
+ FileUtils.cp gemfile, "Gemfile"
+ system("bundle install") || raise("could not bundle #{gemfile}")
+ system("bundle exec spec spec")
+ end
+ end
+end
View
2  acts_as_fu.gemspec
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
s.authors = ["Pat Nakajima"]
s.date = %q{2008-10-26}
s.email = %q{patnakajima@gmail.com}
- s.files = ["lib/acts_as_fu", "lib/acts-as-fu.rb", "lib/acts_as_fu/base.rb", "lib/acts_as_fu.rb"]
+ s.files = ["lib/acts_as_fu", "lib/acts-as-fu.rb", "lib/acts_as_fu/base.rb", "lib/acts_as_fu.rb", "Rakefile", "Gemfile-2.2", "Gemfile-2.3", "Gemfile-3.0"]
s.has_rdoc = true
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.0}

0 comments on commit d5a0244

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