spec/unit/entangler_spec.rb in lhm-1.0.0.rc6 vs spec/unit/entangler_spec.rb in lhm-1.0.0.rc7

- old
+ new

@@ -28,32 +28,32 @@ it "should create insert trigger to destination table" do ddl = %Q{ create trigger `lhmt_ins_origin` after insert on `origin` for each row - replace into `destination` (`info`, `tags`) + replace into `destination` (`info`, `tags`) /* large hadron migration */ values (NEW.`info`, NEW.`tags`) } @entangler.entangle.must_include strip(ddl) end it "should create an update trigger to the destination table" do ddl = %Q{ create trigger `lhmt_upd_origin` after update on `origin` for each row - replace into `destination` (`info`, `tags`) + replace into `destination` (`info`, `tags`) /* large hadron migration */ values (NEW.`info`, NEW.`tags`) } @entangler.entangle.must_include strip(ddl) end it "should create a delete trigger to the destination table" do ddl = %Q{ create trigger `lhmt_del_origin` after delete on `origin` for each row - delete ignore from `destination` + delete ignore from `destination` /* large hadron migration */ where `destination`.`id` = OLD.`id` } @entangler.entangle.must_include strip(ddl) end