spec/fx/adapters/postgres_spec.rb in fx-0.7.0 vs spec/fx/adapters/postgres_spec.rb in fx-0.8.0

- old
+ new

@@ -42,11 +42,11 @@ adapter.create_trigger( <<-EOS CREATE TRIGGER uppercase_users_name BEFORE INSERT ON users FOR EACH ROW - EXECUTE PROCEDURE uppercase_users_name(); + EXECUTE FUNCTION uppercase_users_name(); EOS ) expect(adapter.triggers.map(&:name)).to include("uppercase_users_name") end @@ -133,10 +133,10 @@ EOS sql_definition = <<-EOS CREATE TRIGGER uppercase_users_name BEFORE INSERT ON users FOR EACH ROW - EXECUTE PROCEDURE uppercase_users_name() + EXECUTE FUNCTION uppercase_users_name() EOS adapter.create_trigger(sql_definition) expect(adapter.triggers.map(&:name)).to eq ["uppercase_users_name"] end