Skip to content

Commit

Permalink
Add only one test for integration generator deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
klyonrad authored and JonRowe committed Oct 10, 2022
1 parent bfe2075 commit f604d5f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f604d5f

Please sign in to comment.