spec/support/helpers.rb in dirty_seed-0.1.7 vs spec/support/helpers.rb in dirty_seed-0.1.8
- old
+ new
@@ -6,18 +6,18 @@
false,
ActiveRecord::ConnectionAdapters::SqlTypeMetadata.new(type: sql_type(type))
)
end
-def build_dirty_attribute(name: nil, dirty_model: nil, type: :boolean)
- DirtySeed::DirtyAttribute.new(
- dirty_model || build_dirty_model,
+def build_attribute(name: nil, model: nil, type: :boolean)
+ DirtySeed::Attribute.new(
+ model || build_model,
build_column(name: name, type: type)
)
end
-def build_dirty_model(model: Alfa)
- DirtySeed::DirtyModel.new(model)
+def build_model(model: Alfa)
+ DirtySeed::Model.new(model)
end
private
def sql_type(type)