Skip to content

Conversation

@kmcgre
Copy link
Contributor

@kmcgre kmcgre commented Jul 21, 2017

No description provided.

@briri
Copy link
Contributor

briri commented Jul 21, 2017

Just update the broken test and this will be good. It looks like maybe the accept_terms param needs to be updated to match what the form is sending back. The test is sending 'false' but the controller is doing a !params[:accept_terms] check.

  1) Failure:

RegistrationsControllerTest#test_user_receives_proper_error_messaging_if_they_have_not_accepted_terms [/home/travis/build/DMPRoadmap/roadmap/test/functional/registrations_controller_test.rb:26]:

--- expected

+++ actual

@@ -1 +1 @@

-"You must accept the terms and conditions to register."

+"Error processing registration. Please check that you have entered a valid email address and that your chosen password is at least 8 characters long."

@kmcgre
Copy link
Contributor Author

kmcgre commented Jul 21, 2017

I was looking at that but the form can't be submitted if the accept checkbox isn't checked so is this test needed?

@briri
Copy link
Contributor

briri commented Jul 24, 2017

I think the test is beneficial. I'll fix on my end. Pulling this through and deploying so UAT can begin.

@briri briri merged commit 8d272cf into DMPRoadmap:CDL-MVP Jul 24, 2017
@vyruss
Copy link
Contributor

vyruss commented Jul 24, 2017

@briri @kmcgre I'm in the process of turning it into a capybara test so we can test before submitting

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