Этот коммит содержится в:
Mattia Roccoberton
2022-03-26 18:18:25 +01:00
родитель f26fc030ab
Коммит c2e80758a5
20 изменённых файлов: 1815 добавлений и 17 удалений

Просмотреть файл

@@ -8,7 +8,7 @@ Bundler.require(*Rails.groups)
module Dummy
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 6.0
config.load_defaults 6.0 if Rails::VERSION::MAJOR == 6
# Settings in config/environments/* take precedence over those specified here.
# Application configuration can go into files in config/initializers
@@ -16,4 +16,3 @@ module Dummy
# the framework and any gems in your application.
end
end

Просмотреть файл

@@ -33,4 +33,15 @@ RSpec.configure do |config|
config.use_transactional_fixtures = true
config.use_instantiated_fixtures = false
config.render_views = false
config.before(:suite) do
intro = ('-' * 80)
intro << "\n"
intro << "- Ruby: #{RUBY_VERSION}\n"
intro << "- Rails: #{Rails.version}\n"
intro << "- ActiveAdmin: #{ActiveAdmin::VERSION}\n"
intro << ('-' * 80)
RSpec.configuration.reporter.message(intro)
end
end

Просмотреть файл

@@ -5,10 +5,12 @@ RSpec.configure do |config|
config.filter_run focus: true
config.filter_run_excluding changes_filesystem: true
config.run_all_when_everything_filtered = true
config.color = true
config.order = :random
config.example_status_persistence_file_path = '.rspec_failures'
config.color = true
config.tty = true
config.example_status_persistence_file_path = '.rspec_failures'
config.order = :random
config.shared_context_metadata_behavior = :apply_to_host_groups
config.expect_with :rspec do |expectations|