spec/association_spec.rb in schema_associations-0.1.0.pre3 vs spec/association_spec.rb in schema_associations-0.1.0
- old
+ new
@@ -516,11 +516,11 @@
def with_associations_config(opts, &block)
save = Hash[opts.keys.collect{|key| [key, SchemaAssociations.config.send(key)]}]
begin
SchemaAssociations.setup do |config|
config.update_attributes(opts)
- yield
end
+ yield
ensure
SchemaAssociations.config.update_attributes(save)
end
end