mirror of
https://github.com/internetee/registry.git
synced 2025-08-11 20:19:34 +02:00
Add minitest config
This commit is contained in:
parent
1537d921bd
commit
5e9862cdd6
2 changed files with 21 additions and 5 deletions
|
@ -60,11 +60,7 @@ module Registry
|
||||||
g.helper false
|
g.helper false
|
||||||
g.template_engine :erb
|
g.template_engine :erb
|
||||||
g.jbuilder false
|
g.jbuilder false
|
||||||
g.test_framework :rspec,
|
g.test_framework :minitest, fixture: false
|
||||||
controller_specs: false,
|
|
||||||
view_specs: false,
|
|
||||||
request_specs: false,
|
|
||||||
routing_specs: false
|
|
||||||
end
|
end
|
||||||
|
|
||||||
registrant_portal_uri = URI.parse(ENV['registrant_url'])
|
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