Skip to content

Commit 2fd50de

Browse files
committed
Compatibility
1 parent 59cae8f commit 2fd50de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/features/validation_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103

104104
context 'with validation context' do
105105
background do
106-
Person.validates_presence_of :name, :bio, on: :create
106+
Person.validates_presence_of :name, :bio, {:on => :create}
107107
end
108108
after do
109109
Person._validators.clear
@@ -220,7 +220,7 @@
220220

221221
context 'with validation context' do
222222
background do
223-
Item.validates_presence_of :name, :description, on: :create
223+
Item.validates_presence_of :name, :description, {:on => :create}
224224
end
225225
after do
226226
Item._validators.clear

0 commit comments

Comments
 (0)