We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43e1764 commit 9bf1b41Copy full SHA for 9bf1b41
spec/integration/rails/hooks_spec.rb
@@ -113,7 +113,7 @@ def json
113
114
let(:book_data) { [] }
115
let(:book_included) { [] }
116
- let(:state_data) { {} }
+ let(:state_data) { nil }
117
let(:state_included) { [] }
118
119
let(:payload) do
@@ -225,8 +225,9 @@ def json
225
end
226
227
context 'belongs_to' do
228
+ let(:state_data) { { :'temp-id' => 'abc123', type: 'states', method: 'create' } }
229
+
230
before do
- state_data.merge!(:'temp-id' => 'abc123', type: 'states', method: 'create')
231
state_included << { :'temp-id' => 'abc123', type: 'states', attributes: { name: 'New York' } }
232
233
0 commit comments