mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Merge branch 'minitest-config' into registry-343
This commit is contained in:
commit
36db8598d2
3 changed files with 22 additions and 6 deletions
|
@ -267,7 +267,7 @@ GEM
|
|||
open4 (~> 1.3.4)
|
||||
rake
|
||||
mini_portile2 (2.3.0)
|
||||
minitest (5.10.2)
|
||||
minitest (5.10.3)
|
||||
monetize (1.6.0)
|
||||
money (~> 6.8)
|
||||
money (6.8.3)
|
||||
|
|
|
@ -60,11 +60,7 @@ module Registry
|
|||
g.helper false
|
||||
g.template_engine :erb
|
||||
g.jbuilder false
|
||||
g.test_framework :rspec,
|
||||
controller_specs: false,
|
||||
view_specs: false,
|
||||
request_specs: false,
|
||||
routing_specs: false
|
||||
g.test_framework :minitest, fixture: false
|
||||
end
|
||||
|
||||
registrant_portal_uri = URI.parse(ENV['registrant_url'])
|
||||
|
|
20
test/test_helper.rb
Normal file
20
test/test_helper.rb
Normal file
|
@ -0,0 +1,20 @@
|
|||
ENV['RAILS_ENV'] ||= 'test'
|
||||
require File.expand_path('../../config/environment', __FILE__)
|
||||
require 'rails/test_help'
|
||||
require 'capybara/rails'
|
||||
require 'capybara/minitest'
|
||||
|
||||
class ActiveSupport::TestCase
|
||||
include FactoryGirl::Syntax::Methods
|
||||
end
|
||||
|
||||
class ActionDispatch::IntegrationTest
|
||||
include Warden::Test::Helpers
|
||||
include Capybara::DSL
|
||||
include Capybara::Minitest::Assertions
|
||||
|
||||
def teardown
|
||||
Capybara.reset_sessions!
|
||||
Capybara.use_default_driver
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue