spec/extensions/static_cache_spec.rb in sequel-4.18.0 vs spec/extensions/static_cache_spec.rb in sequel-4.19.0
- old
+ new
@@ -259,20 +259,20 @@
a[[1]].first.should equal(@c1)
a[[2]].first.should equal(@c2)
end
it "should not allow the saving of new objects" do
- proc{@c.create}.should raise_error(Sequel::BeforeHookFailed)
+ proc{@c.create}.should raise_error(Sequel::HookFailed)
end
it "should not allow the saving of existing objects" do
@db.fetch = {:id=>1}
- proc{@c.first(:id=>1).save}.should raise_error(Sequel::BeforeHookFailed)
+ proc{@c.first(:id=>1).save}.should raise_error(Sequel::HookFailed)
end
it "should not allow the destroying of existing objects" do
@db.fetch = {:id=>1}
- proc{@c.first(:id=>1).destroy}.should raise_error(Sequel::BeforeHookFailed)
+ proc{@c.first(:id=>1).destroy}.should raise_error(Sequel::HookFailed)
end
end
describe "with :frozen=>false option" do
before do