We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9391e81 commit 54ef055Copy full SHA for 54ef055
spec/generators/rspec/integration/integration_generator_spec.rb
@@ -1,8 +1,20 @@
1
# Generators are not automatically loaded by Rails
2
require 'generators/rspec/integration/integration_generator'
3
require 'support/generators'
4
+require 'rspec/core/warnings'
5
6
RSpec.describe Rspec::Generators::IntegrationGenerator, type: :generator do
7
setup_default_destination
8
it_behaves_like "a request spec generator"
9
+
10
+ describe 'deprecation' do
11
+ before do
12
+ allow(RSpec).to receive(:warn_deprecation)
13
+ run_generator %w[posts]
14
+ end
15
16
+ it "is deprecated" do
17
+ expect(RSpec).to have_received(:warn_deprecation)
18
19
20
end
0 commit comments