Permalink
Browse files

minitest_helper -> minitest_helper_rails

Prepare for standalone helper
  • Loading branch information...
1 parent ac05dd0 commit 998150f1287ec7f36028d3648b0b95af0dd886c7 @elskwid elskwid committed Jan 26, 2013
@@ -1,10 +1,11 @@
if RUBY_ENGINE == "ruby"
begin
require "simplecov"
- SimpleCov.add_filter "test"
- SimpleCov.add_filter "config"
- SimpleCov.command_name "MiniTest"
- SimpleCov.start "rails"
+ SimpleCov.start "rails" do
+ add_filter "test"
+ add_filter "config"
+ command_name "MiniTest"
+ end
rescue LoadError
warn "unable to load SimpleCov"
end
@@ -18,5 +19,3 @@
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[File.join("./test/support/**/*.rb")].sort.each { |f| require f }
-
-MiniTest::Rails.override_testunit!
@@ -13,7 +13,7 @@ def test
create_file "test/factories/.gitkeep"
remove_file "test/minitest_helper.rb"
- copy_file "minitest_helper.rb", "test/minitest_helper.rb"
+ copy_file "minitest_helper_rails.rb", "test/minitest_helper.rb"
copy_file "capybara.rb", "test/support/capybara.rb"
copy_file "factory_girl.rb", "test/support/factory_girl.rb"

0 comments on commit 998150f

Please sign in to comment.