-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from tvdeyen/4.2-stable
4.2 stable
- Loading branch information
Showing
28 changed files
with
272 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
# frozen_string_literal: true | ||
|
||
FactoryBot.define do | ||
factory :alchemy_user, class: 'Alchemy::User' do | ||
factory :alchemy_user, class: Alchemy::User do | ||
sequence(:login) { |n| "john_#{n}.doe" } | ||
sequence(:email) { |n| "john_#{n}@doe.com" } | ||
firstname 'John' | ||
lastname 'Doe' | ||
password 's3cr3t' | ||
password_confirmation 's3cr3t' | ||
firstname { 'John' } | ||
lastname { 'Doe' } | ||
password { 's3cr3t' } | ||
password_confirmation { 's3cr3t' } | ||
|
||
factory :alchemy_admin_user do | ||
alchemy_roles 'admin' | ||
alchemy_roles { 'admin' } | ||
end | ||
|
||
factory :alchemy_member_user do | ||
alchemy_roles 'member' | ||
alchemy_roles { 'member' } | ||
end | ||
|
||
factory :alchemy_author_user do | ||
alchemy_roles 'author' | ||
alchemy_roles { 'author' } | ||
end | ||
|
||
factory :alchemy_editor_user do | ||
alchemy_roles 'editor' | ||
alchemy_roles { 'editor' } | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.