From 710e997e8265005f661cc531a25243896f2d7c4f Mon Sep 17 00:00:00 2001 From: Paulo DAlberti Date: Mon, 8 Mar 2021 13:14:45 +0900 Subject: [PATCH] added test --- .../generators/rspec/controller/controller_generator_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/generators/rspec/controller/controller_generator_spec.rb b/spec/generators/rspec/controller/controller_generator_spec.rb index 4143af50fe..3885194abf 100644 --- a/spec/generators/rspec/controller/controller_generator_spec.rb +++ b/spec/generators/rspec/controller/controller_generator_spec.rb @@ -115,6 +115,11 @@ end end end + + describe 'are removed' do + subject { run_generator %w[posts], behavior: :revoke } + it { is_expected.to match('remove spec/views/posts') } + end end describe 'routing spec' do