Skip to content
Browse files

DRY in requires from test/support/*

  • Loading branch information...
1 parent af0fa50 commit d34912b15f7c511227b89966a498e006001645e8 @pawelpacana pawelpacana committed
Showing with 3 additions and 5 deletions.
  1. +0 −1 test/support/capybara.rb
  2. +1 −0 test/support/test_user.rb
  3. +2 −4 test/test_helper.rb
View
1 test/support/capybara.rb
@@ -2,4 +2,3 @@
require 'capybara/mechanize'
Capybara.app_host = "http://localhost:6767/"
-Capybara.current_driver = :mechanize
View
1 test/support/test_user.rb
@@ -1,5 +1,6 @@
require 'bbq/test'
require 'bbq/test_user'
+require 'support/capybara'
class TestUser < Bbq::TestUser
include MiniTest::Assertions
View
6 test/test_helper.rb
@@ -1,7 +1,5 @@
require 'minitest/autorun'
require 'mocha'
require 'm2r'
-require 'support/test_handler'
-require 'support/test_user'
-require 'support/capybara'
-require 'support/process_helper'
+
+Dir[File.expand_path(File.join(__FILE__, '../support/*.rb'))].each { |m| require m }

0 comments on commit d34912b

Please sign in to comment.
Something went wrong with that request. Please try again.