Преглед на файлове

Un-focus specs and ensure the whole test suits always runs on CI

Dominik Sander преди 5 години
родител
ревизия
7a1adf434f
променени са 2 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 3 1
      spec/rails_helper.rb
  2. 1 1
      spec/support/shared_examples/agent_controller_concern.rb

+ 3 - 1
spec/rails_helper.rb

@@ -54,7 +54,9 @@ RSpec.configure do |config|
   # to individual examples or groups you care about by tagging them with
   # `:focus` metadata. When nothing is tagged with `:focus`, all examples
   # get run.
-  config.filter_run :focus
+  if ENV['CI'] != 'true'
+    config.filter_run :focus
+  end
   config.run_all_when_everything_filtered = true
 
   # Run specs in random order to surface order dependencies. If you find an

+ 1 - 1
spec/support/shared_examples/agent_controller_concern.rb

@@ -117,7 +117,7 @@ shared_examples_for AgentControllerConcern do
       expect(agent.control_targets.reload).to all(satisfy { |a| !a.disabled? })
     end
 
-    it "should enable targets and drop pending events", focus: true do
+    it "should enable targets and drop pending events" do
       agent.options['action'] = 'enable'
       agent.options['drop_pending_events'] = 'true'
       agent.save!