generated from betagouv/rails-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
64 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# language: fr | ||
|
||
Fonctionnalité: Gestion du personnel académique | ||
Contexte: | ||
Sachant que je suis un personnel académique de l'établissement "DINUM" | ||
Et que je me connecte en tant que personnel académique | ||
|
||
Scénario: Le personnel académique a accès à la page d'accueil | ||
Alors la page contient "Bonjour" | ||
|
||
Scénario: Le personnel académique est redirigé vers la page de connexion académique en cas d'erreur de connexion | ||
Sachant que je me déconnecte | ||
Et que je me rend sur la page d'accueil du personnel académique | ||
Alors la page contient "Vous devez vous connecter ou vous enregistrer pour continuer." |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
Quand("je me rend sur la page d'accueil du personnel académique") do | ||
visit "/academic/home" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
require "rails_helper" | ||
|
||
RSpec.describe Academic::User do | ||
describe "validations" do | ||
%w[uid name email provider].each do |attr| | ||
it { is_expected.to validate_presence_of(attr) } | ||
end | ||
end | ||
end |