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

Deprecates avoid_sign_in #515

Merged
merged 2 commits into from Jan 9, 2015
Merged

Deprecates avoid_sign_in #515

merged 2 commits into from Jan 9, 2015

Conversation

kenyonj
Copy link
Contributor

@kenyonj kenyonj commented Jan 9, 2015

This also refactors the users_controller_spec to follow the expect syntax.

@kenyonj kenyonj force-pushed the jk-refactor-users-controller branch from 17aee87 to b4e4292 Compare January 9, 2015 21:49
before { sign_out }
describe "on GET to #new" do
context "when signed out" do
context "with email" do
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 get rid of this context and change the order of these two it blocks to say something like:

it "renders a form for a new user"
it "renders a form for a user with the query-string-provided email"

As a general rule don't use "should" in the it block description.

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe a better description of the email one is:

it "defaults email to value provided in query string"

@derekprior
Copy link
Contributor

Few minor comments. Thanks for updating the spec as well.

@derekprior
Copy link
Contributor

LGTM. Assuming travis passes, squash (2 commits looks good here) and merge.

@kenyonj kenyonj force-pushed the jk-refactor-users-controller branch from f32ebf5 to 17fa2ad Compare January 9, 2015 22:11
@kenyonj kenyonj merged commit 17fa2ad into master Jan 9, 2015
@kenyonj kenyonj deleted the jk-refactor-users-controller branch January 9, 2015 22:11
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.

None yet

2 participants