spec/support/factories/user_factory.rb in simple-sql-0.2.8 vs spec/support/factories/user_factory.rb in simple-sql-0.2.9
- old
+ new
@@ -1,8 +1,14 @@
FactoryGirl.define do
factory :user do
role_id 123
- first_name "Uni"
- last_name "Corn"
+
+ sequence :first_name do |n| "First #{n}" end
+ sequence :last_name do |n| "Last #{n}" end
access_level "viewable"
+ end
+
+ factory :unique_user do
+ sequence :first_name do |n| "First #{n}" end
+ sequence :last_name do |n| "Last #{n}" end
end
end