-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get test running using appraisal gem.
* Remove Dummy::Application isolation namespace.
- Loading branch information
1 parent
e9605d2
commit 6b2e958
Showing
42 changed files
with
477 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
appraise 'rails30' do | ||
gem 'rails', '~> 3.0.0' | ||
end | ||
|
||
appraise 'rails31' do | ||
gem 'rails', '~> 3.1.0' | ||
end | ||
|
||
appraise 'rails32' do | ||
gem 'rails', '~> 3.2.0' | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source :rubygems | ||
|
||
gemspec | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,10 @@ | ||
require 'bundler' | ||
require 'rake/testtask' | ||
require 'rubygems' | ||
require 'bundler/gem_tasks' | ||
require 'rake/testtask' | ||
require 'appraisal' | ||
|
||
GEMFILES = Dir["gemfiles/*.gemfile"].inject({}) do |memo, gemfile| | ||
if gemfile.include?('common') | ||
memo | ||
else | ||
version = gemfile.match(/rails(\d\.\d)/)[1] | ||
memo[version] = gemfile | ||
memo | ||
end | ||
end | ||
|
||
DEFAULT_GEMFILE = GEMFILES['3.2'] | ||
|
||
desc 'Setup default Gemfile' | ||
task 'setup' do | ||
default_gemfile | ||
end | ||
|
||
namespace :test do | ||
|
||
Rake::TestTask.new(:default) do |t| | ||
t.libs = ['lib','test'] | ||
t.test_files = Dir.glob("test/**/*_test.rb").sort | ||
t.verbose = true | ||
end | ||
|
||
GEMFILES.each do |version, gemfile| | ||
|
||
desc "Test using Rails v#{version}" | ||
task "rails#{version}" => 'setup' do | ||
with_rails_version(version) { Rake::Task['test:default'].execute } | ||
end | ||
|
||
end | ||
|
||
end | ||
|
||
task :test => 'test:default' | ||
task :default => 'test:default' | ||
|
||
def with_rails_version(version) | ||
begin | ||
FileUtils.rm_rf 'Gemfile' | ||
FileUtils.rm_rf 'Gemfile.lock' | ||
FileUtils.ln_s GEMFILES[version], 'Gemfile', :force => true | ||
`bundle install` | ||
yield | ||
ensure | ||
default_gemfile | ||
end | ||
end | ||
|
||
def default_gemfile | ||
FileUtils.ln_s DEFAULT_GEMFILE, 'Gemfile', :force => true | ||
FileUtils.rm_rf 'Gemfile.lock' | ||
Rake::TestTask.new do |t| | ||
t.libs = ['lib','test'] | ||
t.test_files = Dir.glob("test/**/*_test.rb").sort | ||
t.verbose = true | ||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This file was generated by Appraisal | ||
|
||
source :rubygems | ||
|
||
gem "rails", "~> 3.0.0" | ||
|
||
gemspec :path=>"../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
PATH | ||
remote: /Users/kencollins/Repositories/minitest-spec-rails | ||
specs: | ||
minitest-spec-rails (4.3.0) | ||
minitest (~> 4.3) | ||
rails (>= 3.0) | ||
|
||
GEM | ||
remote: http:https://rubygems.org/ | ||
specs: | ||
abstract (1.0.0) | ||
actionmailer (3.0.19) | ||
actionpack (= 3.0.19) | ||
mail (~> 2.2.19) | ||
actionpack (3.0.19) | ||
activemodel (= 3.0.19) | ||
activesupport (= 3.0.19) | ||
builder (~> 2.1.2) | ||
erubis (~> 2.6.6) | ||
i18n (~> 0.5.0) | ||
rack (~> 1.2.5) | ||
rack-mount (~> 0.6.14) | ||
rack-test (~> 0.5.7) | ||
tzinfo (~> 0.3.23) | ||
activemodel (3.0.19) | ||
activesupport (= 3.0.19) | ||
builder (~> 2.1.2) | ||
i18n (~> 0.5.0) | ||
activerecord (3.0.19) | ||
activemodel (= 3.0.19) | ||
activesupport (= 3.0.19) | ||
arel (~> 2.0.10) | ||
tzinfo (~> 0.3.23) | ||
activeresource (3.0.19) | ||
activemodel (= 3.0.19) | ||
activesupport (= 3.0.19) | ||
activesupport (3.0.19) | ||
appraisal (0.5.1) | ||
bundler | ||
rake | ||
arel (2.0.10) | ||
builder (2.1.2) | ||
coderay (1.0.8) | ||
erubis (2.6.6) | ||
abstract (>= 1.0.0) | ||
i18n (0.5.0) | ||
json (1.7.6) | ||
mail (2.2.19) | ||
activesupport (>= 2.3.6) | ||
i18n (>= 0.4.0) | ||
mime-types (~> 1.16) | ||
treetop (~> 1.4.8) | ||
method_source (0.8.1) | ||
mime-types (1.19) | ||
minitest (4.4.0) | ||
minitest-emoji (1.0.0) | ||
polyglot (0.3.3) | ||
pry (0.9.10) | ||
coderay (~> 1.0.5) | ||
method_source (~> 0.8) | ||
slop (~> 3.3.1) | ||
rack (1.2.7) | ||
rack-mount (0.6.14) | ||
rack (>= 1.0.0) | ||
rack-test (0.5.7) | ||
rack (>= 1.0) | ||
rails (3.0.19) | ||
actionmailer (= 3.0.19) | ||
actionpack (= 3.0.19) | ||
activerecord (= 3.0.19) | ||
activeresource (= 3.0.19) | ||
activesupport (= 3.0.19) | ||
bundler (~> 1.0) | ||
railties (= 3.0.19) | ||
railties (3.0.19) | ||
actionpack (= 3.0.19) | ||
activesupport (= 3.0.19) | ||
rake (>= 0.8.7) | ||
rdoc (~> 3.4) | ||
thor (~> 0.14.4) | ||
rake (10.0.3) | ||
rdoc (3.12) | ||
json (~> 1.4) | ||
slop (3.3.3) | ||
sqlite3 (1.3.7) | ||
thor (0.14.6) | ||
treetop (1.4.12) | ||
polyglot | ||
polyglot (>= 0.3.1) | ||
tzinfo (0.3.35) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
appraisal | ||
minitest-emoji | ||
minitest-spec-rails! | ||
pry | ||
rails (~> 3.0.0) | ||
rake | ||
sqlite3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This file was generated by Appraisal | ||
|
||
source :rubygems | ||
|
||
gem "rails", "~> 3.1.0" | ||
|
||
gemspec :path=>"../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
PATH | ||
remote: /Users/kencollins/Repositories/minitest-spec-rails | ||
specs: | ||
minitest-spec-rails (4.3.0) | ||
minitest (~> 4.3) | ||
rails (>= 3.0) | ||
|
||
GEM | ||
remote: http:https://rubygems.org/ | ||
specs: | ||
actionmailer (3.1.10) | ||
actionpack (= 3.1.10) | ||
mail (~> 2.3.3) | ||
actionpack (3.1.10) | ||
activemodel (= 3.1.10) | ||
activesupport (= 3.1.10) | ||
builder (~> 3.0.0) | ||
erubis (~> 2.7.0) | ||
i18n (~> 0.6) | ||
rack (~> 1.3.6) | ||
rack-cache (~> 1.2) | ||
rack-mount (~> 0.8.2) | ||
rack-test (~> 0.6.1) | ||
sprockets (~> 2.0.4) | ||
activemodel (3.1.10) | ||
activesupport (= 3.1.10) | ||
builder (~> 3.0.0) | ||
i18n (~> 0.6) | ||
activerecord (3.1.10) | ||
activemodel (= 3.1.10) | ||
activesupport (= 3.1.10) | ||
arel (~> 2.2.3) | ||
tzinfo (~> 0.3.29) | ||
activeresource (3.1.10) | ||
activemodel (= 3.1.10) | ||
activesupport (= 3.1.10) | ||
activesupport (3.1.10) | ||
multi_json (>= 1.0, < 1.3) | ||
appraisal (0.5.1) | ||
bundler | ||
rake | ||
arel (2.2.3) | ||
builder (3.0.4) | ||
coderay (1.0.8) | ||
erubis (2.7.0) | ||
hike (1.2.1) | ||
i18n (0.6.1) | ||
json (1.7.6) | ||
mail (2.3.3) | ||
i18n (>= 0.4.0) | ||
mime-types (~> 1.16) | ||
treetop (~> 1.4.8) | ||
method_source (0.8.1) | ||
mime-types (1.19) | ||
minitest (4.4.0) | ||
minitest-emoji (1.0.0) | ||
multi_json (1.2.0) | ||
polyglot (0.3.3) | ||
pry (0.9.10) | ||
coderay (~> 1.0.5) | ||
method_source (~> 0.8) | ||
slop (~> 3.3.1) | ||
rack (1.3.9) | ||
rack-cache (1.2) | ||
rack (>= 0.4) | ||
rack-mount (0.8.3) | ||
rack (>= 1.0.0) | ||
rack-ssl (1.3.2) | ||
rack | ||
rack-test (0.6.2) | ||
rack (>= 1.0) | ||
rails (3.1.10) | ||
actionmailer (= 3.1.10) | ||
actionpack (= 3.1.10) | ||
activerecord (= 3.1.10) | ||
activeresource (= 3.1.10) | ||
activesupport (= 3.1.10) | ||
bundler (~> 1.0) | ||
railties (= 3.1.10) | ||
railties (3.1.10) | ||
actionpack (= 3.1.10) | ||
activesupport (= 3.1.10) | ||
rack-ssl (~> 1.3.2) | ||
rake (>= 0.8.7) | ||
rdoc (~> 3.4) | ||
thor (~> 0.14.6) | ||
rake (10.0.3) | ||
rdoc (3.12) | ||
json (~> 1.4) | ||
slop (3.3.3) | ||
sprockets (2.0.4) | ||
hike (~> 1.2) | ||
rack (~> 1.0) | ||
tilt (~> 1.1, != 1.3.0) | ||
sqlite3 (1.3.7) | ||
thor (0.14.6) | ||
tilt (1.3.3) | ||
treetop (1.4.12) | ||
polyglot | ||
polyglot (>= 0.3.1) | ||
tzinfo (0.3.35) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
appraisal | ||
minitest-emoji | ||
minitest-spec-rails! | ||
pry | ||
rails (~> 3.1.0) | ||
rake | ||
sqlite3 |
Oops, something went wrong.