Skip to content

Add tests to the magic login submodule - #95

Merged
Ch4s3 merged 12 commits into
Sorcery:masterfrom
ebihara99999:feature/magic-login
Nov 29, 2017
Merged

Ch4s3 merged 12 commits into
Sorcery:masterfrom
ebihara99999:feature/magic-login

Conversation

@ebihara99999

Copy link
Copy Markdown
Contributor

See here: #8

I add tests to the magic login submodule, and change some codes accordingly.

I hope it makes easy for magic login to be merged!

@Ch4s3

Ch4s3 commented Nov 29, 2017

Copy link
Copy Markdown
Contributor

Much better now that there are tests! I'll go ahead an merge this, but can you add info about this to the wiki?

@Ch4s3
Ch4s3 merged commit 5f05584 into Sorcery:master Nov 29, 2017
@Ch4s3

Ch4s3 commented Nov 29, 2017

Copy link
Copy Markdown
Contributor

Thanks @ebihara99999!

@Ch4s3 Ch4s3 mentioned this pull request Nov 29, 2017
@ebihara99999
ebihara99999 deleted the feature/magic-login branch November 30, 2017 05:52
@ebihara99999

Copy link
Copy Markdown
Contributor Author

@Ch4s3
It's OK to add contents to wiki, but I start to work on it in at most 2 weeks because I'm in vacation tomorrow.

ebihara99999 added a commit to ebihara99999/sorcery that referenced this pull request Mar 10, 2018
* Add magic login feature

* Use `.nil?` instead of `== nil`

* Prepare for setting up database

- create a migration file for spec
- create a spec to be run and a shared_expmple file

* Add configration tests

change the default of `@magic_login_mailer_disabled` into true because
 the default breaks the tests

* Change the configuration key, magic_login_mailer into magic_login_mailer_class

* Add specs of `.generate_magic_login_token`

* Add specs of `.clear_magic_login_token`

* Add faliure case specs of `.magic_login_email`

* Add success case specs of `.magic_login_email`

* Refactoring: split the success case of the `.generate_magic_login_token` spec into two

* Fix posix compliance offence: No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants