Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Separate minitest reporters from rails support

  • Loading branch information...
commit ac05dd0275b4660c0d2938ac442f8c4f4a603110 1 parent 648acf6
@elskwid elskwid authored
View
5 ...tors/thincloud/test/templates/minitest.rb → ...hincloud/test/templates/minitest_rails.rb
@@ -4,8 +4,3 @@ class MiniTest::Rails::ActiveSupport::TestCase
desc.respond_to?(:validate)
end
end
-
-unless ENV["CI"]
- require "minitest/reporters"
- MiniTest::Reporters.use! MiniTest::Reporters::ProgressReporter.new
-end
View
4 lib/generators/thincloud/test/templates/minitest_reporters.rb
@@ -0,0 +1,4 @@
+unless ENV["CI"]
+ require "minitest/reporters"
+ MiniTest::Reporters.use! MiniTest::Reporters::ProgressReporter.new
+end
View
3  lib/generators/thincloud/test/test_generator.rb
@@ -18,8 +18,9 @@ def test
copy_file "capybara.rb", "test/support/capybara.rb"
copy_file "factory_girl.rb", "test/support/factory_girl.rb"
copy_file "database_cleaner.rb", "test/support/database_cleaner.rb"
- copy_file "minitest.rb", "test/support/minitest.rb"
copy_file "routing_spec.rb", "test/support/routing_spec.rb"
+ copy_file "minitest_rails.rb", "test/support/minitest_rails.rb"
+ copy_file "minitest_reporters.rb", "test/support/minitest_reporters.rb"
copy_file "test.rake", "lib/tasks/test.rake"
copy_file "Guardfile"
Please sign in to comment.
Something went wrong with that request. Please try again.