Skip to content

Commit 2860572

Browse files
klyonradpirj
authored andcommitted
Add only one test for integration generator deprecation
1 parent 03f98a0 commit 2860572

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
# Generators are not automatically loaded by Rails
22
require 'generators/rspec/integration/integration_generator'
33
require 'support/generators'
4+
require 'rspec/core/warnings'
45

56
RSpec.describe Rspec::Generators::IntegrationGenerator, type: :generator do
67
setup_default_destination
78
it_behaves_like "a request spec generator"
9+
10+
it 'is deprecated' do
11+
expect(RSpec).to receive(:warn_deprecation)
12+
run_generator %w[posts]
13+
end
814
end

0 commit comments

Comments
 (0)