1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot_rails.git synced 2022-11-09 11:49:18 -05:00

Use minitest-rails only when we actually want to test it.

Some features test the factory_girl_rails integration with minitest-rails.

Other features just test normal integration with rails generators.

When minitest-rails is *always* in our gemfiles, minitest's generator
gets run during the features which generate new rails apps.

Because minitest doesnt support namespaced models, this fails.  But, also,
we don't actually want to run minitest during anything other than the specific
areas where we are testing that integration.

Thus, we need the gem present on the system, but not in the gemfiles during
any times other than when it's pulled in specifically by those features.
This commit is contained in:
Matt Jankowski 2012-12-13 12:02:21 -05:00
parent 0e417981e0
commit 89a257c951
2 changed files with 1 additions and 5 deletions

View file

@ -4,8 +4,7 @@ rvm:
- jruby-19mode
before_install:
- gem update --system
- bundle install
- bundle exec rake appraisal:install
- gem install minitest-rails
jdk:
- openjdk6
gemfile:

View file

@ -1,16 +1,13 @@
appraise "rails3.0" do
gem "rails", "~> 3.0.17"
gem 'minitest-rails', '0.3'
end
appraise "rails3.1" do
gem "rails", "~> 3.1.8"
gem "sqlite3", ">= 1.3.4"
gem 'minitest-rails', '0.3'
end
appraise "rails3.2" do
gem "rails", "~> 3.2.8"
gem "sqlite3", ">= 1.3.4"
gem 'minitest-rails', '0.3'
end