spec/support/sqlite_seed.rb in bullet-5.7.4 vs spec/support/sqlite_seed.rb in bullet-5.7.5
- old
+ new
@@ -1,7 +1,11 @@
+# frozen_string_literal: true
+
module Support
module SqliteSeed
+ module_function
+
def seed_db
newspaper1 = Newspaper.create(name: 'First Newspaper')
newspaper2 = Newspaper.create(name: 'Second Newspaper')
writer1 = Writer.create(name: 'first', newspaper: newspaper1)
@@ -229,9 +233,7 @@
t.column :name, :string
t.column :category_id, :integer
end
end
end
-
- module_function
end
end