skip with message on tests
This commit is contained in:
parent
b571dadde8
commit
44b0f73c1e
3
Gemfile
3
Gemfile
@ -16,6 +16,7 @@ if File.file? File.expand_path './.enable_dev', __dir__
|
|||||||
gem 'debug'
|
gem 'debug'
|
||||||
gem 'marginalia'
|
gem 'marginalia'
|
||||||
gem 'memory_profiler'
|
gem 'memory_profiler'
|
||||||
|
gem 'ruby-lsp'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -43,7 +44,7 @@ end
|
|||||||
# (this is used to not create conflicts with other plugins)
|
# (this is used to not create conflicts with other plugins)
|
||||||
if File.file? File.expand_path './.enable_test', __dir__
|
if File.file? File.expand_path './.enable_test', __dir__
|
||||||
group :development, :test do
|
group :development, :test do
|
||||||
gem 'active_record_doctor'
|
# gem 'active_record_doctor'
|
||||||
gem 'bullet'
|
gem 'bullet'
|
||||||
gem 'rails_best_practices', require: false
|
gem 'rails_best_practices', require: false
|
||||||
end
|
end
|
||||||
|
@ -76,7 +76,7 @@ class WelcomeControllerTest < Additionals::ControllerTest
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_show_index_with_help_menu
|
def test_show_index_with_help_menu
|
||||||
skip if AdditionalsPlugin.active_hrm?
|
skip 'not tested if hrm is active' if AdditionalsPlugin.active_hrm?
|
||||||
|
|
||||||
with_plugin_settings 'additionals', remove_help: 0 do
|
with_plugin_settings 'additionals', remove_help: 0 do
|
||||||
@request.session[:user_id] = 1
|
@request.session[:user_id] = 1
|
||||||
@ -87,7 +87,7 @@ class WelcomeControllerTest < Additionals::ControllerTest
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_show_index_without_help_menu
|
def test_show_index_without_help_menu
|
||||||
skip if AdditionalsPlugin.active_hrm?
|
skip 'not tested if hrm is active' if AdditionalsPlugin.active_hrm?
|
||||||
|
|
||||||
with_plugin_settings 'additionals', remove_help: 1 do
|
with_plugin_settings 'additionals', remove_help: 1 do
|
||||||
@request.session[:user_id] = 1
|
@request.session[:user_id] = 1
|
||||||
|
@ -21,7 +21,7 @@ class JavascriptLibraryTest < Additionals::IntegrationTest
|
|||||||
:queries
|
:queries
|
||||||
|
|
||||||
def test_not_loaded_chart_css_library
|
def test_not_loaded_chart_css_library
|
||||||
skip if AdditionalsPlugin.active_reporting?
|
skip 'not tested if reporting is active' if AdditionalsPlugin.active_reporting?
|
||||||
|
|
||||||
log_user 'admin', 'admin'
|
log_user 'admin', 'admin'
|
||||||
get '/'
|
get '/'
|
||||||
@ -31,7 +31,7 @@ class JavascriptLibraryTest < Additionals::IntegrationTest
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_not_loaded_chart_js_library
|
def test_not_loaded_chart_js_library
|
||||||
skip if AdditionalsPlugin.active_reporting?
|
skip 'not tested if reporting is active' if AdditionalsPlugin.active_reporting?
|
||||||
|
|
||||||
log_user 'admin', 'admin'
|
log_user 'admin', 'admin'
|
||||||
get '/'
|
get '/'
|
||||||
|
Loading…
Reference in New Issue
Block a user