test/model.rb in ohm-2.2.1 vs test/model.rb in ohm-2.3.0
- old
+ new
@@ -785,5 +785,15 @@
end
a = Advertiser.new(:email => " FOO@BAR.COM ")
assert_equal "foo@bar.com", a.email
end
+
+test "scripts are flushed" do
+ m = Meetup.create(:name => "Foo")
+
+ Meetup.redis.call("SCRIPT", "FLUSH")
+
+ m.update(:name => "Bar")
+
+ assert_equal m.name, Meetup[m.id].name
+end