Skip to content

Commit 43a7c8c

Browse files
Add new spec for validation_errors
This extra expectation ensures that `validation_errors[:any_key]` also won't throw an error.
1 parent cc3bbd7 commit 43a7c8c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/helpers_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@
199199
let(:json) { show_json }
200200
it 'does not raise an error of its own' do
201201
expect{ validation_errors }.not_to raise_error
202+
expect(validation_errors[:any_key_here]).to be_nil
202203
end
203204
end
204205
end

0 commit comments

Comments
 (0)