Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate controller test to request/routing tests #48

Merged
merged 1 commit into from
Apr 4, 2017

Conversation

MaicolBen
Copy link
Contributor

@MaicolBen MaicolBen commented Mar 16, 2017

Resolves #45

Skipped json content type control in edit password because it isn't a json request, read the 4th step of https://github.com/lynndylanhurley/devise_token_auth/wiki/Reset-Password-Flow

Now with the content type control, every test needs as: :json, more info: http://api.rubyonrails.org/classes/ActionDispatch/IntegrationTest.html

@MaicolBen MaicolBen force-pushed the feature/migrate-to-request-specs branch 2 times, most recently from 3ffe528 to 129f367 Compare March 22, 2017 21:05
@MaicolBen MaicolBen removed the On hold label Mar 22, 2017

context 'with an user having the same email' do
before do
FactoryGirl.create :user, email: 'test@facebook.com'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is FactoryGirl necessary?

@matiasmansilla1989
Copy link
Contributor

@MaicolBen Excellent job !!!!

@MaicolBen MaicolBen force-pushed the feature/migrate-to-request-specs branch from 129f367 to 3e0217b Compare March 23, 2017 16:56
username: user.username,
uid: user.email,
provider: 'email',
first_name: user.first_name,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to align this assignations and some others similar in others files. But is your call.

@MaicolBen MaicolBen force-pushed the feature/migrate-to-request-specs branch from 3e0217b to c6c9771 Compare March 23, 2017 19:00
@matiasmansilla1989 matiasmansilla1989 merged commit 896db43 into master Apr 4, 2017
@matiasmansilla1989 matiasmansilla1989 deleted the feature/migrate-to-request-specs branch April 4, 2017 19:32
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.

3 participants