From f604d5f328e99abfa760e914db4ce41029957c86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luka=20Lu=CC=88dicke?= Date: Sun, 11 Oct 2020 11:18:40 +0200 Subject: [PATCH] Add only one test for integration generator deprecation --- .../rspec/integration/integration_generator_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/generators/rspec/integration/integration_generator_spec.rb b/spec/generators/rspec/integration/integration_generator_spec.rb index ac8ffe16a2..e0777bb85b 100644 --- a/spec/generators/rspec/integration/integration_generator_spec.rb +++ b/spec/generators/rspec/integration/integration_generator_spec.rb @@ -1,8 +1,14 @@ # Generators are not automatically loaded by Rails require 'generators/rspec/integration/integration_generator' require 'support/generators' +require 'rspec/core/warnings' RSpec.describe Rspec::Generators::IntegrationGenerator, type: :generator do setup_default_destination it_behaves_like "a request spec generator" + + it 'is deprecated' do + expect(RSpec).to receive(:warn_deprecation) + run_generator %w[posts] + end end