Skip to content

Commit fda4c94

Browse files
committed
Remove explicit FactoryGirl/Bot from destroy spec gen
We are including the method helpers so we can just use `#create` directly.
1 parent 192461d commit fda4c94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/jsonapi/templates/destroy_request_spec.rb.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ require 'rails_helper'
22

33
RSpec.describe "<%= type %>#destroy", type: :request do
44
context 'basic destroy' do
5-
let!(:<%= file_name %>) { FactoryBot.create(:<%= file_name %>) }
5+
let!(:<%= file_name %>) { create(:<%= file_name %>) }
66

77
it 'updates the resource' do
88
expect {

0 commit comments

Comments
 (0)