mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 00:38:27 +00:00
Consolidate system specs into single directory, use rspec tags for configuration (#30206)
This commit is contained in:
@@ -95,7 +95,7 @@ RSpec.configure do |config|
|
||||
end
|
||||
end
|
||||
|
||||
config.around :each, type: :system do |example|
|
||||
config.around :each, :streaming, type: :system do |example|
|
||||
# Streaming server needs DB access but `use_transactional_tests` rolls back
|
||||
# every transaction. Disable this feature for streaming tests, and use
|
||||
# DatabaseCleaner to clean the database tables between each test.
|
||||
@@ -125,6 +125,6 @@ RSpec.configure do |config|
|
||||
end
|
||||
|
||||
def streaming_examples_present?
|
||||
RUN_SYSTEM_SPECS
|
||||
RSpec.world.filtered_examples.values.flatten.any? { |example| example.metadata[:streaming] == true }
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user