Skip to content

Commit

Permalink
Only use a TU shim for Ruby 1.8. See README for info. Fixes #18.
Browse files Browse the repository at this point in the history
  • Loading branch information
metaskills committed Mar 19, 2013
1 parent 1a85597 commit 6bebd49
Show file tree
Hide file tree
Showing 18 changed files with 33 additions and 548 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.gem
.bundle
gemfiles/*
Gemfile.lock
pkg/*
*.log
12 changes: 3 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@ rvm:
- 1.8.7
- 1.9.3
- 2.0.0
gemfile:
- gemfiles/rails30.gemfile
- gemfiles/rails31.gemfile
- gemfiles/rails32.gemfile
- gemfiles/rails40.gemfile
before_install:
- gem install bundler
- bundle --version
matrix:
exclude:
- rvm: 1.8.7
gemfile: gemfiles/rails40.gemfile
- bundle install
before_script:
- bundle exec rake appraisal:setup
3 changes: 1 addition & 2 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ end

appraise 'rails40' do
gem 'rails', '~> 4.0.0.beta'
end

end unless RUBY_VERSION == '1.8.7'
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

## 4.7.1

* Only use a TU shim for Ruby 1.8. See README for info. Fixes #18.


## 4.7.0

* Use Minitest::Spec::DSL provided by Minitest 4.7.
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ source 'https://rubygems.org'

gemspec

gem 'minitest-spec-rails-tu-shim', '~> 1.9.3.1' if RUBY_VERSION == '1.8.7'
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ group :test do
end
```

#### Ruby 1.8 Users!!!

If you are using Ruby 1.8, you must install a Test::Unit shim that subclasses MiniTest::Unit, just as Ruby 1.9 does. We have kindly packed up Ruby 1.9's `lib/test` directory in the [minitest-spec-rails-tu-shim](https://github.com/metaskills/minitest-spec-rails-tu-shim) gem. So just add this to your Gemfile.

```ruby
group :test do
gem 'minitest-spec-rails-tu-shim'
end
```


### How is this different than MiniTest::Rails?

To start off both Mike Moore (@blowmage) and I have worked together and we both LOVE MiniTest::Spec. Both projects aim to advocate MiniTest and make Rails integration as easy as possible. However, there are a few key differences in our projects. Some of these differences may go away in time too. As always, choose the tool you think fits your needs. So how, is minitest-spec-rails different than [minitest-rails](https://github.com/blowmage/minitest-rails)?
Expand Down
7 changes: 0 additions & 7 deletions gemfiles/rails30.gemfile

This file was deleted.

119 changes: 0 additions & 119 deletions gemfiles/rails30.gemfile.lock

This file was deleted.

7 changes: 0 additions & 7 deletions gemfiles/rails31.gemfile

This file was deleted.

130 changes: 0 additions & 130 deletions gemfiles/rails31.gemfile.lock

This file was deleted.

7 changes: 0 additions & 7 deletions gemfiles/rails32.gemfile

This file was deleted.

Loading

0 comments on commit 6bebd49

Please sign in to comment.