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

Keep consistency on allow_blank and allow_nil qualifiers #747

Conversation

maurogeorge
Copy link
Contributor

After some discussion was decided that these qualifiers do not accept any parameter.

Closes #721

@jc00ke
Copy link

jc00ke commented Jul 1, 2015

I'm seeing same spec failures in #746 too 😿

@mcmire
Copy link
Collaborator

mcmire commented Jul 2, 2015

I'm not sure why this is failing off the bat. It seems like a Travis-specific error or something...

@tute
Copy link

tute commented Aug 16, 2015

I restarted the Travis build, and now we have "real" failures: https://travis-ci.org/thoughtbot/shoulda-matchers/jobs/69202224. Are those related with your PR @maurogeorge? If not, can you rebase your branch on top of latest master and see if it continues to fail? Thank you! :)

@tute
Copy link

tute commented Aug 16, 2015

The branch is already up to date with master. I wonder if master would fail on CI right now, @mcmire?

@maurogeorge
Copy link
Contributor Author

Hi @tute thanks for your feedback.

These failures are not related with the PR, I think it is still a Travis problem. The error is The command "rvm 1.9.3 --fuzzy do $CASHER_DIR/bin/casher add ${BUNDLE_PATH:-gemfiles/vendor/bundle}" failed and exited with 1 during .

@@ -302,12 +302,12 @@ def in_range(range)
self
end

def allow_blank(allow_blank = true)
def allow_blank
@options[:allow_blank] = allow_blank
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to change allow_blank on this line to true? It seems like this would create an infinite recursive loop. (Same for the line below)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right, I updated the code.

As a note we need to add specs to allow_blank and allow_nil qualifiers of this matcher.

After some discussion[1] was decided that these qualifiers do not accept
any parameter.

thoughtbot#722
@maurogeorge maurogeorge force-pushed the allow_nil_allow_blank-remove-param branch from dc072cd to f2edde6 Compare September 22, 2015 20:54
@mcmire
Copy link
Collaborator

mcmire commented Sep 23, 2015

Yay it passed!

@mcmire mcmire added this to the 3.1.0 milestone Sep 23, 2015
@mcmire
Copy link
Collaborator

mcmire commented Sep 23, 2015

I'm going to hold off until merging this until 3.1.0 as this doesn't seem like a time-sensitive issue.

@maurogeorge
Copy link
Contributor Author

No problem 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants