Skip to content

Commit 9bf1b41

Browse files
author
Lee Richmond
committed
Fix hook specs
1 parent 43e1764 commit 9bf1b41

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/integration/rails/hooks_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def json
113113

114114
let(:book_data) { [] }
115115
let(:book_included) { [] }
116-
let(:state_data) { {} }
116+
let(:state_data) { nil }
117117
let(:state_included) { [] }
118118

119119
let(:payload) do
@@ -225,8 +225,9 @@ def json
225225
end
226226

227227
context 'belongs_to' do
228+
let(:state_data) { { :'temp-id' => 'abc123', type: 'states', method: 'create' } }
229+
228230
before do
229-
state_data.merge!(:'temp-id' => 'abc123', type: 'states', method: 'create')
230231
state_included << { :'temp-id' => 'abc123', type: 'states', attributes: { name: 'New York' } }
231232
end
232233

0 commit comments

Comments
 (0)