Skip to content

Commit 6cbe3d0

Browse files
Test that invoked generators actually exist
1 parent 468c637 commit 6cbe3d0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spec/generators/devise/webauthn/install_generator_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@
3535
expect(generator).to have_received(:invoke)
3636
.with("devise:webauthn:javascript")
3737
end
38+
39+
# rubocop:disable Rails/DynamicFindBy
40+
it "invoked generators are findable" do
41+
expect(Rails::Generators.find_by_namespace("devise:webauthn:webauthn_credential_model")).not_to be_nil
42+
expect(Rails::Generators.find_by_namespace("devise:webauthn:webauthn_id")).not_to be_nil
43+
expect(Rails::Generators.find_by_namespace("devise:webauthn:javascript")).not_to be_nil
44+
end
45+
# rubocop:enable Rails/DynamicFindBy
3846
end
3947

4048
context "when using a custom resource name" do

0 commit comments

Comments
 (0)